/* ============================================
   JODOCASH — Modern Deals Community CSS
   Color Theme: Teal + Coral + Dark Navy
   ============================================ */

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

:root {
  --primary: #0ea5b0;
  --primary-dark: #0891a0;
  --accent: #ff5f57;
  --accent-light: #ff7b74;
  --navy: #0d1b2a;
  --navy-light: #1a2e42;
  --surface: #f0f9fa;
  --surface-2: #e3f4f6;
  --text: #0d1b2a;
  --text-muted: #5a7183;
  --border: #d4eaed;
  --white: #ffffff;
  --green: #10b981;
  --gold: #f59e0b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(14,165,176,0.10);
  --shadow-lg: 0 8px 40px rgba(14,165,176,0.18);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
  background: linear-gradient(90deg, var(--navy), #1a3a52);
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.announcement-bar a {
  background: var(--accent);
  color: white;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  transition: opacity .2s;
}
.announcement-bar a:hover { opacity: .85; }

/* ========== HEADER ========== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(14,165,176,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  flex-shrink: 0;
}
.logo em {
  font-style: normal;
  color: var(--primary);
}
.logo-icon { font-size: 24px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--surface-2); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  padding-top: 22px;
  min-width: 360px;
  z-index: 100;
  /* invisible bridge fills the gap so mouse doesn't lose hover */
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.dropdown-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.dropdown-grid a:hover { background: var(--surface); color: var(--primary); }
.dropdown-grid span { font-size: 18px; }

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

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  width: 280px;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,176,0.12);
}
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar kbd {
  background: var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.btn-post {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-post:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,95,87,0.3); }

.btn-login {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: all .2s;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-2); }

.btn-register {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  color: white;
  background: var(--primary);
  transition: all .2s;
}
.btn-register:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(14,165,176,0.3); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 60%, #0a2235 100%);
  color: white;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,176,0.2), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,95,87,0.12), transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #a8eef2;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 640px;
}
.gradient-text {
  background: linear-gradient(135deg, #5ef0f8, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-search {
  display: flex;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  max-width: 560px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  color: var(--text);
}
.hero-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s;
}
.hero-search button:hover { background: var(--primary-dark); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.hero-tags span { color: rgba(255,255,255,0.5); font-weight: 500; }
.hero-tags a {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background .2s;
}
.hero-tags a:hover { background: rgba(255,255,255,0.22); }

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 28px;
  backdrop-filter: blur(10px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #5ef0f8;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ========== CATEGORY STRIP ========== */
.category-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow-x: auto;
}
.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.pill {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: all .2s;
  cursor: pointer;
}
.pill:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-2); }
.pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ========== MAIN CONTENT GRID ========== */
.main-content { padding: 40px 0 60px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}
.sort-tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; }
.sort-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}
.sort-tab.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ========== DEAL CARDS ========== */
.deals-list { display: flex; flex-direction: column; gap: 16px; }

.deal-card {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: flex;
  gap: 0;
  overflow: hidden;
  position: relative;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.deal-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.deal-card.featured { border-color: var(--accent); }
.deal-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,95,87,0.04), transparent);
  pointer-events: none;
}

.deal-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.02em;
}
.deal-badge.hot { background: #fff1f0; color: var(--accent); border: 1px solid #ffd4d1; }
.deal-badge.new { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.deal-badge.freebie { background: #fefce8; color: #a16207; border: 1px solid #fde68a; }

.deal-image {
  width: 160px;
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.deal-card:hover .deal-image img { transform: scale(1.05); }

.deal-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-store {
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-tag.amazon { background: #fff8e1; color: #e47911; }
.store-tag.flipkart { background: #e8f4fe; color: #0071cc; }
.store-tag.myntra { background: #fdf2f8; color: #d63384; }
.store-tag.zomato { background: #fff1ed; color: #e23744; }
.deal-time { font-size: 12px; color: var(--text-muted); }

.deal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}
.deal-card:hover .deal-title { color: var(--primary); }

.deal-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.price-new {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.discount-badge {
  background: var(--accent);
  color: white;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.deal-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.deal-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.deal-votes { display: flex; align-items: center; gap: 4px; }
.vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
}
.vote-btn.up:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-2); }
.vote-btn.down:hover { border-color: var(--accent); color: var(--accent); }

.deal-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex: 1;
}

.btn-get {
  background: var(--primary);
  color: white;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  margin-left: auto;
  transition: all .2s;
  white-space: nowrap;
}
.btn-get:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(14,165,176,0.3); }

/* ===== LOAD MORE BUTTON (matches Coupons page) ===== */
.load-more {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 20px 0 8px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  text-align: center;
  letter-spacing: 0.01em;
}
.load-more:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(14,165,176,0.22);
}
.load-more:disabled {
  opacity: 0.45;
  cursor: default;
}

/* All-loaded message */
.all-loaded {
  text-align: center;
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ========== SIDEBAR ========== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--navy);
}

.trending-list { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: trending; }
.trending-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  counter-increment: trending;
}
.trending-list li::before {
  content: counter(trending);
  width: 22px; height: 22px;
  background: var(--surface);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.trending-list li:nth-child(1)::before { background: var(--accent); color: white; }
.trending-list li:nth-child(2)::before { background: var(--primary); color: white; }
.trending-list li a { font-size: 13.5px; font-weight: 500; flex: 1; transition: color .2s; }
.trending-list li a:hover { color: var(--primary); }
.trending-list li span { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; }

.store-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.store-chip {
  padding: 6px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.store-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }

.alert-cta {
  background: linear-gradient(135deg, var(--navy), #1a3a52);
  border-color: transparent;
  color: white;
  text-align: center;
}
.alert-cta .alert-icon { font-size: 36px; margin-bottom: 8px; }
.alert-cta h3 { color: white; }
.alert-cta p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.alert-cta input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  margin-bottom: 10px;
}
.alert-cta input::placeholder { color: rgba(255,255,255,0.5); }
.alert-cta button {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.alert-cta button:hover { background: var(--primary-dark); }

.contributors { display: flex; flex-direction: column; gap: 12px; }
.contributor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.c-name { font-size: 13.5px; font-weight: 600; }
.c-deals { font-size: 12px; color: var(--text-muted); }
.c-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.c-badge.gold { background: #fef3c7; color: #d97706; }
.c-badge.silver { background: #f1f5f9; color: #64748b; }
.c-badge.bronze { background: #fdf2e9; color: #9a3412; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer .logo { color: white; margin-bottom: 14px; }
.footer .logo em { color: #5ef0f8; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 12.5px;
  transition: background .2s;
}
.social-links a:hover { background: var(--primary); color: white; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: #5ef0f8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== AUTH PAGES (login.html & register.html) ========== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 60%, #0f2a3d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,176,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,95,87,0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-card {
  background: white;
  border-radius: 24px;
  padding: 40px 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: slideUp .5s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 8px;
}
.auth-logo em { font-style: normal; color: var(--primary); }

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  background: white;
  transition: all .2s;
  color: var(--text);
}
.social-btn:hover { border-color: var(--primary); background: var(--surface-2); transform: translateY(-1px); }
.social-btn .social-icon { width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.social-btn.google .social-icon { color: #ea4335; }
.social-btn.facebook .social-icon { color: #1877f2; }
.social-btn.apple .social-icon { color: #000; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--surface);
}
.form-group input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(14,165,176,0.12);
}
.form-group input::placeholder { color: #aac; }

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

.form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13.5px;
}
.form-extras label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.form-extras a { color: var(--primary); font-weight: 500; }
.form-extras a:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.btn-submit:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(14,165,176,0.35); transform: translateY(-1px); }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.terms-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}
.terms-note a { color: var(--primary); }

.auth-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  text-align: center;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.auth-tagline strong { color: #5ef0f8; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { width: 220px; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 36px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .hamburger { display: block; }
  .header-actions .search-bar, .btn-post, .btn-login, .btn-register { display: none; }
  .deal-card { flex-direction: column; }
  .deal-image { width: 100%; height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .stat-card { padding: 14px 20px; }
  .stat-number { font-size: 24px; }
}

/* ========== AUTH MODAL ========== */
.auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.7);
  backdrop-filter: blur(4px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal-overlay.active { display: flex; }

.auth-modal-box {
  background: white;
  border-radius: 24px;
  padding: 40px 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: slideUp .3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.auth-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-family: var(--font-body);
  line-height: 1;
}
.auth-modal-close:hover { background: var(--accent); color: white; border-color: var(--accent); }
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth-logo em { font-style: normal; color: var(--primary); }
.auth-logo .logo-icon { font-size: 26px; }
.auth-modal-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}
@media (max-width: 520px) {
  .auth-modal-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
