/*
Theme Name: OyaKudi Marketplace
Theme URI: https://oyakudi.com
Author: OyaKudi Team
Author URI: https://oyakudi.com
Description: World-class African marketplace platform — faster, safer, smarter. Compete with Jiji.ng, OLX, Facebook Marketplace. Built with enterprise-grade architecture for millions of users.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://oyakudi.com/license
Text Domain: oyakudi
Tags: marketplace, classifieds, listings, rtl-language-support, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   OYAKUDI DESIGN SYSTEM
   Mobile-first. Enterprise-grade. Jiji-killer architecture.
   ============================================================ */

:root {
  /* Brand Colors */
  --ok-primary:        #FF6B00;
  --ok-primary-dark:   #E55A00;
  --ok-primary-light:  #FF8C38;
  --ok-secondary:      #1A1A2E;
  --ok-accent:         #00C896;
  --ok-accent-dark:    #00A87E;
  --ok-danger:         #E53935;
  --ok-warning:        #FFC107;
  --ok-success:        #2ECC71;
  --ok-info:           #3498DB;

  /* Neutrals */
  --ok-white:          #FFFFFF;
  --ok-gray-50:        #F9FAFB;
  --ok-gray-100:       #F3F4F6;
  --ok-gray-200:       #E5E7EB;
  --ok-gray-300:       #D1D5DB;
  --ok-gray-400:       #9CA3AF;
  --ok-gray-500:       #6B7280;
  --ok-gray-600:       #4B5563;
  --ok-gray-700:       #374151;
  --ok-gray-800:       #1F2937;
  --ok-gray-900:       #111827;
  --ok-black:          #0A0A0A;

  /* Dark Mode */
  --ok-bg:             #FFFFFF;
  --ok-bg-secondary:   #F9FAFB;
  --ok-bg-card:        #FFFFFF;
  --ok-text:           #111827;
  --ok-text-muted:     #6B7280;
  --ok-border:         #E5E7EB;
  --ok-shadow:         rgba(0,0,0,0.08);

  /* Typography */
  --ok-font-display:   'Sora', 'Plus Jakarta Sans', sans-serif;
  --ok-font-body:      'DM Sans', 'Nunito Sans', sans-serif;
  --ok-font-mono:      'JetBrains Mono', monospace;

  /* Spacing */
  --ok-space-xs:       4px;
  --ok-space-sm:       8px;
  --ok-space-md:       16px;
  --ok-space-lg:       24px;
  --ok-space-xl:       32px;
  --ok-space-2xl:      48px;
  --ok-space-3xl:      64px;

  /* Radius */
  --ok-radius-sm:      6px;
  --ok-radius-md:      10px;
  --ok-radius-lg:      16px;
  --ok-radius-xl:      24px;
  --ok-radius-full:    9999px;

  /* Shadows */
  --ok-shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --ok-shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --ok-shadow-lg:      0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --ok-shadow-card:    0 2px 12px rgba(0,0,0,0.07);

  /* Transitions */
  --ok-transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ok-transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --ok-z-dropdown:     1000;
  --ok-z-sticky:       1020;
  --ok-z-fixed:        1030;
  --ok-z-modal:        1050;
  --ok-z-toast:        1080;

  /* Nav */
  --ok-nav-height:     60px;
  --ok-bottom-nav-height: 60px;
}

/* Dark Mode */
[data-theme="dark"] {
  --ok-bg:             #0F0F13;
  --ok-bg-secondary:   #16161D;
  --ok-bg-card:        #1C1C26;
  --ok-text:           #F1F1F5;
  --ok-text-muted:     #8888A0;
  --ok-border:         #2A2A38;
  --ok-shadow:         rgba(0,0,0,0.3);
  --ok-shadow-card:    0 2px 12px rgba(0,0,0,0.25);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ok-font-body);
  background-color: var(--ok-bg);
  color: var(--ok-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--ok-transition);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: var(--ok-font-body);
}

input, textarea, select {
  font-family: var(--ok-font-body);
  outline: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ok-font-display);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ok-text);
}

.ok-text-xl   { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.ok-text-lg   { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.ok-text-md   { font-size: 1.125rem; }
.ok-text-base { font-size: 1rem; }
.ok-text-sm   { font-size: 0.875rem; }
.ok-text-xs   { font-size: 0.75rem; }

/* ============================================================
   LAYOUT
   ============================================================ */

.ok-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--ok-space-md);
}

.ok-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ok-space-md); }
.ok-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ok-space-md); }
.ok-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ok-space-md); }

.ok-flex     { display: flex; }
.ok-flex-col { display: flex; flex-direction: column; }
.ok-items-center { align-items: center; }
.ok-justify-between { justify-content: space-between; }
.ok-gap-sm { gap: var(--ok-space-sm); }
.ok-gap-md { gap: var(--ok-space-md); }

/* ============================================================
   HEADER & NAV
   ============================================================ */

.ok-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ok-z-fixed);
  background: var(--ok-bg);
  border-bottom: 1px solid var(--ok-border);
  height: var(--ok-nav-height);
  transition: var(--ok-transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ok-header.scrolled {
  box-shadow: var(--ok-shadow-md);
}

.ok-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--ok-space-sm);
}

.ok-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ok-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--ok-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ok-font-display);
  font-weight: 800;
  font-size: 16px;
}

.ok-logo-text {
  font-family: var(--ok-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ok-text);
}

.ok-logo-text span {
  color: var(--ok-primary);
}

/* Header Search */
.ok-header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: none;
}

.ok-header-search input {
  width: 100%;
  height: 40px;
  background: var(--ok-gray-100);
  border: 1.5px solid transparent;
  border-radius: var(--ok-radius-full);
  padding: 0 16px 0 44px;
  font-size: 0.9rem;
  color: var(--ok-text);
  transition: var(--ok-transition);
}

[data-theme="dark"] .ok-header-search input {
  background: var(--ok-bg-secondary);
}

.ok-header-search input:focus {
  border-color: var(--ok-primary);
  background: var(--ok-bg);
}

.ok-header-search .ok-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ok-gray-400);
  pointer-events: none;
}

.ok-header-actions {
  display: flex;
  align-items: center;
  gap: var(--ok-space-sm);
}

/* Post Ad Button */
.ok-btn-post-ad {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 9px 18px;
  border-radius: var(--ok-radius-full);
  transition: var(--ok-transition);
  white-space: nowrap;
}

.ok-btn-post-ad:hover {
  background: var(--ok-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.35);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--ok-radius-md);
  padding: 11px 22px;
  transition: var(--ok-transition);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.ok-btn-primary {
  background: var(--ok-primary);
  color: white;
}
.ok-btn-primary:hover {
  background: var(--ok-primary-dark);
  box-shadow: 0 4px 14px rgba(255,107,0,0.3);
  transform: translateY(-1px);
}

.ok-btn-outline {
  background: transparent;
  border: 1.5px solid var(--ok-primary);
  color: var(--ok-primary);
}
.ok-btn-outline:hover {
  background: var(--ok-primary);
  color: white;
}

.ok-btn-ghost {
  background: transparent;
  color: var(--ok-text);
}
.ok-btn-ghost:hover {
  background: var(--ok-gray-100);
}

.ok-btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--ok-radius-sm); }
.ok-btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--ok-radius-lg); }
.ok-btn-full { width: 100%; }

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

/* ============================================================
   HERO SEARCH BAR (Homepage)
   ============================================================ */

.ok-hero {
  padding-top: calc(var(--ok-nav-height) + 12px);
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C38 40%, #FFB347 100%);
  padding-bottom: var(--ok-space-xl);
}

.ok-hero-inner {
  text-align: center;
  padding: var(--ok-space-xl) var(--ok-space-md) var(--ok-space-md);
  color: white;
}

.ok-hero-title {
  font-family: var(--ok-font-display);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--ok-space-xs);
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ok-hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: var(--ok-space-md);
}

.ok-search-bar {
  background: white;
  border-radius: var(--ok-radius-lg);
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
}

.ok-search-bar .ok-search-cat {
  padding: 0 14px;
  border-right: 1px solid var(--ok-gray-200);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ok-gray-600);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.ok-search-bar input {
  flex: 1;
  height: 52px;
  padding: 0 14px;
  font-size: 0.95rem;
  border: none;
  color: var(--ok-text);
  min-width: 0;
}

.ok-search-bar input::placeholder {
  color: var(--ok-gray-400);
}

.ok-search-bar .ok-search-btn {
  width: 52px;
  height: 52px;
  background: var(--ok-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--ok-transition);
}
.ok-search-bar .ok-search-btn:hover {
  background: var(--ok-primary-dark);
}

/* ============================================================
   CATEGORIES SLIDER
   ============================================================ */

/* ============================================================
   CATEGORIES GRID — Professional card layout
   ============================================================ */

/* ============================================================
   CATEGORIES GRID — Jiji-style: image tile + label below
   ============================================================ */

.ok-cats-section {
  padding: var(--ok-space-lg) 0 var(--ok-space-xl);
  background: var(--ok-bg);
}

/* ── Section header ─────────────────────────────────────────── */
.ok-cats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ok-space-md);
}

.ok-cats-title {
  font-family: var(--ok-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ok-text);
  margin: 0;
}

.ok-cats-view-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ok-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.ok-cats-view-all:hover { opacity: 0.72; }

/* ── Grid: 4 columns on mobile (matches reference image) ────── */
.ok-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* ── Tile: stacks image on top, label on bottom ─────────────── */
.ok-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ok-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Square image box — light grey bg like reference */
.ok-cat-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #EFF1F5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.2s, transform 0.18s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.18s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] .ok-cat-tile-img {
  background: #1C1C26;
}

.ok-cat-tile:hover .ok-cat-tile-img,
.ok-cat-tile:focus-visible .ok-cat-tile-img {
  background: #E4E7EF;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

[data-theme="dark"] .ok-cat-tile:hover .ok-cat-tile-img {
  background: #252535;
}

/* Actual image (when category has a thumbnail set) */
.ok-cat-tile-img img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  display: block;
}

/* Emoji fallback — large, centred */
.ok-cat-tile-emoji {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Label below the tile */
.ok-cat-tile-label {
  font-family: var(--ok-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ok-text);
  text-align: center;
  line-height: 1.25;
  /* allow wrapping so long names show fully — no ellipsis */
  word-break: break-word;
  hyphens: auto;
  padding: 0 2px;
}

.ok-cat-tile:hover .ok-cat-tile-label {
  color: var(--ok-primary);
}

/* ── Keep legacy chip class for any other templates ───────── */
.ok-categories-section {
  padding: var(--ok-space-md) 0;
  background: var(--ok-bg);
  border-bottom: 1px solid var(--ok-border);
}
.ok-categories-scroll {
  display: flex;
  gap: var(--ok-space-sm);
  overflow-x: auto;
  padding: 4px var(--ok-space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ok-categories-scroll::-webkit-scrollbar { display: none; }
.ok-category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--ok-radius-lg);
  border: 1.5px solid var(--ok-border);
  transition: var(--ok-transition);
  flex-shrink: 0;
  min-width: 72px;
  background: var(--ok-bg-card);
}
.ok-category-chip:hover, .ok-category-chip.active {
  border-color: var(--ok-primary);
  background: rgba(255,107,0,0.05);
}
.ok-category-chip .ok-cat-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.ok-category-chip span {
  font-size: 0.72rem; font-weight: 600;
  color: var(--ok-text-muted); white-space: nowrap;
}
.ok-category-chip:hover span, .ok-category-chip.active span {
  color: var(--ok-primary);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.ok-section {
  padding: var(--ok-space-lg) 0;
}

.ok-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ok-space-md);
  padding: 0 var(--ok-space-md);
}

.ok-section-title {
  font-family: var(--ok-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ok-text);
}

.ok-section-title span {
  color: var(--ok-primary);
}

.ok-section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ok-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   LISTING CARDS
   ============================================================ */

.ok-listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 var(--ok-space-md);
}

.ok-listing-card {
  background: var(--ok-bg-card);
  border-radius: var(--ok-radius-lg);
  border: 1px solid var(--ok-border);
  overflow: hidden;
  transition: var(--ok-transition);
  position: relative;
  cursor: pointer;
}

.ok-listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ok-shadow-lg);
  border-color: transparent;
}

.ok-listing-card:active {
  transform: scale(0.98);
}

.ok-listing-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ok-gray-100);
}

.ok-listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ok-listing-card:hover .ok-listing-img-wrap img {
  transform: scale(1.04);
}

.ok-listing-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ok-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--ok-radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ok-badge-featured {
  background: var(--ok-primary);
  color: white;
}

.ok-badge-sponsored {
  background: rgba(0,0,0,0.65);
  color: white;
  backdrop-filter: blur(4px);
}

.ok-badge-sold {
  background: var(--ok-danger);
  color: white;
}

.ok-badge-new {
  background: var(--ok-accent);
  color: white;
}

.ok-badge-verified {
  background: #3498DB;
  color: white;
}

.ok-listing-save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ok-transition);
  color: var(--ok-gray-500);
}

.ok-listing-save:hover,
.ok-listing-save.saved {
  color: var(--ok-danger);
  background: white;
}

.ok-listing-body {
  padding: 10px 12px 12px;
}

.ok-listing-price {
  font-family: var(--ok-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ok-primary);
  margin-bottom: 3px;
}

.ok-listing-price .ok-negotiable {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ok-accent);
  font-family: var(--ok-font-body);
}

.ok-listing-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ok-text);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ok-listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ok-text-muted);
}

.ok-listing-location {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.ok-listing-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ok-listing-time {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Horizontal Card (for featured) */
.ok-listing-card-h {
  display: flex;
  background: var(--ok-bg-card);
  border-radius: var(--ok-radius-lg);
  border: 1px solid var(--ok-border);
  overflow: hidden;
  transition: var(--ok-transition);
  cursor: pointer;
}

.ok-listing-card-h:hover {
  box-shadow: var(--ok-shadow-md);
  border-color: transparent;
  transform: translateY(-1px);
}

.ok-listing-card-h .ok-listing-img-wrap {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 1;
}

.ok-listing-card-h .ok-listing-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
}

/* ============================================================
   SPONSORED LISTINGS (Top)
   ============================================================ */

.ok-sponsored-banner {
  padding: 0 var(--ok-space-md);
  margin-bottom: var(--ok-space-sm);
}

.ok-sponsored-banner-inner {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%);
  border-radius: var(--ok-radius-lg);
  padding: var(--ok-space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ok-space-md);
  overflow: hidden;
  position: relative;
}

.ok-sponsored-banner-inner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,107,0,0.12);
  border-radius: 50%;
}

/* ============================================================
   BOTTOM MOBILE NAVIGATION
   ============================================================ */

.ok-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--ok-z-fixed);
  background: var(--ok-bg);
  border-top: 1px solid var(--ok-border);
  height: var(--ok-bottom-nav-height);
  display: flex;
  align-items: center;
  padding: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ok-bottom-nav-items {
  display: flex;
  width: 100%;
  height: 100%;
}

.ok-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--ok-gray-400);
  transition: var(--ok-transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.ok-bnav-item.active {
  color: var(--ok-primary);
}

.ok-bnav-item svg {
  width: 22px;
  height: 22px;
}

.ok-bnav-item span {
  font-size: 0.65rem;
  font-weight: 600;
}

/* Post Ad Center Button */
.ok-bnav-post {
  position: relative;
}

.ok-bnav-post .ok-bnav-post-btn {
  width: 48px;
  height: 48px;
  background: var(--ok-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 14px rgba(255,107,0,0.45);
  transition: var(--ok-transition);
  margin-bottom: 14px;
}

.ok-bnav-post .ok-bnav-post-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255,107,0,0.5);
}

.ok-bnav-post span {
  position: absolute;
  bottom: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ok-primary);
}

.ok-bnav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--ok-danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--ok-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================
   PAGE BODY OFFSET
   ============================================================ */

.ok-page-body {
  padding-bottom: calc(var(--ok-bottom-nav-height) + var(--ok-space-md));
  padding-top: var(--ok-nav-height);
  min-height: 100vh;
  background: var(--ok-bg-secondary);
}

/* ============================================================
   SELLER CARD
   ============================================================ */

.ok-sellers-scroll {
  display: flex;
  gap: var(--ok-space-sm);
  overflow-x: auto;
  padding: 4px var(--ok-space-md);
  scrollbar-width: none;
}

.ok-sellers-scroll::-webkit-scrollbar { display: none; }

.ok-seller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 12px 10px;
  border-radius: var(--ok-radius-lg);
  border: 1px solid var(--ok-border);
  background: var(--ok-bg-card);
  min-width: 90px;
  transition: var(--ok-transition);
}

.ok-seller-card:hover {
  border-color: var(--ok-primary);
  box-shadow: var(--ok-shadow-md);
}

.ok-seller-avatar {
  position: relative;
  width: 50px;
  height: 50px;
}

.ok-seller-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ok-border);
}

.ok-seller-avatar .ok-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: var(--ok-accent);
  border-radius: 50%;
  border: 2px solid var(--ok-bg);
}

.ok-seller-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--ok-text);
}

.ok-seller-listings {
  font-size: 0.7rem;
  color: var(--ok-text-muted);
}

.ok-seller-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--ok-warning);
  font-weight: 600;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */

.ok-form-group {
  margin-bottom: var(--ok-space-md);
}

.ok-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ok-text);
  margin-bottom: 6px;
}

.ok-label .ok-required {
  color: var(--ok-danger);
  margin-left: 2px;
}

.ok-input,
.ok-select,
.ok-textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--ok-space-md);
  background: var(--ok-bg);
  border: 1.5px solid var(--ok-border);
  border-radius: var(--ok-radius-md);
  font-size: 0.95rem;
  color: var(--ok-text);
  transition: var(--ok-transition);
}

.ok-textarea {
  height: auto;
  padding: var(--ok-space-md);
  resize: vertical;
  min-height: 100px;
}

.ok-input:focus,
.ok-select:focus,
.ok-textarea:focus {
  border-color: var(--ok-primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.ok-input-prefix {
  position: relative;
}

.ok-input-prefix .ok-prefix-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ok-gray-400);
  pointer-events: none;
}

.ok-input-prefix .ok-input {
  padding-left: 42px;
}

/* ============================================================
   MODAL / DRAWER
   ============================================================ */

.ok-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--ok-z-modal);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ok-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ok-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--ok-z-modal) + 1);
  background: var(--ok-bg);
  border-radius: var(--ok-radius-xl) var(--ok-radius-xl) 0 0;
  padding: var(--ok-space-lg) var(--ok-space-md) calc(var(--ok-space-lg) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.ok-drawer.open {
  transform: translateY(0);
}

.ok-drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--ok-gray-300);
  border-radius: var(--ok-radius-full);
  margin: 0 auto var(--ok-space-lg);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.ok-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ok-bg);
}

.ok-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ok-space-md);
  height: var(--ok-nav-height);
}

.ok-auth-body {
  flex: 1;
  padding: var(--ok-space-lg) var(--ok-space-md);
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.ok-auth-title {
  font-family: var(--ok-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--ok-space-xs);
}

.ok-auth-subtitle {
  color: var(--ok-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--ok-space-xl);
}

.ok-social-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--ok-space-sm);
  margin-bottom: var(--ok-space-lg);
}

.ok-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: var(--ok-radius-md);
  border: 1.5px solid var(--ok-border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ok-transition);
  background: var(--ok-bg);
  color: var(--ok-text);
  cursor: pointer;
}

.ok-social-btn:hover {
  background: var(--ok-gray-50);
  border-color: var(--ok-gray-300);
}

.ok-divider {
  display: flex;
  align-items: center;
  gap: var(--ok-space-md);
  margin: var(--ok-space-lg) 0;
  color: var(--ok-text-muted);
  font-size: 0.8rem;
}

.ok-divider::before,
.ok-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ok-border);
}

/* OTP Input */
.ok-otp-inputs {
  display: flex;
  gap: var(--ok-space-sm);
  justify-content: center;
  margin: var(--ok-space-lg) 0;
}

.ok-otp-input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--ok-border);
  border-radius: var(--ok-radius-md);
  background: var(--ok-bg);
  color: var(--ok-text);
  transition: var(--ok-transition);
}

.ok-otp-input:focus {
  border-color: var(--ok-primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.ok-dashboard {
  background: var(--ok-bg-secondary);
  min-height: 100vh;
  padding-top: var(--ok-nav-height);
  padding-bottom: calc(var(--ok-bottom-nav-height) + 16px);
}

.ok-dashboard-header {
  background: linear-gradient(135deg, #FF6B00 0%, #E55A00 100%);
  padding: var(--ok-space-lg) var(--ok-space-md);
  color: white;
}

.ok-dashboard-user {
  display: flex;
  align-items: center;
  gap: var(--ok-space-md);
  margin-bottom: var(--ok-space-md);
}

.ok-dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.4);
}

.ok-dashboard-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.ok-dashboard-type {
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ok-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ok-space-sm);
}

.ok-stat-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--ok-radius-md);
  padding: var(--ok-space-sm) var(--ok-space-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.ok-stat-number {
  font-family: var(--ok-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.ok-stat-label {
  font-size: 0.7rem;
  opacity: 0.85;
  color: white;
}

.ok-dashboard-menu {
  padding: var(--ok-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--ok-space-sm);
}

.ok-menu-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ok-text-muted);
  padding: var(--ok-space-sm) 0 var(--ok-space-xs);
}

.ok-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--ok-space-md);
  background: var(--ok-bg-card);
  border-radius: var(--ok-radius-md);
  cursor: pointer;
  transition: var(--ok-transition);
  border: 1px solid transparent;
}

.ok-menu-item:hover {
  border-color: var(--ok-primary);
  background: rgba(255,107,0,0.04);
}

.ok-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ok-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--ok-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ok-menu-item-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ok-text);
}

.ok-menu-item-desc {
  font-size: 0.75rem;
  color: var(--ok-text-muted);
}

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */

.ok-listing-detail {
  padding-bottom: 100px;
}

.ok-listing-gallery {
  position: relative;
  background: var(--ok-black);
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ok-gallery-slides {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.ok-gallery-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.ok-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ok-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--ok-radius-full);
  backdrop-filter: blur(4px);
}

.ok-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.ok-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: var(--ok-transition);
}

.ok-gallery-dot.active {
  background: white;
  width: 18px;
  border-radius: var(--ok-radius-full);
}

.ok-listing-info {
  padding: var(--ok-space-md);
}

.ok-listing-detail-price {
  font-family: var(--ok-font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ok-primary);
  margin-bottom: 6px;
}

.ok-listing-detail-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--ok-space-sm);
  color: var(--ok-text);
}

.ok-listing-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ok-space-sm);
  margin-bottom: var(--ok-space-md);
}

.ok-detail-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--ok-gray-100);
  border-radius: var(--ok-radius-full);
  font-size: 0.78rem;
  color: var(--ok-text-muted);
}

[data-theme="dark"] .ok-detail-meta-tag {
  background: var(--ok-bg-secondary);
}

.ok-listing-detail-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ok-text-muted);
  margin-bottom: var(--ok-space-lg);
}

.ok-seller-info-card {
  background: var(--ok-bg-card);
  border: 1px solid var(--ok-border);
  border-radius: var(--ok-radius-lg);
  padding: var(--ok-space-md);
  margin-bottom: var(--ok-space-md);
}

.ok-seller-info-row {
  display: flex;
  align-items: center;
  gap: var(--ok-space-md);
  margin-bottom: var(--ok-space-md);
}

.ok-seller-info-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Sticky Contact Bar */
.ok-contact-bar {
  position: fixed;
  bottom: calc(var(--ok-bottom-nav-height));
  left: 0;
  right: 0;
  z-index: calc(var(--ok-z-fixed) - 1);
  padding: 10px var(--ok-space-md);
  background: var(--ok-bg);
  border-top: 1px solid var(--ok-border);
  display: flex;
  gap: var(--ok-space-sm);
}

.ok-btn-whatsapp {
  background: #25D366;
  color: white;
  flex: 1;
}
.ok-btn-whatsapp:hover { background: #128C7E; }

.ok-btn-call {
  background: var(--ok-accent);
  color: white;
  flex: 1;
}

.ok-btn-message {
  background: var(--ok-secondary);
  color: white;
  flex: 1;
}

/* ============================================================
   POST AD WIZARD
   ============================================================ */

.ok-post-ad-page {
  background: var(--ok-bg);
  min-height: 100vh;
  padding-top: var(--ok-nav-height);
  padding-bottom: calc(var(--ok-bottom-nav-height) + 100px);
}

.ok-wizard-steps {
  display: flex;
  overflow-x: auto;
  padding: var(--ok-space-md) var(--ok-space-md) var(--ok-space-sm);
  gap: 4px;
  scrollbar-width: none;
}

.ok-wizard-steps::-webkit-scrollbar { display: none; }

.ok-wizard-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok-text-muted);
  padding: 6px 12px;
  border-radius: var(--ok-radius-full);
  border: 1.5px solid var(--ok-border);
}

.ok-wizard-step.active {
  color: var(--ok-primary);
  border-color: var(--ok-primary);
  background: rgba(255,107,0,0.06);
}

.ok-wizard-step.done {
  color: var(--ok-accent);
  border-color: var(--ok-accent);
  background: rgba(0,200,150,0.06);
}

.ok-wizard-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.ok-wizard-step.active .ok-wizard-num { background: var(--ok-primary); color: white; }
.ok-wizard-step.done .ok-wizard-num { background: var(--ok-accent); color: white; }

/* Upload Zone */
.ok-upload-zone {
  border: 2px dashed var(--ok-border);
  border-radius: var(--ok-radius-lg);
  padding: var(--ok-space-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--ok-transition);
  background: var(--ok-gray-50);
}

[data-theme="dark"] .ok-upload-zone {
  background: var(--ok-bg-secondary);
}

.ok-upload-zone:hover,
.ok-upload-zone.dragover {
  border-color: var(--ok-primary);
  background: rgba(255,107,0,0.04);
}

.ok-upload-icon {
  font-size: 2.5rem;
  margin-bottom: var(--ok-space-sm);
  color: var(--ok-gray-400);
}

/* Live Preview Panel */
.ok-preview-panel {
  background: var(--ok-bg-card);
  border: 1px solid var(--ok-border);
  border-radius: var(--ok-radius-lg);
  overflow: hidden;
  margin: var(--ok-space-md);
}

.ok-preview-label {
  background: var(--ok-primary);
  color: white;
  text-align: center;
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   MESSAGES / CHAT
   ============================================================ */

.ok-chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: var(--ok-nav-height);
  background: var(--ok-bg);
}

.ok-chat-header {
  display: flex;
  align-items: center;
  gap: var(--ok-space-sm);
  padding: var(--ok-space-sm) var(--ok-space-md);
  border-bottom: 1px solid var(--ok-border);
  background: var(--ok-bg);
}

.ok-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--ok-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--ok-space-sm);
}

.ok-message-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--ok-radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.ok-message-bubble.incoming {
  background: var(--ok-gray-100);
  color: var(--ok-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

[data-theme="dark"] .ok-message-bubble.incoming {
  background: var(--ok-bg-secondary);
}

.ok-message-bubble.outgoing {
  background: var(--ok-primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.ok-message-time {
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}

.ok-chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: var(--ok-space-sm);
  padding: var(--ok-space-sm) var(--ok-space-md);
  padding-bottom: calc(var(--ok-space-sm) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ok-border);
  background: var(--ok-bg);
}

.ok-chat-input-box {
  flex: 1;
  background: var(--ok-gray-100);
  border: 1.5px solid transparent;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--ok-text);
  resize: none;
  max-height: 120px;
  transition: var(--ok-transition);
}

[data-theme="dark"] .ok-chat-input-box {
  background: var(--ok-bg-secondary);
}

.ok-chat-input-box:focus {
  border-color: var(--ok-primary);
  background: var(--ok-bg);
}

.ok-chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--ok-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--ok-transition);
}

.ok-chat-send-btn:hover {
  background: var(--ok-primary-dark);
  transform: scale(1.05);
}

/* ============================================================
   STORE PAGE
   ============================================================ */

.ok-store-header {
  position: relative;
}

.ok-store-banner {
  height: 180px;
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%);
  overflow: hidden;
}

.ok-store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ok-store-profile {
  padding: 0 var(--ok-space-md) var(--ok-space-md);
  background: var(--ok-bg);
  position: relative;
}

.ok-store-avatar-wrap {
  position: absolute;
  top: -36px;
  left: var(--ok-space-md);
}

.ok-store-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--ok-radius-lg);
  object-fit: cover;
  border: 3px solid var(--ok-bg);
  box-shadow: var(--ok-shadow-md);
}

.ok-store-meta {
  padding-top: 44px;
}

.ok-store-name {
  font-family: var(--ok-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   SUBSCRIPTION PLANS
   ============================================================ */

.ok-plans {
  display: flex;
  flex-direction: column;
  gap: var(--ok-space-md);
  padding: var(--ok-space-md);
}

.ok-plan-card {
  background: var(--ok-bg-card);
  border: 2px solid var(--ok-border);
  border-radius: var(--ok-radius-xl);
  padding: var(--ok-space-lg);
  transition: var(--ok-transition);
  position: relative;
  overflow: hidden;
}

.ok-plan-card.featured {
  border-color: var(--ok-primary);
  background: linear-gradient(135deg, rgba(255,107,0,0.04) 0%, rgba(255,140,56,0.02) 100%);
}

.ok-plan-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 14px;
  right: -22px;
  background: var(--ok-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 32px;
  transform: rotate(45deg);
}

.ok-plan-name {
  font-family: var(--ok-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ok-text);
  margin-bottom: var(--ok-space-xs);
}

.ok-plan-price {
  font-family: var(--ok-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ok-primary);
  margin-bottom: var(--ok-space-sm);
}

.ok-plan-price sup {
  font-size: 1rem;
  font-weight: 700;
  vertical-align: top;
  margin-top: 8px;
}

.ok-plan-price .ok-period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ok-text-muted);
  font-family: var(--ok-font-body);
}

.ok-plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--ok-space-lg);
}

.ok-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ok-text-muted);
}

.ok-plan-feature .ok-check {
  color: var(--ok-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   WALLET
   ============================================================ */

.ok-wallet-card {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 50%, #3D1A4E 100%);
  border-radius: var(--ok-radius-xl);
  padding: var(--ok-space-lg);
  color: white;
  position: relative;
  overflow: hidden;
  margin: var(--ok-space-md);
}

.ok-wallet-card::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.ok-wallet-card::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,107,0,0.1);
}

.ok-wallet-label {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

.ok-wallet-amount {
  font-family: var(--ok-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.ok-toast-container {
  position: fixed;
  top: calc(var(--ok-nav-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--ok-z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 400px;
  pointer-events: none;
}

.ok-toast {
  background: var(--ok-gray-900);
  color: white;
  padding: 12px 16px;
  border-radius: var(--ok-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--ok-shadow-lg);
  animation: ok-toast-in 0.3s ease;
  pointer-events: all;
}

.ok-toast.success { border-left: 3px solid var(--ok-accent); }
.ok-toast.error   { border-left: 3px solid var(--ok-danger); }
.ok-toast.info    { border-left: 3px solid var(--ok-info); }
.ok-toast.warning { border-left: 3px solid var(--ok-warning); }

@keyframes ok-toast-in {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */

.ok-skeleton {
  background: linear-gradient(90deg, var(--ok-gray-100) 25%, var(--ok-gray-200) 50%, var(--ok-gray-100) 75%);
  background-size: 200% 100%;
  animation: ok-skeleton 1.4s ease infinite;
  border-radius: var(--ok-radius-sm);
}

[data-theme="dark"] .ok-skeleton {
  background: linear-gradient(90deg, var(--ok-bg-secondary) 25%, var(--ok-bg-card) 50%, var(--ok-bg-secondary) 75%);
  background-size: 200% 100%;
}

@keyframes ok-skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   VERIFICATION BADGE
   ============================================================ */

.ok-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #3498DB;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--ok-radius-full);
}

.ok-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--ok-radius-full);
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.ok-search-filters {
  display: flex;
  gap: var(--ok-space-sm);
  overflow-x: auto;
  padding: var(--ok-space-sm) var(--ok-space-md);
  scrollbar-width: none;
  border-bottom: 1px solid var(--ok-border);
}

.ok-search-filters::-webkit-scrollbar { display: none; }

.ok-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--ok-bg-card);
  border: 1.5px solid var(--ok-border);
  border-radius: var(--ok-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--ok-transition);
  color: var(--ok-text);
  flex-shrink: 0;
}

.ok-filter-chip:hover,
.ok-filter-chip.active {
  border-color: var(--ok-primary);
  color: var(--ok-primary);
  background: rgba(255,107,0,0.05);
}

.ok-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ok-space-sm) var(--ok-space-md);
  font-size: 0.82rem;
  color: var(--ok-text-muted);
  border-bottom: 1px solid var(--ok-border);
}

/* ============================================================
   FOOTER
   ============================================================ */

.ok-footer {
  background: var(--ok-secondary);
  color: rgba(255,255,255,0.7);
  padding: var(--ok-space-2xl) var(--ok-space-md) var(--ok-space-xl);
}

/* ── ok-site-footer: visible on all screens ──
   Mobile has a bottom-nav for navigation but the footer still shows
   below all content so users can access links and legal pages.    ── */
.ok-site-footer {
  display: block;
  /* Add bottom padding on mobile so content clears the bottom nav */
  padding-bottom: calc(var(--ok-bottom-nav-height, 64px) + var(--ok-space-lg));
}

.ok-footer-brand-col {
  grid-column: 1 / -1; /* full width on mobile */
  margin-bottom: var(--ok-space-md);
}

.ok-footer-nav-col {
  /* single column stacks on small screens */
}

.ok-footer-logo-text {
  display: inline-block;
  font-family: var(--ok-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  margin-bottom: var(--ok-space-sm);
}

.ok-footer-logo-text span {
  color: var(--ok-primary);
}

.ok-footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
  margin-top: var(--ok-space-sm);
  color: rgba(255,255,255,0.55);
}

/* Social icons row */
.ok-footer-socials {
  display: flex;
  gap: 8px;
  margin-top: var(--ok-space-md);
}

.ok-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: var(--ok-transition);
  text-decoration: none;
}

.ok-footer-social-link:hover {
  background: var(--ok-primary);
  border-color: var(--ok-primary);
  color: white;
}

.ok-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ok-space-lg);
  margin-bottom: var(--ok-space-xl);
}

.ok-footer-col-title {
  font-family: var(--ok-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--ok-space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.ok-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ok-footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  text-decoration: none;
}

.ok-footer-link:hover {
  color: var(--ok-primary);
}

.ok-footer-app-badges {
  display: flex;
  gap: var(--ok-space-sm);
  flex-wrap: wrap;
}

.ok-app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ok-radius-md);
  padding: 8px 14px;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--ok-transition);
  text-decoration: none;
}

.ok-app-badge:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--ok-primary);
}

.ok-footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--ok-space-md);
}

.ok-footer-bottom {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ok-space-sm);
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}

.ok-footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

.ok-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ok-footer-bottom-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.ok-footer-bottom-link:hover {
  color: var(--ok-primary);
}

.ok-footer-bottom-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */

.ok-admin-wrap {
  font-family: var(--ok-font-body) !important;
}

.ok-admin-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ok-admin-stat {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ok-admin-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */

.ok-pwa-banner {
  position: fixed;
  bottom: calc(var(--ok-bottom-nav-height) + 8px);
  left: var(--ok-space-md);
  right: var(--ok-space-md);
  z-index: calc(var(--ok-z-toast) - 1);
  background: var(--ok-secondary);
  color: white;
  border-radius: var(--ok-radius-lg);
  padding: var(--ok-space-md);
  display: flex;
  align-items: center;
  gap: var(--ok-space-md);
  box-shadow: var(--ok-shadow-lg);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ok-pwa-banner.show {
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================================ */

@media (min-width: 640px) {
  .ok-listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ok-header-search {
    display: block;
  }
  /* Tablet portrait: keep 4 cols, widen gap & label */
  .ok-cats-grid {
    gap: 12px;
  }
  .ok-cat-tile-label {
    font-size: 0.78rem;
  }
}

@media (min-width: 768px) {
  .ok-listings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .ok-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .ok-footer-brand-col {
    grid-column: auto;
    margin-bottom: 0;
  }
  .ok-plans {
    flex-direction: row;
  }
  .ok-plan-card {
    flex: 1;
  }
  /* Tablet landscape: 6 tiles, more breathing room */
  .ok-cats-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
  .ok-cats-title {
    font-size: 1.1rem;
  }
  .ok-cat-tile-img {
    border-radius: 16px;
  }
  .ok-cat-tile-label {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --ok-nav-height: 68px;
  }
  .ok-listings-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ok-space-md);
  }
  .ok-bottom-nav {
    display: none;
  }
  .ok-site-footer {
    /* No bottom-nav padding needed on desktop */
    padding-bottom: var(--ok-space-xl);
  }
  .ok-page-body {
    padding-bottom: var(--ok-space-xl);
  }
  .ok-hero-inner {
    padding: var(--ok-space-3xl) var(--ok-space-md) var(--ok-space-xl);
  }
  /* Desktop: 8 tiles across */
  .ok-cats-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
  }
  .ok-cat-tile-img {
    border-radius: 18px;
  }
  .ok-cat-tile-emoji {
    font-size: 2.2rem;
  }
  .ok-cat-tile-label {
    font-size: 0.82rem;
  }
  .ok-listing-card-h .ok-listing-img-wrap {
    width: 160px;
    min-width: 160px;
  }
  .ok-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1280px) {
  .ok-listings-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  /* Wide desktop: up to 10 tiles */
  .ok-cats-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.ok-hidden   { display: none !important; }
.ok-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;
}
.ok-truncate {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ok-text-center { text-align: center; }
.ok-text-primary { color: var(--ok-primary); }
.ok-text-muted   { color: var(--ok-text-muted); }
.ok-text-success { color: var(--ok-success); }
.ok-text-danger  { color: var(--ok-danger); }
.ok-fw-700 { font-weight: 700; }
.ok-fw-800 { font-weight: 800; }
.ok-mt-sm  { margin-top: var(--ok-space-sm); }
.ok-mt-md  { margin-top: var(--ok-space-md); }
.ok-mb-md  { margin-bottom: var(--ok-space-md); }
.ok-p-md   { padding: var(--ok-space-md); }

/* Smooth animations */
@keyframes ok-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ok-animate-in {
  animation: ok-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.ok-animate-in-delay-1 { animation-delay: 0.1s; }
.ok-animate-in-delay-2 { animation-delay: 0.2s; }
.ok-animate-in-delay-3 { animation-delay: 0.3s; }
