/* ═══════════════════════════════════════════════════════════════════
   DIGITAL WALL — Mobile-First Styles
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────── */
:root {
  --bg-primary: #f0f2f5;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-bg: #eef2ff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  --featured-gold: #f59e0b;
  --featured-bg: linear-gradient(135deg, #fef3c7, #fde68a);
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.2s ease;
}

/* ─── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Header ────────────────────────────────────────────────────── */
.header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
  border-color: var(--text-muted);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  min-height: 34px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* ─── Hero Section ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  padding: 32px 16px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(5%, 5%);
  }
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 20px;
  position: relative;
}

.hero .btn {
  position: relative;
  font-size: 1rem;
  padding: 14px 32px;
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ─── Search & Filters ──────────────────────────────────────────── */
.controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  position: sticky;
  top: 57px;
  z-index: 100;
  background: var(--bg-main);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  transition: var(--transition);
  min-height: 48px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.sort-select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-card);
  cursor: pointer;
  min-height: 48px;
  color: var(--text-primary);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.category-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.category-chip .chip-icon {
  font-size: 1rem;
}

/* ─── Poster Grid ───────────────────────────────────────────────── */
.poster-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.poster-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.poster-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.poster-card.featured {
  border: 2px solid var(--featured-gold);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.poster-card.featured:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.poster-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--border-light);
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.poster-card:hover .poster-image {
  transform: scale(1.05);
}

.poster-content {
  padding: 16px;
}

.poster-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Category colors */
.cat-jobs {
  background: #dbeafe;
  color: #1d4ed8;
}

.cat-events {
  background: #fae8ff;
  color: #a21caf;
}

.cat-business {
  background: #fef3c7;
  color: #b45309;
}

.cat-tuition {
  background: #d1fae5;
  color: #065f46;
}

.cat-real-estate {
  background: #fee2e2;
  color: #b91c1c;
}

.cat-services {
  background: #e0e7ff;
  color: #3730a3;
}

.cat-buy-sell {
  background: #ccfbf1;
  color: #0f766e;
}

.cat-others {
  background: #f3f4f6;
  color: #4b5563;
}

.cat-health {
  background: #fce7f3;
  color: #9d174d;
}

.cat-education {
  background: #ede9fe;
  color: #5b21b6;
}

.cat-food {
  background: #fff7ed;
  color: #c2410c;
}

.cat-transport {
  background: #f0fdf4;
  color: #166534;
}

.cat-matrimony {
  background: #fdf2f8;
  color: #be185d;
}

.poster-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.poster-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.poster-meta-item .icon {
  font-size: 0.9rem;
}

.expiry-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.expiry-tag.urgent {
  background: var(--danger-bg);
  color: var(--danger);
}

.expiry-tag.soon {
  background: var(--warning-bg);
  color: var(--warning);
}

.expiry-tag.normal {
  background: var(--success-bg);
  color: var(--success);
}

.poster-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.poster-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.poster-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Empty / Loading States ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Multi-Step Form ───────────────────────────────────────────── */
.page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  min-height: calc(100vh - 80px);
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 10px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
}

.step-circle.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.step-circle.completed {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: none;
}

.step-label.active {
  color: var(--accent);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: var(--transition);
}

.progress-line.active {
  background: var(--accent);
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.form-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  transition: var(--transition);
  min-height: 48px;
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-group.error .form-control {
  border-color: var(--danger);
}

.form-group.error .form-error {
  display: block;
}

/* Image Upload */
.image-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.image-upload:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.image-upload input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.image-upload .upload-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.image-upload .upload-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.image-upload .upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.image-preview {
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  display: none;
}

/* Duration Selector */
.duration-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.duration-option {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--bg-card);
}

.duration-option:hover {
  border-color: var(--accent);
}

.duration-option.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.duration-option.featured-option {
  grid-column: 1 / -1;
  border-style: dashed;
  position: relative;
}

.duration-option.featured-option.selected {
  background: var(--featured-bg);
  border-color: var(--featured-gold);
  border-style: solid;
}

.duration-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.duration-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.duration-option.selected .duration-price {
  color: var(--accent-dark);
}

.duration-option.featured-option.selected .duration-price {
  color: #b45309;
}

.duration-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Payment Page ──────────────────────────────────────────────── */
.payment-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.payment-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 24px;
  color: white;
  text-align: center;
}

.payment-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.payment-amount {
  font-size: 2.5rem;
  font-weight: 800;
}

.payment-body {
  padding: 24px;
}

.payment-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.payment-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: var(--bg-card);
  font-family: inherit;
  color: var(--text-secondary);
}

.payment-tab.active {
  background: var(--accent);
  color: white;
}

.payment-method {
  display: none;
}

.payment-method.active {
  display: block;
}

.upi-section {
  text-align: center;
  padding: 20px 0;
}

.upi-apps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.upi-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-card);
  font-family: inherit;
  color: var(--text-secondary);
  min-width: 80px;
}

.upi-app:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.upi-app.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.upi-app .upi-icon {
  font-size: 1.5rem;
}

.upi-id-input {
  margin-top: 16px;
}

.payment-summary {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1rem;
}

/* Processing overlay */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: white;
  gap: 16px;
  display: none;
}

.processing-overlay.active {
  display: flex;
}

.processing-overlay .spinner {
  width: 50px;
  height: 50px;
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: white;
}

.processing-overlay p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ─── Confirmation Page ─────────────────────────────────────────── */
.confirmation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.confirmation-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--success);
}

.confirmation-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.confirmation-steps {
  text-align: left;
  margin: 24px 0;
}

.confirmation-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.confirmation-step:last-child {
  border-bottom: none;
}

.step-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.9rem;
}

.step-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.step-text span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.txn-id {
  display: inline-block;
  background: var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 8px 0;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* ─── Admin Panel ───────────────────────────────────────────────── */
.admin-login {
  max-width: 400px;
  margin: 60px auto;
  padding: 16px;
}

.admin-login .form-card {
  text-align: center;
}

.admin-login .form-card h2 {
  margin-bottom: 8px;
}

.admin-login .form-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: none;
}

.admin-container.active {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.analytics-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.analytics-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.analytics-card .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.analytics-card.revenue .value {
  color: var(--success);
}

.analytics-card.pending .value {
  color: var(--warning);
}

.analytics-card.active-p .value {
  color: var(--accent);
}

/* Category Chart */
.category-chart {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.category-chart h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.chart-bar-wrapper {
  margin-bottom: 10px;
}

.chart-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.chart-bar-label .count {
  font-weight: 600;
  color: var(--accent);
}

.chart-bar-track {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Admin Table */
.admin-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  padding: 0 16px;
  gap: 0;
}

.admin-tab {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-tab .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--border-light);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

.admin-tab.active .badge {
  background: var(--accent-bg);
  color: var(--accent);
}

/* Poster List Items */
.poster-list {
  padding: 8px;
}

.poster-list-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.poster-list-item:hover {
  background: var(--border-light);
}

.poster-list-item:last-child {
  border-bottom: none;
}

.poster-list-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.poster-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-list-info {
  flex: 1;
  min-width: 0;
}

.poster-list-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-list-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pending {
  background: var(--warning-bg);
  color: #92400e;
}

.status-approved {
  background: var(--success-bg);
  color: #065f46;
}

.status-rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-expired {
  background: var(--border-light);
  color: var(--text-muted);
}

.poster-list-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Poster card entrance animation */
.poster-card {
  animation: cardFadeIn 0.4s ease both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.poster-card:nth-child(1) {
  animation-delay: 0.03s;
}

.poster-card:nth-child(2) {
  animation-delay: 0.06s;
}

.poster-card:nth-child(3) {
  animation-delay: 0.09s;
}

.poster-card:nth-child(4) {
  animation-delay: 0.12s;
}

.poster-card:nth-child(5) {
  animation-delay: 0.15s;
}

.poster-card:nth-child(6) {
  animation-delay: 0.18s;
}

.poster-card:nth-child(7) {
  animation-delay: 0.21s;
}

.poster-card:nth-child(8) {
  animation-delay: 0.24s;
}

.poster-card:nth-child(9) {
  animation-delay: 0.27s;
}

.poster-card:nth-child(10) {
  animation-delay: 0.30s;
}

/* Poster card active/click effect */
.poster-card:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  margin-top: 32px;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  font-weight: 500;
}

/* ─── Poster Detail Modal ───────────────────────────────────────── */
.detail-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-info-item .value {
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ─── Preview Card ──────────────────────────────────────────────── */
.preview-card-container {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.preview-card-container h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Toast Notifications ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--text-primary);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.warning {
  background: var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ─── Review Step ───────────────────────────────────────────────── */
.review-section {
  margin-bottom: 16px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  color: var(--text-muted);
  font-weight: 500;
}

.review-value {
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.review-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.price-highlight {
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 16px;
}

.price-highlight .price-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.price-highlight .price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-dark);
}

/* ─── WhatsApp Share ────────────────────────────────────────────── */
.whatsapp-btn {
  background: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Header fixes */
  .header {
    padding: 10px 12px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 32px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Hero fixes */
  .hero {
    padding: 24px 12px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
  }

  /* Search bar fixes */
  .controls {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-input,
  .sort-select {
    width: 100%;
    min-height: 44px;
  }

  /* Footer fixes */
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-links span {
    display: none;
    /* Hide the dot separators on mobile */
  }
}

@media (min-width: 480px) {
  .step-label {
    display: block;
  }
}

@media (min-width: 640px) {
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 960px) {
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .poster-image-wrapper {
    height: 220px;
  }

  .header {
    padding: 14px 24px;
  }

  .controls {
    padding: 20px 24px;
  }

  .poster-grid {
    padding: 0 24px 40px;
  }

  .poster-list-item {
    align-items: center;
  }

  .poster-list-actions {
    flex-direction: row;
  }
}

/* ─── Utility ───────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 8px;
}

.gap-8 {
  gap: 8px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}