/* =============================================================================
   AFO GLOBAL DIGITAL PLATFORM — Main Stylesheet
   Africa Overseas (أفريقيا وراء البحار)
   ============================================================================= */

/* ── CSS Variables ── */
:root {
  --color-green:       #013220;
  --color-green-mid:   #025432;
  --color-green-light: #0a6b3e;
  --color-gold:        #d4af37;
  --color-gold-light:  #f0d060;
  --color-sand:        #f4ead7;
  --color-sand-mid:    #e8dcc4;
  --color-dark:        #111111;
  --color-dark-mid:    #1e1e1e;
  --color-white:       #ffffff;
  --color-gray:        #6b7280;
  --color-gray-light:  #f3f4f6;
  --color-border:      #e5e7eb;
  --color-success:     #16a34a;
  --color-danger:      #dc2626;
  --color-warning:     #d97706;
  --color-info:        #2563eb;

  --font-main:  'Cairo', 'Inter', sans-serif;
  --font-en:    'Inter', 'Cairo', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.14);
  --shadow-gold:0 8px 32px rgba(212,175,55,.25);

  --transition: .3s ease;
  --container:  1280px;
  --header-h:   72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container-xs { max-width: 500px; margin: 0 auto; padding: 0 20px; }

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-green);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 20px;
}
.site-logo { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo .logo-en {
  font-size: 1.2rem; font-weight: 900; color: var(--color-gold);
  letter-spacing: .5px;
}
.site-logo .logo-ar {
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.8);
}

/* Nav */
.main-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 6px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav li.active > a { color: var(--color-white); background: rgba(255,255,255,.1); }
.main-nav a.nav-cta {
  background: var(--color-gold); color: var(--color-dark);
  font-weight: 700; padding: 6px 16px;
}
.main-nav a.nav-cta:hover { background: var(--color-gold-light); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-icon {
  position: relative; color: var(--color-white); font-size: 1.2rem;
  display: flex; align-items: center;
}
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--color-gold); color: var(--color-dark);
  font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
}
.lang-switch {
  color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 700;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.lang-switch:hover { background: rgba(255,255,255,.15); color: var(--color-white); }
.btn-whatsapp-nav {
  color: #25D366; font-size: 1.3rem; display: flex; align-items: center;
}
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-white); border-radius: 2px; transition: all var(--transition);
}

/* =============================================================================
   FLASH MESSAGES
   ============================================================================= */
.flash-message {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; font-weight: 600; font-size: .95rem;
}
.flash-success { background: #dcfce7; color: #166534; border-left: 4px solid var(--color-success); }
.flash-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--color-danger); }
.flash-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--color-warning); }
.flash-message button { background: none; border: none; cursor: pointer; font-size: 1.2rem; opacity: .6; }

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--color-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-green) 0%, #062d1a 60%, #0a1929 100%);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(1,50,32,.5) 0%, rgba(1,50,32,.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 60px 20px; max-width: 860px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900;
  color: var(--color-white); line-height: 1.15; margin-bottom: 16px;
}
.hero-content .hero-gold { color: var(--color-gold); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255,255,255,.85);
  max-width: 600px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Live Badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,.9); color: var(--color-white);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 20px;
}
.live-dot {
  width: 8px; height: 8px; background: var(--color-white);
  border-radius: 50%; animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md); font-weight: 700;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); line-height: 1; white-space: nowrap;
  text-decoration: none;
}
.btn-sm  { padding: 8px 18px; font-size: .875rem; }
.btn-lg  { padding: 16px 36px; font-size: 1.1rem; }
.btn-xl  { padding: 18px 44px; font-size: 1.2rem; }
.btn-full { width: 100%; }

.btn-green  { background: var(--color-green); color: var(--color-white); }
.btn-green:hover  { background: var(--color-green-light); }

.btn-gold   { background: var(--color-gold);  color: var(--color-dark); }
.btn-gold:hover   { background: var(--color-gold-light); box-shadow: var(--shadow-gold); }

.btn-white  { background: var(--color-white); color: var(--color-green); }
.btn-white:hover  { background: var(--color-sand); }

.btn-outline-white { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--color-white); }

.btn-outline-green { background: transparent; color: var(--color-green); border-color: var(--color-green); }
.btn-outline-green:hover { background: var(--color-green); color: var(--color-white); }

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

.btn-whatsapp { background: #25D366; color: var(--color-white); }
.btn-whatsapp:hover { background: #1ebe5d; }

/* FAB WhatsApp */
.fab-whatsapp {
  position: fixed; bottom: 28px; left: 28px; z-index: 999;
  width: 58px; height: 58px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.7); }

/* =============================================================================
   SECTION COMMON
   ============================================================================= */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  color: var(--color-green); margin-bottom: 12px;
}
.section-header p { color: var(--color-gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-header .gold-line {
  width: 60px; height: 4px; background: var(--color-gold);
  margin: 16px auto 0; border-radius: 2px;
}

.bg-sand  { background: var(--color-sand); }
.bg-green { background: var(--color-green); color: var(--color-white); }
.bg-dark  { background: var(--color-dark); color: var(--color-white); }

/* =============================================================================
   CARDS
   ============================================================================= */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: var(--color-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-image { position: relative; overflow: hidden; padding-top: 66%; }
.card-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-image img { transform: scale(1.05); }

.card-image-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-mid));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 3rem;
}

.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); line-height: 1.3; }
.card-subtitle { font-size: .85rem; color: var(--color-gray); }
.card-description { font-size: .9rem; color: var(--color-gray); line-height: 1.6; flex: 1; }
.card-price { font-size: 1.2rem; font-weight: 800; color: var(--color-green); }
.card-price .sale-price { color: var(--color-danger); }
.card-price .original-price { text-decoration: line-through; color: var(--color-gray); font-size: .9rem; font-weight: 400; }

.card-footer {
  padding: 16px 20px; border-top: 1px solid var(--color-border);
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 700;
  line-height: 1; white-space: nowrap;
}
.badge-common      { background: #e5e7eb; color: #374151; }
.badge-uncommon    { background: #dbeafe; color: #1d4ed8; }
.badge-rare        { background: #ede9fe; color: #6d28d9; }
.badge-ultra       { background: #fef3c7; color: #92400e; }
.badge-legendary   { background: linear-gradient(90deg,#d4af37,#f0d060); color: var(--color-dark); }
.badge-available   { background: #dcfce7; color: #166534; }
.badge-reserved    { background: #fef3c7; color: #92400e; }
.badge-sold        { background: #fee2e2; color: #991b1b; }
.badge-sponsored   { background: #f0fdf4; color: #14532d; }
.badge-soon        { background: #eff6ff; color: #1d4ed8; }
.badge-secondary   { background: var(--color-gray-light); color: var(--color-gray); }

/* =============================================================================
   FORMS
   ============================================================================= */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: .925rem; color: var(--color-dark);
}
.form-label .required { color: var(--color-danger); margin-inline-start: 2px; }

.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--color-border); border-radius: var(--radius-md);
  font-family: inherit; font-size: 1rem; color: var(--color-dark);
  background: var(--color-white); transition: border-color var(--transition);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(1,50,32,.1); }
.form-control::placeholder { color: #9ca3af; }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.form-hint { font-size: .82rem; color: var(--color-gray); margin-top: 4px; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* =============================================================================
   PAGE TITLE
   ============================================================================= */
.page-title-section {
  background: linear-gradient(135deg, var(--color-green) 0%, #062d1a 100%);
  padding: 60px 0; text-align: center; color: var(--color-white);
}
.page-title-section h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  margin-bottom: 10px;
}
.page-title-section p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* =============================================================================
   ANIMAL CARD SPECIFIC
   ============================================================================= */
.animal-card .card-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px;
}
.animal-card .species-label {
  font-size: .8rem; color: var(--color-gray); display: flex; align-items: center; gap: 4px;
}

/* =============================================================================
   PRODUCT CARD SPECIFIC
   ============================================================================= */
.product-card .store-name {
  font-size: .8rem; color: var(--color-gray);
  display: flex; align-items: center; gap: 4px;
}
.product-card .store-name i { color: var(--color-gold); }

/* =============================================================================
   STORE CARD
   ============================================================================= */
.store-card .card-body { align-items: flex-start; }
.store-logo-wrap {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  overflow: hidden; border: 2px solid var(--color-border); flex-shrink: 0;
}
.store-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.store-logo-placeholder {
  width: 64px; height: 64px; background: var(--color-green);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--color-white); font-weight: 900;
}

/* =============================================================================
   FILTER BAR
   ============================================================================= */
.filter-bar {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.filter-bar form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .filter-field { flex: 1; min-width: 160px; }
.filter-bar .filter-search { flex: 2; min-width: 220px; }
.filter-bar .filter-actions { display: flex; gap: 8px; }

/* =============================================================================
   CART / CHECKOUT
   ============================================================================= */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 16px; border-bottom: 1px solid var(--color-border);
  text-align: start;
}
.cart-table th { font-weight: 700; color: var(--color-gray); font-size: .875rem; background: var(--color-gray-light); }
.cart-table .product-cell { display: flex; gap: 12px; align-items: center; }
.cart-table .product-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-table .qty-input { width: 60px; text-align: center; padding: 6px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.cart-table .remove-btn { color: var(--color-danger); background: none; border: none; cursor: pointer; font-size: 1rem; }

.cart-summary {
  background: var(--color-gray-light); border-radius: var(--radius-lg);
  padding: 28px; position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary h3 { font-size: 1.2rem; margin-bottom: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cart-summary-row.total { font-weight: 800; font-size: 1.15rem; padding-top: 12px; border-top: 2px solid var(--color-border); }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

/* =============================================================================
   QUOTE PAGE
   ============================================================================= */
.quote-form-wrap {
  background: var(--color-white); border-radius: var(--radius-xl);
  padding: 48px; box-shadow: var(--shadow-lg); max-width: 820px; margin: 0 auto;
}
.quote-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.quote-type-label {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 2px solid var(--color-border); border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition); font-size: .9rem;
}
.quote-type-label:has(input:checked),
.quote-type-label:hover { border-color: var(--color-green); background: #f0fdf4; }
.quote-type-label input { accent-color: var(--color-green); }

/* =============================================================================
   SPONSORSHIP TIERS
   ============================================================================= */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 32px 0; }
.tier-card {
  text-align: center; padding: 32px 20px;
  border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  transition: all var(--transition); position: relative;
}
.tier-card:hover, .tier-card.popular { border-color: var(--color-gold); box-shadow: var(--shadow-gold); }
.tier-card.popular::before {
  content: '⭐ الأكثر طلباً';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--color-gold); color: var(--color-dark); padding: 4px 14px;
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.tier-icon { font-size: 2.5rem; margin-bottom: 12px; }
.tier-name { font-size: 1.2rem; font-weight: 800; color: var(--color-green); margin-bottom: 6px; }
.tier-price { font-size: 1.1rem; font-weight: 700; color: var(--color-gold); margin-bottom: 12px; }
.tier-features { font-size: .875rem; color: var(--color-gray); line-height: 1.8; }

/* =============================================================================
   AUCTION PREVIEW
   ============================================================================= */
.auction-card {
  border: 2px solid var(--color-gold); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--color-dark); color: var(--color-white);
}
.auction-card .card-image { padding-top: 56%; }
.auction-price-area { padding: 16px 20px; background: rgba(212,175,55,.1); }
.auction-price-label { font-size: .8rem; opacity: .7; }
.auction-current-price { font-size: 1.8rem; font-weight: 900; color: var(--color-gold); }
.auction-countdown { display: flex; gap: 12px; padding: 12px 20px; font-size: .85rem; }
.countdown-unit { text-align: center; }
.countdown-num { font-size: 1.4rem; font-weight: 800; color: var(--color-gold); display: block; }

/* =============================================================================
   ABOUT / IMPACT
   ============================================================================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: var(--color-gold); line-height: 1; }
.stat-label { color: rgba(255,255,255,.8); margin-top: 8px; font-size: 1rem; }

/* =============================================================================
   ADMIN LAYOUT (shared admin styles)
   ============================================================================= */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--color-green); color: var(--color-white);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .sidebar-header {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .sidebar-logo { font-size: 1rem; font-weight: 800; color: var(--color-gold); }
.admin-sidebar .sidebar-subtitle { font-size: .75rem; opacity: .6; margin-top: 2px; }

.admin-sidebar nav { flex: 1; padding: 16px 0; }
.sidebar-nav-item a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,.75); font-size: .9rem;
  transition: all var(--transition); border-inline-start: 3px solid transparent;
}
.sidebar-nav-item a:hover,
.sidebar-nav-item.active a {
  color: var(--color-white); background: rgba(255,255,255,.08);
  border-inline-start-color: var(--color-gold);
}
.sidebar-nav-item a i { width: 18px; text-align: center; }
.sidebar-section-label {
  padding: 12px 20px 4px; font-size: .7rem; text-transform: uppercase;
  color: rgba(255,255,255,.4); font-weight: 700; letter-spacing: 1px;
}

.admin-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

.admin-topbar {
  height: 60px; background: var(--color-white); border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 100; flex-shrink: 0;
}
.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--color-dark); }
.admin-topbar-actions { display: flex; gap: 12px; align-items: center; }

.admin-content { flex: 1; padding: 28px; overflow: auto; }

.admin-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
}
.admin-card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h2 { font-size: 1.05rem; font-weight: 700; }
.admin-card-body { padding: 24px; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--color-white); border-radius: var(--radius-md); padding: 20px;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-val { font-size: 2rem; font-weight: 900; color: var(--color-green); }
.stat-card .stat-lbl { font-size: .85rem; color: var(--color-gray); font-weight: 600; }
.stat-card .stat-icon { font-size: 1.4rem; margin-bottom: 8px; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--color-gray-light); padding: 12px 16px;
  text-align: start; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  color: var(--color-gray); letter-spacing: .5px; white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.data-table .actions { display: flex; gap: 6px; }

/* Search Bar (admin) */
.admin-search {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: flex-end;
}
.admin-search .form-control { max-width: 280px; }

/* Status Select (admin inline) */
.status-select {
  padding: 4px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: .82rem; cursor: pointer;
}

/* =============================================================================
   ORDER SUCCESS
   ============================================================================= */
.order-success-wrap { text-align: center; padding: 80px 20px; }
.order-success-icon { font-size: 4rem; color: var(--color-success); margin-bottom: 20px; }
.order-success-wrap h1 { font-size: 2rem; font-weight: 800; color: var(--color-green); margin-bottom: 12px; }
.order-number-box {
  background: var(--color-sand); border-radius: var(--radius-md); padding: 16px 24px;
  display: inline-block; margin: 20px 0; font-size: 1.1rem;
}
.order-number-box strong { color: var(--color-green); }

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination { display: flex; justify-content: center; margin-top: 40px; }
.pagination ul { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; align-items: center; }
.pagination a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); color: var(--color-dark);
  font-size: .9rem; transition: all var(--transition);
}
.pagination a:hover { border-color: var(--color-green); color: var(--color-green); }
.pagination li.active a { background: var(--color-green); color: var(--color-white); border-color: var(--color-green); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 1.4rem; font-weight: 900; color: var(--color-gold); margin-bottom: 12px; }
.footer-logo span { display: block; font-size: 1rem; color: rgba(255,255,255,.7); }
.footer-col p { line-height: 1.8; font-size: .9rem; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--color-white); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-gold); color: var(--color-dark); }
.footer-contact { font-style: normal; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 10px; }
.footer-contact i { margin-top: 3px; color: var(--color-gold); }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--color-gold); }
.footer-quote-btn { margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  text-align: center; font-size: .85rem; color: rgba(255,255,255,.4);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0; transition: opacity .6s ease;
}
.fade-in.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================================
   UTILITY
   ============================================================================= */
.text-center { text-align: center; }
.text-start  { text-align: start; }
.text-end    { text-align: end; }
.text-gold   { color: var(--color-gold); }
.text-green  { color: var(--color-green); }
.text-gray   { color: var(--color-gray); }
.text-danger { color: var(--color-danger); }
.text-success{ color: var(--color-success); }
.text-white  { color: var(--color-white); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.text-lg     { font-size: 1.125rem; }

.fw-bold  { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--color-gray);
}
.empty-state i { font-size: 3rem; opacity: .3; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* Image gallery (animal/product detail) */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--transition); flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--color-gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Detail layout */
.detail-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.detail-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-price { font-size: 1.8rem; font-weight: 900; color: var(--color-green); margin: 16px 0; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.detail-info-item { background: var(--color-gray-light); padding: 12px; border-radius: var(--radius-sm); }
.detail-info-label { font-size: .75rem; color: var(--color-gray); font-weight: 700; text-transform: uppercase; }
.detail-info-value { font-size: .95rem; font-weight: 600; margin-top: 2px; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-green), #062d1a);
  padding: 64px 0; text-align: center; color: var(--color-white);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 560px; margin-inline: auto; }
.cta-banner .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
