/* =========================================================
   WebStudio786.com – Main Stylesheet
   Color Scheme: Deep Purple & Gold
   Style: Bold & Corporate
   ========================================================= */

:root {
  --purple:        #4c1d95;
  --purple-mid:    #6d28d9;
  --purple-light:  #7c3aed;
  --purple-bg:     #f5f3ff;
  --purple-dark:   #2e1065;
  --gold:          #d97706;
  --gold-light:    #fbbf24;
  --gold-bright:   #fcd34d;
  --gold-bg:       #fffbeb;
  --text:          #1a1a2e;
  --muted:         #6b7280;
  --border:        #e5e7eb;
  --bg-light:      #f9fafb;
  --white:         #ffffff;
  --green:         #059669;
  --red:           #dc2626;
  --radius:        10px;
  --shadow:        0 1px 4px rgba(76,29,149,.08), 0 1px 2px rgba(76,29,149,.06);
  --shadow-md:     0 4px 12px rgba(76,29,149,.12), 0 2px 6px rgba(76,29,149,.08);
  --shadow-lg:     0 12px 28px rgba(76,29,149,.15), 0 4px 10px rgba(76,29,149,.1);
  --shadow-gold:   0 4px 20px rgba(217,119,6,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', system-ui, sans-serif; color: var(--text); line-height: 1.6; background: #fff; }
img   { max-width: 100%; }
a     { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* LAYOUT */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.section    { padding: 80px 0; }
.bg-light   { background: var(--bg-light); }
.bg-purple  { background: var(--purple-bg); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* TYPOGRAPHY */
h1 { font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
p  { margin-bottom: 14px; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid #fde68a;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.accent { color: var(--gold-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--purple-dark);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  font-weight: 800;
}
.btn-primary:hover {
  background: #b45309;
  border-color: #b45309;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(217,119,6,.4);
}
.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border-color: var(--purple-light);
}
.btn-outline:hover { background: var(--purple-bg); text-decoration: none; }
.btn-white {
  background: #fff;
  color: var(--purple-dark);
  border-color: #fff;
  font-weight: 800;
}
.btn-white:hover { background: var(--gold-bg); text-decoration: none; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-link { background: none; border: none; color: var(--purple-light); cursor: pointer; font-size: .9rem; padding: 4px 0; font-family: inherit; }
.btn-link:disabled { color: var(--muted); cursor: not-allowed; }

/* ── NAVBAR ── */
.navbar {
  background: var(--purple-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(46,16,101,.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo .logo-786 { color: var(--gold-light); }
.logo .logo-dot { color: var(--gold); font-size: .6rem; margin: 0 2px; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 600; font-size: .88rem; transition: color .15s; }
.nav-links a:hover { color: var(--gold-light); text-decoration: none; }
.nav-apply {
  background: var(--gold) !important;
  color: var(--purple-dark) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: .88rem !important;
  box-shadow: 0 2px 12px rgba(217,119,6,.4) !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.nav-apply:hover { background: var(--gold-bright) !important; color: var(--purple-dark) !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 55%, var(--purple-mid) 100%);
  color: #fff;
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(251,191,36,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
.hero h1 { color: #fff; }
.hero-badge {
  display: inline-block;
  background: rgba(251,191,36,.15);
  border: 1px solid rgba(251,191,36,.4);
  color: var(--gold-bright);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: .04em;
}
.hero-sub {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,.9);
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 10px 28px;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--gold), var(--purple));
  border: none;
  margin: 0;
}

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; align-items: start; }

/* ── ITIN CARD ── */
.itin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
}
.itin-card h3 { color: var(--purple); margin-bottom: 14px; }
.itin-card ul { list-style: none; }
.itin-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.itin-card li:last-child { border: none; }

/* ── STEPS ── */
.steps { display: flex; align-items: flex-start; gap: 8px; margin: 36px 0; flex-wrap: wrap; justify-content: center; }
.step {
  flex: 1;
  min-width: 210px;
  max-width: 290px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold);
  text-align: left;
}
.step-number {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.step-arrow { font-size: 2rem; color: var(--gold); align-self: center; padding-top: 12px; }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 24px; margin-top: 32px; }
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--purple-bg);
  transition: box-shadow .2s, border-color .2s;
}
.feature:hover { box-shadow: var(--shadow-md); border-bottom-color: var(--gold); }
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }

/* ── PRICING ── */
.pricing-card {
  max-width: 420px;
  margin: 36px auto 0;
  background: var(--white);
  border-radius: 14px;
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--purple-light);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}
.price-tag { font-size: 3.2rem; font-weight: 900; color: var(--purple); line-height: 1; }
.price-label { color: var(--muted); margin-bottom: 26px; font-weight: 600; }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.price-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
.cta-section h2, .cta-section p { color: #fff; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.contact-info { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.8); }
.contact-info a { color: var(--gold-light); }

/* ── FORMS ── */
.form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); margin-top: 28px; border-top: 4px solid var(--gold); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-weight: 700; font-size: .87rem; margin-bottom: 6px; color: var(--text); }
input[type="text"], input[type="email"], input[type="date"], input[type="tel"],
input[type="password"], input[type="file"], select, textarea {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-mid); }
.otp-input { letter-spacing: .4em; font-size: 1.6rem; font-weight: 800; text-align: center; }
.form-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
  border-bottom: 2px solid var(--purple-bg);
  padding-bottom: 8px;
  margin: 28px 0 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.verified-badge {
  background: #d1fae5;
  color: #065f46;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 18px;
  display: inline-block;
  font-weight: 600;
}
.disclaimer { background: var(--purple-bg); border-radius: var(--radius); padding: 16px; border-left: 4px solid var(--purple-light); }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; font-size: .9rem; }

/* ── PROGRESS BAR ── */
.progress-bar { display: flex; gap: 4px; margin: 24px 0; }
.progress-step {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: var(--border);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.progress-step.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
}
.progress-step.done { background: var(--gold); color: var(--purple-dark); }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; border-left: 4px solid; }
.alert-error   { background: #fef2f2; color: var(--red); border-color: var(--red); }
.alert-success { background: #d1fae5; color: #065f46; border-color: var(--green); }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 4px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-size: 1rem;
  font-weight: 700; color: var(--text); gap: 12px; font-family: inherit;
}
.faq-question:hover { color: var(--purple-mid); }
.faq-icon { font-size: 1.4rem; font-weight: 400; color: var(--gold); flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 4px 18px; color: var(--muted); font-size: .95rem; }
.faq-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 26px; margin-top: 32px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--purple);
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-cover { width: 100%; height: 185px; object-fit: cover; display: block; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .77rem; color: var(--muted); margin-bottom: 10px; }
.blog-title { font-size: 1rem; font-weight: 800; margin-bottom: 10px; line-height: 1.45; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--purple-mid); text-decoration: none; }
.blog-excerpt { font-size: .88rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.btn-sm-blog { font-size: .85rem; padding: 8px 18px; }

/* ── FOOTER ── */
.footer { background: var(--purple-dark); color: #a78bfa; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 44px; padding-bottom: 44px; }
.footer h4 { color: var(--gold-light); font-weight: 800; margin-bottom: 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; font-size: .9rem; }
.footer a { color: #a78bfa; }
.footer a:hover { color: var(--gold-light); }
.contact-list li { padding-left: 4px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom p { font-size: .8rem; text-align: center; margin: 4px 0; color: rgba(255,255,255,.4); }

/* ── CONTACT LAYOUT ── */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; margin-top: 32px; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.contact-card h3 { margin-bottom: 8px; font-size: 1rem; color: var(--purple); }

/* ── ADMIN (keep functional, restyle) ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-main { flex: 1; margin-left: 224px; padding: 0 32px 48px; min-width: 0; background: #faf9ff; }
.sidebar { width: 224px; background: var(--purple-dark); color: #a78bfa; position: fixed; top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; z-index: 200; }
.sidebar-logo { font-size: 1.1rem; font-weight: 900; color: #fff; padding: 22px 20px; border-bottom: 2px solid var(--gold); }
.sidebar-logo .accent { color: var(--gold-light); }
.sidebar-sub { font-size: .62rem; font-weight: 500; color: #7c3aed; display: block; text-transform: uppercase; letter-spacing: .06em; margin-top: -2px; }
.sidebar-nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: #a78bfa; font-size: .9rem; font-weight: 600; border-left: 3px solid transparent; transition: all .15s; text-decoration: none; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(251,191,36,.08); border-left-color: var(--gold); }
.sidebar-badge { margin-left: auto; background: var(--gold); color: var(--purple-dark); font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 50px; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 16px 16px 20px; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; }
.admin-avatar { width: 32px; height: 32px; background: var(--gold); color: var(--purple-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .9rem; flex-shrink: 0; }
.admin-info { flex: 1; min-width: 0; }
.admin-name  { display: block; font-size: .82rem; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-email { display: block; font-size: .72rem; color: #6d28d9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout { color: #6d28d9; font-size: 1.1rem; flex-shrink: 0; transition: color .15s; text-decoration: none; }
.sidebar-logout:hover { color: #f87171; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 18px; border-bottom: 2px solid var(--gold); margin-bottom: 28px; }
.admin-topbar h1 { font-size: 1.4rem; font-weight: 900; color: var(--purple); }
.admin-topbar span { font-size: .88rem; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); text-align: center; border-bottom: 3px solid var(--gold); }
.stat-num  { font-size: 2.2rem; font-weight: 900; color: var(--purple); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.admin-section { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 26px; }
.admin-section h2 { font-size: 1rem; font-weight: 800; margin-bottom: 18px; color: var(--purple); text-transform: uppercase; letter-spacing: .04em; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { text-align: left; padding: 10px 12px; background: var(--purple-dark); color: #fff; border-bottom: 2px solid var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--purple-bg); }
.row-new td { background: var(--gold-bg) !important; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-new, .badge-submitted   { background: #ede9fe; color: var(--purple); }
.badge-read, .badge-under-review { background: #fef3c7; color: #92400e; }
.badge-replied, .badge-approved  { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-paid     { background: #d1fae5; color: #065f46; }
.badge-lg { font-size: .9rem; padding: 6px 18px; }
.btn { font-family: inherit; }
.btn-sm { display: inline-block; padding: 4px 12px; background: var(--purple-bg); color: var(--purple); border-radius: 6px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.btn-sm:hover { background: #ddd6fe; text-decoration: none; }
.btn-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.btn-back:hover { color: var(--purple); text-decoration: none; }
.empty-state { color: var(--muted); font-size: .95rem; padding: 24px 0; }
.table-count { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); background: var(--white); border: 1.5px solid var(--border); transition: all .15s; text-decoration: none; }
.filter-tab:hover { border-color: var(--purple-mid); color: var(--purple); text-decoration: none; }
.filter-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.tab-count { background: rgba(0,0,0,.1); padding: 1px 7px; border-radius: 50px; font-size: .73rem; }
.filter-tab.active .tab-count { background: rgba(255,255,255,.2); }
.search-bar { display: flex; gap: 8px; margin-bottom: 22px; align-items: center; }
.search-bar input { flex: 1; max-width: 380px; padding: 9px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-size: .9rem; font-family: inherit; }
.search-bar input:focus { outline: none; border-color: var(--purple-mid); }
.detail-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 8px; }
.detail-table th { text-align: left; padding: 9px 12px; background: var(--purple-bg); font-weight: 700; border-bottom: 1px solid var(--border); color: var(--purple); width: 38%; }
.detail-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.app-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.status-panel .current-status { font-size: .9rem; margin-bottom: 10px; }
.msg-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.msg-body { background: var(--purple-bg); border-radius: var(--radius); padding: 16px; font-size: .95rem; line-height: 1.75; margin-bottom: 22px; border-left: 4px solid var(--gold); }
.msg-reply-sent { background: #d1fae5; border-radius: var(--radius); padding: 14px; margin-bottom: 22px; font-size: .9rem; border-left: 4px solid var(--green); }
.reply-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--purple-dark); }
.login-card { background: var(--white); border-radius: 14px; padding: 50px 42px; text-align: center; box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; border-top: 5px solid var(--gold); }
.mt-3 { margin-top: 20px; }
.quick-actions h3 { font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.notes-box { background: var(--bg-light); border-radius: var(--radius); padding: 12px; font-size: .9rem; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--purple-dark); border-bottom: 2px solid var(--gold); padding: 16px 24px; gap: 16px; z-index: 99; }
  .nav-links.open { display: flex; }
  .two-col, .form-row, .contact-layout, .app-detail-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; position: relative; flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .sidebar-nav a { padding: 10px 14px; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-nav a.active { border-bottom-color: var(--gold); background: none; }
  .admin-main { margin-left: 0; padding: 16px; }
}