
:root {
  --dplus-deep: #0b1e3b;
  --dplus-mid:  #0d3c90;
  --dplus-accent: #14b6ff;
  --text-on-dark: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f6f8fc;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(2,8,23,.12), 0 2px 6px rgba(2,8,23,.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

/* Prevent mobile zoom on input focus */
input, select, textarea, button { font-size: 16px; }

.container { width: min(1200px, 92%); margin: 0 auto; }

header.header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--dplus-deep), var(--dplus-mid));
  color: var(--text-on-dark);
  box-shadow: 0 10px 25px rgba(13,60,144,.35);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0;margin-bottom:0px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-on-dark); font-weight: 700; }
.logo svg { width: 36px; height: 36px; }
.logo span { font-size: 1.15rem; letter-spacing: .2px; }

/* DESKTOP MENU */
nav.menu { position: relative; }
.menu-list { list-style: none; margin: 0; padding: 0; display: ruby; gap: 8px; }
.menu-list a { white-space:nowrap;margin:5px;text-decoration: none;font-size:13px; color: var(--text-on-dark); padding: 10px 14px; border-radius:60px;border:1px solid white; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.menu-list a:hover { background: rgba(255,255,255,.08); }
.menu-dot { width: 8px; height: 8px; border-radius: 999px; background: #22c55e; display: inline-block; }

/* MOBILE TOGGLE */
#menu-toggle { display: none; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.hamburger span, .hamburger::before, .hamburger::after { content: ''; display: block; width: 22px; height: 2px; background: var(--text-on-dark); border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.hamburger::before { transform: translate(14px,-6px);}
.hamburger::after  { transform: translate(-14px,6px); }

/* MOBILE MENU PANEL */
.mobile-menu { display: none; }

/* Forms */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.label { font-weight: 600; font-size: 14px; color: #0b1e3b; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #e2e8f0; background:#fff; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: #94a3b8; box-shadow: 0 0 0 4px rgba(20,182,255,.15); }
.btn {
  border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; font-weight: 700;
  background: linear-gradient(135deg, var(--dplus-mid), var(--dplus-accent)); color: white; box-shadow: var(--shadow);
}
.btn.secondary { background: #e2e8f0; color: #0b1e3b; }
.btn.danger { background: #ef4444; color: white; }

/* Auth pages layout */
.center {
  min-height: calc(100dvh - 120px);
  display: grid; place-items: center; padding: 24px;
}
.logo-top { display: inline-flex; align-items:center; gap: 8px; color: var(--dplus-deep); text-decoration: none; font-weight: 800; }
.logo-top svg { width: 42px; height: 42px; }

/* Coupon grid */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.coupon { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.coupon .thumb { aspect-ratio: 1/1; background: linear-gradient(135deg, #f8fbff, #eef5ff); background-position: center; background-size: cover; }
.coupon .badge { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, var(--dplus-accent), #5cd7ff); color: #00223d; font-weight: 800; font-size: 13px; padding: 8px 10px; border-radius: 10px; }
.coupon .content { padding: 12px; }
.coupon .brand { font-weight: 800; color: #0b1e3b; }
.coupon .desc { color: var(--muted); font-size: 13px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2,8,23,.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 200; }
.modal { width: min(900px, 96vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.modal-header { display:flex; align-items:center; justify-content: space-between; }
.modal-close { border:0; background: transparent; font-size: 22px; cursor: pointer; }

/* Responsive table (Excel-like) */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 700px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
.table th { background: #f1f5f9; text-align: left; position: sticky; top: 0; }
.table tr:nth-child(even) td { background: #fafafa; }

footer { border-top: 1px solid rgba(2,8,23,.08); background: #fff; color: var(--muted); padding: 24px 0 40px; font-size: 14px; margin-top: 40px; }

.logosize{width:20%;}
/* Mobile nav rules */
@media (max-width: 900px) {
    .logosize{width:16%;}
  .menu-list { display: none; }
  .hamburger { display: inline-flex; }
  #menu-toggle:checked + label.hamburger span { opacity: 0; }
  #menu-toggle:checked + label.hamburger::before { transform: rotate(45deg) translate(8px,-6px); }
  #menu-toggle:checked + label.hamburger::after  { transform: rotate(-45deg) translate(-8px,-6px);}
  #menu-toggle:checked ~ nav.menu .mobile-menu { display: block; }
  nav.menu .mobile-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    overflow: hidden;
    min-width: 220px;
  }
  nav.menu .mobile-menu a {
    display: block; padding: 12px 14px; text-decoration: none; color: var(--text-on-dark);
  }
  nav.menu .mobile-menu a:hover { background: rgba(255,255,255,.08); }
}
