/* ============================================================
   Ryzon - University Marketplace | Main Stylesheet
   ============================================================ */
:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #e8f0fe;
  --navy: #0d1b3e;
  --navy-light: #1e2d5a;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --white: #ffffff;
  --light: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}
/* Dark Mode */
[data-theme="dark"] {
  --white: #0f172a;
  --light: #1e293b;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-700: #cbd5e1;
  --gray-800: #e2e8f0;
  --navy: #1e3a8a;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Preloader and transitions handled inline in header.php */

/* Navbar */
.navbar-ryzon {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.navbar-ryzon.scrolled { box-shadow: var(--shadow); }
.navbar-brand-ryzon { font-size: 1.6rem; font-weight: 800; color: var(--navy) !important; letter-spacing: -0.5px; }
.navbar-brand-ryzon span { color: var(--primary); }
.navbar-ryzon .nav-link { color: var(--gray-700) !important; font-weight: 500; padding: 0.5rem 0.9rem !important; border-radius: var(--radius-sm); transition: var(--transition); }
.navbar-ryzon .nav-link:hover, .navbar-ryzon .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.btn-nav-login { border: 2px solid var(--primary) !important; color: var(--primary) !important; border-radius: 8px !important; padding: 0.4rem 1.1rem !important; font-weight: 600 !important; }
.btn-nav-login:hover { background: var(--primary) !important; color: #fff !important; }
.btn-nav-signup { background: var(--primary) !important; color: #fff !important; border-radius: 8px !important; padding: 0.4rem 1.1rem !important; font-weight: 600 !important; border: 2px solid var(--primary) !important; }
.btn-nav-signup:hover { background: var(--primary-dark) !important; }
.dark-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-600); padding: 0.4rem; border-radius: 8px; transition: var(--transition); }
.dark-toggle:hover { background: var(--gray-100); }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--primary-dark) 100%);
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); color: #fff; padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.2); }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1.2rem; letter-spacing: -1px; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary { background: var(--accent); color: var(--navy) !important; font-weight: 700; padding: 0.8rem 2rem; border-radius: 10px; font-size: 1rem; border: none; transition: var(--transition); }
.btn-hero-primary:hover { background: #e08e00; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }
.btn-hero-outline { background: transparent; color: #fff !important; font-weight: 600; padding: 0.8rem 2rem; border-radius: 10px; font-size: 1rem; border: 2px solid rgba(255,255,255,0.4) !important; transition: var(--transition); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7) !important; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 1.8rem; font-weight: 800; color: #fff; display: block; }
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-image-wrap { position: relative; }
.hero-card-float {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
  padding: 1.5rem; color: #fff; margin-bottom: 1rem;
  animation: floatUp 3s ease-in-out infinite alternate;
}
@keyframes floatUp { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* Section Styles */
.section-py { padding: 80px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--gray-800); letter-spacing: -0.5px; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.78rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.8rem; }

/* Cards */
.card-ryzon { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden; }
.card-ryzon:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

/* Product Card */
.product-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); transition: var(--transition); position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.product-card .img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-100); }
.product-card .img-wrap > a { display: block; width: 100%; height: 100%; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .status-badge { position: absolute; top: 10px; left: 10px; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-deleted { background: var(--gray-200); color: var(--gray-600); }
.product-card .fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: all !important;
}
.product-card .fav-btn:hover, .product-card .fav-btn.active { color: var(--danger); background: #fff; }
.product-card .fav-btn:active { transform: scale(0.85); }
.product-card .card-body { padding: 1rem; }
.product-card .product-name { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .product-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.product-card .product-meta { font-size: 0.78rem; color: var(--gray-500); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.product-card .product-actions { padding: 0.75rem 1rem; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; }
.btn-whatsapp { background: #25d366; color: #fff !important; border: none; border-radius: 8px; padding: 6px 14px; font-size: 0.82rem; font-weight: 600; flex: 1; text-align: center; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-whatsapp:hover { background: #1da851; }
.btn-call { background: var(--primary-light); color: var(--primary) !important; border: none; border-radius: 8px; padding: 6px 14px; font-size: 0.82rem; font-weight: 600; flex: 1; text-align: center; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-call:hover { background: var(--primary); color: #fff !important; }

/* Feature Cards */
.feature-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem; }
.feature-icon.blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.navy { background: rgba(13,27,62,0.08); color: var(--navy); }
.feature-icon.green { background: #d1fae5; color: #059669; }
.feature-icon.amber { background: #fef3c7; color: #d97706; }

/* Steps / How It Works */
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step-connector { position: absolute; top: 24px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px; background: var(--gray-200); z-index: 0; }

/* Seller Card */
.seller-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); transition: var(--transition); text-align: center; padding: 1.5rem 1rem; }
.seller-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.seller-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); margin: 0 auto 0.8rem; }
.seller-card .business-name { font-weight: 700; font-size: 1rem; color: var(--gray-800); }
.seller-card .seller-meta { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }
.seller-card .seller-category { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.72rem; font-weight: 600; padding: 2px 10px; border-radius: 50px; margin-top: 8px; }

/* Toast Notifications */
.toast-container-ryzon { position: fixed; top: 20px; right: 20px; z-index: 9998; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-ryzon { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; align-items: flex-start; gap: 12px; border-left: 4px solid var(--primary); animation: slideInRight 0.35s ease; min-width: 300px; }
.toast-ryzon.success { border-left-color: var(--success); }
.toast-ryzon.error { border-left-color: var(--danger); }
.toast-ryzon.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.toast-ryzon.success .toast-icon { color: var(--success); }
.toast-ryzon.error .toast-icon { color: var(--danger); }
.toast-ryzon.warning .toast-icon { color: var(--warning); }
.toast-ryzon.info .toast-icon { color: var(--primary); }
.toast-title { font-weight: 700; font-size: 0.9rem; color: var(--gray-800); }
.toast-msg { font-size: 0.83rem; color: var(--gray-500); margin-top: 2px; }
.toast-close { margin-left: auto; background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }
@keyframes slideInRight { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(40px); } }

/* Dashboard */
.dashboard-sidebar {
  width: 260px; min-height: 100vh;
  background: var(--navy); position: fixed; top: 0; left: 0; z-index: 200;
  display: flex; flex-direction: column; transition: var(--transition);
}
.dashboard-sidebar.collapsed { width: 70px; }
.sidebar-logo { padding: 1.2rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; }
.sidebar-logo .logo-text { font-size: 1.4rem; font-weight: 800; color: #fff; white-space: nowrap; }
.sidebar-logo .logo-text span { color: var(--accent); }
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 0.7rem 1.4rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; transition: var(--transition); white-space: nowrap; border-left: 3px solid transparent; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-nav a.active { color: #fff; background: rgba(255,255,255,0.1); border-left-color: var(--accent); }
.sidebar-nav a i { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.sidebar-nav .nav-section { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); padding: 0.8rem 1.4rem 0.3rem; }
.sidebar-footer { padding: 1rem 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); }
.dashboard-main { margin-left: 260px; min-height: 100vh; background: var(--gray-100); transition: var(--transition); }
.dashboard-main.expanded { margin-left: 70px; }
.dashboard-topbar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0.8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.dashboard-content { padding: 1.5rem; }

/* Stat Cards */
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--gray-200); display: flex; align-items: center; gap: 1rem; transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: #059669; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--gray-500); margin-top: 2px; }

/* Forms */
.form-ryzon .form-label { font-weight: 600; font-size: 0.88rem; color: var(--gray-700); margin-bottom: 0.4rem; }
.form-ryzon .form-control, .form-ryzon .form-select {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem; font-size: 0.9rem; color: var(--gray-800);
  background: var(--white); transition: var(--transition);
}
.form-ryzon .form-control:focus, .form-ryzon .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); outline: none;
}
.form-ryzon .input-group-text { background: var(--gray-100); border: 1.5px solid var(--gray-200); color: var(--gray-500); }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.password-toggle { cursor: pointer; }

/* Auth Pages */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 480px; }
.auth-logo { font-size: 1.8rem; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 0.5rem; }
.auth-logo span { color: var(--primary); }
.auth-title { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); text-align: center; }
.auth-subtitle { font-size: 0.88rem; color: var(--gray-500); text-align: center; margin-bottom: 1.8rem; }
.role-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-option input { display: none; }
.role-option label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0.8rem 0.5rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 0.85rem; font-weight: 600; color: var(--gray-600); }
.role-option label i { font-size: 1.3rem; }
.role-option input:checked + label { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Buttons */
.btn-primary-ryzon { background: var(--primary); color: #fff !important; border: none; border-radius: 10px; padding: 0.7rem 1.6rem; font-weight: 700; font-size: 0.95rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-primary-ryzon:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,86,219,0.3); }
.btn-outline-ryzon { background: transparent; color: var(--primary) !important; border: 2px solid var(--primary); border-radius: 10px; padding: 0.68rem 1.6rem; font-weight: 700; font-size: 0.95rem; transition: var(--transition); }
.btn-outline-ryzon:hover { background: var(--primary); color: #fff !important; }
.btn-danger-ryzon { background: var(--danger); color: #fff !important; border: none; border-radius: 10px; padding: 0.6rem 1.2rem; font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.btn-danger-ryzon:hover { background: #b91c1c; }
.btn-success-ryzon { background: var(--success); color: #fff !important; border: none; border-radius: 10px; padding: 0.6rem 1.2rem; font-weight: 600; font-size: 0.88rem; transition: var(--transition); }

/* Image Upload Preview */
.img-upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: var(--transition); background: var(--gray-100); }
.img-upload-area:hover, .img-upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }
.img-upload-area i { font-size: 2rem; color: var(--gray-400); }
.img-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.img-preview-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--gray-100); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item .remove-img { position: absolute; top: 6px; right: 6px; background: var(--danger); color: #fff; border: none; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; }

/* Testimonials */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.testimonial-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.8rem; }
.testimonial-text { font-size: 0.93rem; color: var(--gray-600); font-style: italic; margin-bottom: 1rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 0.88rem; color: var(--gray-800); }
.author-school { font-size: 0.78rem; color: var(--gray-500); }

/* FAQ */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 1rem 1.2rem; font-weight: 600; font-size: 0.95rem; color: var(--gray-800); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: var(--transition); }
.faq-question:hover { background: var(--gray-100); }
.faq-answer { padding: 0 1.2rem; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; }
.faq-answer.open { max-height: 200px; padding: 0 1.2rem 1rem; }
.faq-answer p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; }

/* Footer */
.footer-ryzon { background: var(--navy); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.footer-logo { font-size: 1.6rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-top: 0.6rem; line-height: 1.7; }
.footer-heading { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; margin-top: 3rem; font-size: 0.82rem; color: rgba(255,255,255,0.4); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: #fff; }

/* Back to top */
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; z-index: 500; opacity: 0; transform: translateY(20px); transition: var(--transition); box-shadow: var(--shadow); }
#back-to-top.show { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark); }

/* Breadcrumb */
.breadcrumb-ryzon { background: var(--gray-100); padding: 0.7rem 0; border-bottom: 1px solid var(--gray-200); font-size: 0.83rem; }
.breadcrumb-ryzon .breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--gray-400); }
.breadcrumb-ryzon .breadcrumb-item a { color: var(--primary); }
.breadcrumb-ryzon .breadcrumb-item.active { color: var(--gray-600); }

/* Pagination */
.pagination-ryzon .page-link { border: 1.5px solid var(--gray-200); color: var(--gray-700); border-radius: 8px !important; margin: 0 2px; font-weight: 600; font-size: 0.88rem; }
.pagination-ryzon .page-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.pagination-ryzon .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Scroll animations */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* Spinner */
.spinner-ryzon { display: inline-block; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state i { font-size: 3.5rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty-state h5 { font-weight: 700; color: var(--gray-700); }
.empty-state p { font-size: 0.88rem; color: var(--gray-500); }

/* Tables */
.table-ryzon { border-radius: var(--radius); overflow: hidden; }
.table-ryzon thead th { background: var(--gray-100); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); padding: 0.9rem 1rem; }
.table-ryzon tbody td { font-size: 0.88rem; padding: 0.85rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--gray-100); }
.table-ryzon tbody tr:hover { background: var(--gray-100); }

/* Responsive */
@media (max-width: 991px) {
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .hero-stats { gap: 1.2rem; }
}
@media (max-width: 576px) {
  .auth-card { padding: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; }
  .dashboard-content { padding: 1rem; }
  .stat-card { flex-direction: column; text-align: center; }
}

/* Dashboard mobile overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 199;
}
.sidebar-overlay.show { display: block; }

/* Dashboard nav section spacing */
.sidebar-nav .nav-section.mt-auto { margin-top: auto !important; }

/* Utility */
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary-subtle { background: var(--primary-light) !important; }

/* Dark mode dashboard */
[data-theme="dark"] .dashboard-sidebar { background: #0f172a; }
[data-theme="dark"] .dashboard-main { background: #1e293b; }
[data-theme="dark"] .dashboard-topbar { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .card-ryzon { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .stat-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .table-ryzon thead th { background: #0f172a; }
[data-theme="dark"] .table-ryzon tbody tr:hover { background: #0f172a; }
[data-theme="dark"] .product-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .product-card .card-body { background: #1e293b; }
[data-theme="dark"] .navbar-ryzon { background: #0f172a !important; border-bottom: 1px solid #334155; }
[data-theme="dark"] .navbar-ryzon .nav-link { color: #cbd5e1 !important; }
[data-theme="dark"] .navbar-brand-ryzon { color: #fff !important; }
[data-theme="dark"] .footer-ryzon { background: #0f172a; }
[data-theme="dark"] .faq-question { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .testimonial-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .auth-card { background: #1e293b; }
[data-theme="dark"] .auth-title, [data-theme="dark"] .section-title { color: #e2e8f0; }
[data-theme="dark"] .breadcrumb-ryzon { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .img-upload-area { background: #1e293b; border-color: #475569; }

/* ── Dark Mode: comprehensive text & background fixes ── */

/* Body & base */
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }

/* Text colours */
[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary { color: #94a3b8 !important; }
[data-theme="dark"] .text-dark { color: #e2e8f0 !important; }
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,
[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6 { color: #e2e8f0; }
[data-theme="dark"] p { color: #cbd5e1; }
[data-theme="dark"] label { color: #cbd5e1; }
[data-theme="dark"] small { color: #94a3b8; }
[data-theme="dark"] .small { color: #94a3b8; }
[data-theme="dark"] .fw-600, [data-theme="dark"] .fw-700, [data-theme="dark"] .fw-800 { color: #e2e8f0; }

/* Bootstrap backgrounds */
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white { background: #1e293b !important; }
[data-theme="dark"] .bg-light.text-secondary { color: #94a3b8 !important; }

/* Tables */
[data-theme="dark"] .table { color: #e2e8f0; --bs-table-bg: transparent; }
[data-theme="dark"] .table-ryzon tbody td { border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .table-ryzon thead th { color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .table-bordered td,
[data-theme="dark"] .table-bordered th { border-color: #334155; }

/* Cards & panels */
[data-theme="dark"] .card { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .card-header { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .card-body { color: #e2e8f0; }

/* Forms */
[data-theme="dark"] .form-label { color: #cbd5e1; }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-check-input { background-color: #0f172a; border-color: #475569; color: #e2e8f0; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background-color: #0f172a; color: #e2e8f0; border-color: var(--primary); }
[data-theme="dark"] .form-control::placeholder { color: #64748b; }
[data-theme="dark"] .input-group-text { background: #0f172a; border-color: #475569; color: #94a3b8; }
[data-theme="dark"] textarea.form-control { background-color: #0f172a; color: #e2e8f0; }
[data-theme="dark"] select option { background: #1e293b; color: #e2e8f0; }

/* Alerts */
[data-theme="dark"] .alert-danger { background: #3b1219; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .alert-success { background: #052e16; border-color: #166534; color: #86efac; }
[data-theme="dark"] .alert-warning { background: #3b2800; border-color: #92400e; color: #fcd34d; }
[data-theme="dark"] .alert-info { background: #0c1a3b; border-color: #1e3a8a; color: #93c5fd; }

/* Badges */
[data-theme="dark"] .badge.bg-white { background: #334155 !important; color: #e2e8f0 !important; }
[data-theme="dark"] .badge.bg-light { background: #334155 !important; color: #e2e8f0 !important; }
[data-theme="dark"] .bg-warning-subtle { background: #3b2800 !important; }
[data-theme="dark"] .text-warning-emphasis { color: #fcd34d !important; }

/* Buttons */
[data-theme="dark"] .btn-outline-secondary { border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .btn-outline-secondary:hover { background: #334155; color: #fff; }
[data-theme="dark"] .btn-light { background: #334155; border-color: #475569; color: #e2e8f0; }
[data-theme="dark"] .btn-light:hover { background: #475569; }

/* Dropdowns */
[data-theme="dark"] .dropdown-menu { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .dropdown-item { color: #e2e8f0; }
[data-theme="dark"] .dropdown-item:hover { background: #334155; color: #fff; }
[data-theme="dark"] .dropdown-divider { border-color: #334155; }

/* Modals */
[data-theme="dark"] .modal-content { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .modal-header { border-color: #334155; }
[data-theme="dark"] .modal-footer { border-color: #334155; }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* Sections with inline bg styles */
[data-theme="dark"] section[style*="background:var(--gray-100)"],
[data-theme="dark"] section[style*="background: var(--gray-100)"] { background: #1e293b !important; }

/* Product card elements */
[data-theme="dark"] .product-card .product-name { color: #e2e8f0; }
[data-theme="dark"] .product-card .product-meta { color: #94a3b8; }
[data-theme="dark"] .product-card .product-actions { border-color: #334155; }
[data-theme="dark"] .product-card .fav-btn { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .product-card .img-wrap { background: #0f172a; }

/* Seller card */
[data-theme="dark"] .seller-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .seller-card .business-name { color: #e2e8f0; }
[data-theme="dark"] .seller-card .seller-meta { color: #94a3b8; }

/* Testimonials */
[data-theme="dark"] .testimonial-text { color: #94a3b8; }
[data-theme="dark"] .author-name { color: #e2e8f0; }
[data-theme="dark"] .author-school { color: #64748b; }

/* FAQ */
[data-theme="dark"] .faq-item { border-color: #334155; }
[data-theme="dark"] .faq-question:hover { background: #0f172a; }
[data-theme="dark"] .faq-answer p { color: #94a3b8; }

/* Auth pages */
[data-theme="dark"] .auth-logo { color: #e2e8f0; }
[data-theme="dark"] .auth-subtitle { color: #94a3b8; }
[data-theme="dark"] .role-option label { border-color: #475569; color: #94a3b8; background: #0f172a; }
[data-theme="dark"] .role-option input:checked + label { background: rgba(26,86,219,0.2); }

/* Dashboard stat cards */
[data-theme="dark"] .stat-value { color: #e2e8f0; }
[data-theme="dark"] .stat-label { color: #94a3b8; }

/* Dashboard content general text */
[data-theme="dark"] .dashboard-content { color: #e2e8f0; }
[data-theme="dark"] .dashboard-content .text-muted { color: #94a3b8 !important; }

/* Pagination */
[data-theme="dark"] .pagination-ryzon .page-link { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .pagination-ryzon .page-link:hover { background: #334155; }

/* Toast */
[data-theme="dark"] .toast-ryzon { background: #1e293b; }
[data-theme="dark"] .toast-title { color: #e2e8f0; }
[data-theme="dark"] .toast-msg { color: #94a3b8; }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar { width: 6px; height: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ── Navbar Search & Notifications dark mode ── */
[data-theme="dark"] #navSearchResults,
[data-theme="dark"] #notifDropdown { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0; }
[data-theme="dark"] #navSearch { background: #0f172a; border-color: #475569; color: #e2e8f0; }
[data-theme="dark"] #navSearch::placeholder { color: #64748b; }
[data-theme="dark"] .input-group-text { background: #0f172a !important; border-color: #475569 !important; }
[data-theme="dark"] #notifDropdown .border-bottom { border-color: #334155 !important; }

/* ── Searchable Select ───────────────────────────────────── */
.searchable-select-wrap { position: relative; }
.searchable-select-display {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--gray-800);
  cursor: pointer;
  transition: var(--transition);
  min-height: 42px;
}
.searchable-select-display:hover { border-color: var(--primary); }
.searchable-select-dropdown { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.ss-item:first-child { padding-top: 10px; }
.ss-item:last-child { padding-bottom: 10px; }

/* Dark mode */
[data-theme="dark"] .searchable-select-display {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}
[data-theme="dark"] .searchable-select-dropdown {
  background: #1e293b !important;
  border-color: var(--primary) !important;
}
[data-theme="dark"] .searchable-select-dropdown input {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}
[data-theme="dark"] .ss-item { color: #e2e8f0; }
[data-theme="dark"] .ss-item:hover { background: #334155 !important; }
