/* ============================================================
   UNDIG - Main CSS Design System
   Navy Blue & White Professional Theme
   ============================================================ */

:root {
  --navy-900: #0D1B3E;
  --navy-800: #1B2A5C;
  --navy-700: #1B3A6B;
  --navy-600: #1E4080;
  --navy-500: #2A5298;
  --navy-400: #3A6BC4;
  --navy-300: #5B8ADB;
  --navy-200: #A8C4F0;
  --navy-100: #D6E4FF;
  --navy-50:  #EEF4FF;

  --gold-600: #B8960A;
  --gold-500: #D4AF37;
  --gold-400: #E8CB5D;
  --gold-300: #F0DC8A;
  --gold-100: #FDF7E0;

  --rose-600: #C2185B;
  --rose-500: #E91E63;
  --rose-400: #F06292;
  --rose-200: #F8BBD9;
  --rose-50:  #FCE4EC;

  --white:    #FFFFFF;
  --gray-50:  #F8F9FC;
  --gray-100: #F1F4F9;
  --gray-200: #E8ECF4;
  --gray-300: #D1D8E8;
  --gray-400: #9DAEC8;
  --gray-500: #6B82A8;
  --gray-600: #4A5F7A;
  --gray-700: #354560;
  --gray-800: #1E2A40;
  --gray-900: #0F1520;

  --success:  #10B981;
  --warning:  #F59E0B;
  --danger:   #EF4444;
  --info:     #3B82F6;

  --font-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  --shadow-sm:  0 1px 3px rgba(27,58,107,.08), 0 1px 2px rgba(27,58,107,.04);
  --shadow:     0 4px 16px rgba(27,58,107,.10), 0 2px 6px rgba(27,58,107,.06);
  --shadow-md:  0 8px 24px rgba(27,58,107,.14), 0 4px 8px rgba(27,58,107,.08);
  --shadow-lg:  0 16px 48px rgba(27,58,107,.18), 0 8px 16px rgba(27,58,107,.10);
  --shadow-xl:  0 24px 64px rgba(27,58,107,.24);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy-400); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--navy-900); }
.font-serif { font-family: var(--font-serif); }
.text-xs    { font-size: .75rem; }
.text-sm    { font-size: .875rem; }
.text-base  { font-size: 1rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }
.text-4xl   { font-size: 2.25rem; }
.text-5xl   { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-muted  { color: var(--gray-500); }
.text-navy   { color: var(--navy-700); }
.text-gold   { color: var(--gold-500); }
.text-white  { color: var(--white); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ===== CONTAINER ===== */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.5rem; font-size: .9rem; font-weight: 600; line-height: 1;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); text-decoration: none;
  white-space: nowrap; user-select: none; font-family: var(--font-sans);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm  { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg  { padding: .85rem 2.25rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-xl  { padding: 1rem 2.75rem; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-icon { padding: .6rem; border-radius: var(--radius-sm); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 100%);
  color: var(--white); box-shadow: 0 4px 14px rgba(27,58,107,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,58,107,.35);
}
.btn-outline {
  background: transparent; color: var(--navy-700); border-color: var(--navy-300);
}
.btn-outline:hover {
  background: var(--navy-50); color: var(--navy-700); border-color: var(--navy-500);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-500) 100%);
  color: var(--white); box-shadow: 0 4px 14px rgba(212,175,55,.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #9A7A08 0%, var(--gold-600) 100%);
  color: var(--white); transform: translateY(-1px);
}
.btn-white {
  background: var(--white); color: var(--navy-700); border-color: var(--white);
  box-shadow: var(--shadow);
}
.btn-white:hover { background: var(--navy-50); color: var(--navy-800); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #DC2626; color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; color: var(--white); }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--gray-200);
}
.card-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.card-hover { transition: var(--transition); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ===== FORMS ===== */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-size: .875rem; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; }
.form-label .required { color: var(--danger); margin-left: .2rem; }
.form-control {
  display: block; width: 100%; padding: .7rem 1rem;
  font-size: .9rem; font-family: var(--font-sans);
  color: var(--gray-800); background: var(--white);
  border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(42,82,152,.15);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:read-only { background: var(--gray-100); cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }
.form-row { display: grid; gap: 1rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Select */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B82A8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Input with icon */
.input-group { position: relative; }
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); pointer-events: none; display: flex;
}
.input-group-append { display: flex; align-items: stretch; }
.input-group-append .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group-btn {
  padding: 0 1rem; background: var(--navy-700); color: var(--white);
  border: 1.5px solid var(--navy-700); border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
  font-weight: 600; transition: var(--transition);
}
.input-group-btn:hover { background: var(--navy-800); }

/* Checkbox & Radio */
.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input { width: 1rem; height: 1rem; accent-color: var(--navy-600); cursor: pointer; }
.form-check label { cursor: pointer; font-size: .9rem; }

/* ===== ALERTS / FLASH ===== */
.alert {
  padding: .9rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; display: flex; align-items: flex-start; gap: .75rem;
  border-left: 4px solid transparent; margin-bottom: 1rem;
}
.alert-icon { flex-shrink: 0; margin-top: .05rem; }
.alert-success { background: #ECFDF5; border-color: var(--success); color: #065F46; }
.alert-danger  { background: #FEF2F2; border-color: var(--danger);  color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: var(--info);    color: #1E40AF; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem; font-size: .72rem; font-weight: 700;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .03em;
}
.badge-success   { background: #ECFDF5; color: #065F46; }
.badge-danger    { background: #FEF2F2; color: #991B1B; }
.badge-warning   { background: #FFFBEB; color: #92400E; }
.badge-info      { background: #EFF6FF; color: #1E40AF; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-primary   { background: var(--navy-100); color: var(--navy-700); }
.badge-gold      { background: var(--gold-100); color: var(--gold-600); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,27,62,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
}
.navbar-brand .logo-text {
  font-size: 1.6rem; font-weight: 900; color: var(--white);
  letter-spacing: -.02em; font-family: var(--font-serif);
}
.navbar-brand .logo-dot { color: var(--gold-400); }
.navbar-nav { display: flex; align-items: center; gap: .25rem; list-style: none; }
.navbar-nav a {
  color: rgba(255,255,255,.8); padding: .5rem .9rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--white); background: rgba(255,255,255,.12);
}
.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.navbar-toggle {
  display: none; background: none; border: none; color: var(--white);
  cursor: pointer; padding: .4rem; border-radius: var(--radius-sm);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 40%, var(--navy-600) 70%, #1E3A5F 100%);
  position: relative; overflow: hidden; padding: 100px 0 60px;
}
.hero::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%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(212,175,55,.15); border: 1px solid rgba(212,175,55,.3);
  color: var(--gold-400); padding: .4rem 1rem;
  border-radius: var(--radius-full); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--white);
  font-family: var(--font-serif); line-height: 1.15; margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--gold-400); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.15rem; max-width: 550px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: .2rem; }
.hero-mockup { position: relative; }
.hero-cards-wrap {
  position: relative; display: flex; flex-direction: column; gap: 1rem; align-items: flex-end;
}

/* ===== SECTION ===== */
section { padding: 80px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--navy-50); color: var(--navy-700);
  padding: .35rem .9rem; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 1rem;
  border: 1px solid var(--navy-200);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-family: var(--font-serif);
  color: var(--navy-900); margin-bottom: 1rem; line-height: 1.2;
}
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 0 auto 3rem; line-height: 1.65; }

/* ===== PRICING CARDS ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  border: 2px solid var(--gray-200); transition: var(--transition); position: relative;
  text-align: center;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--navy-500); box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white); transform: scale(1.04);
}
.pricing-card.popular h3, .pricing-card.popular .price-amount { color: var(--white); }
.pricing-card.popular .price-period { color: rgba(255,255,255,.6); }
.pricing-card.popular .feature-list li { color: rgba(255,255,255,.85); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--white); padding: .3rem 1rem;
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.price-amount { font-size: 2.5rem; font-weight: 900; color: var(--navy-900); line-height: 1; }
.price-period { font-size: .8rem; color: var(--gray-500); margin-top: .25rem; }
.feature-list { list-style: none; margin: 1.5rem 0; text-align: left; }
.feature-list li {
  display: flex; align-items: center; gap: .6rem; padding: .4rem 0;
  font-size: .875rem; color: var(--gray-600); border-bottom: 1px solid var(--gray-100);
}
.feature-list li:last-child { border-bottom: none; }
.feature-check { color: var(--success); flex-shrink: 0; }

/* ===== TEMPLATE CARDS ===== */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.template-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--gray-200); cursor: pointer;
}
.template-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.template-thumb {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy-200), var(--navy-100));
}
.template-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.template-card:hover .template-thumb img { transform: scale(1.06); }
.template-overlay {
  position: absolute; inset: 0; background: rgba(13,27,62,.6);
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  opacity: 0; transition: var(--transition);
}
.template-card:hover .template-overlay { opacity: 1; }
.template-info { padding: 1.25rem; }
.template-badge { margin-bottom: .5rem; }
.template-name { font-size: 1rem; font-weight: 700; color: var(--navy-800); margin-bottom: .25rem; }
.template-desc { font-size: .8rem; color: var(--gray-500); }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; position: relative; }
.step { text-align: center; }
.step-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; box-shadow: 0 8px 24px rgba(27,58,107,.25);
  color: var(--white);
}
.step-num {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
  background: var(--gold-500); color: var(--white); border-radius: 50%;
  font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 1rem; color: var(--navy-800); margin-bottom: .4rem; }
.step p { font-size: .875rem; color: var(--gray-500); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900); color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-logo .logo-text { font-size: 1.8rem; color: var(--white); font-family: var(--font-serif); font-weight: 900; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: .35rem; }
.footer h6 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0;
  font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh; display: flex;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}
.auth-left {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='white' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.auth-right {
  width: 520px; background: var(--white); display: flex; flex-direction: column;
  justify-content: center; padding: 3rem; overflow-y: auto;
}
.auth-brand { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 3rem; position: relative; z-index: 1; }
.auth-brand-logo { font-size: 2.5rem; font-weight: 900; color: var(--white); font-family: var(--font-serif); }
.auth-brand-logo span { color: var(--gold-400); }
.auth-tagline { color: rgba(255,255,255,.6); font-size: .95rem; }
.auth-features { list-style: none; position: relative; z-index: 1; }
.auth-features li {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.8); padding: .6rem 0; font-size: .9rem;
}
.auth-features .icon { color: var(--gold-400); flex-shrink: 0; }
.auth-title { font-size: 1.75rem; color: var(--navy-900); margin-bottom: .5rem; }
.auth-subtitle { color: var(--gray-500); margin-bottom: 2rem; font-size: .9rem; }
.auth-divider { text-align: center; position: relative; margin: 1.5rem 0; }
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--gray-200);
}
.auth-divider span { background: var(--white); padding: 0 1rem; color: var(--gray-400); font-size: .85rem; position: relative; }
.auth-link { color: var(--gray-500); font-size: .875rem; text-align: center; margin-top: 1.5rem; }
.auth-link a { color: var(--navy-600); font-weight: 600; }
.auth-link a:hover { color: var(--navy-400); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--navy-900); color: var(--white);
  padding: .875rem 1rem; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; text-align: left;
  white-space: nowrap;
}
thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }
tbody td { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .875rem; color: var(--gray-700); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--navy-50); }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%; animation: skeleton-load 1.4s ease-in-out infinite; border-radius: var(--radius-sm);
}
@keyframes skeleton-load { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3); border-top-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse dot */
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  display: inline-block; position: relative;
}
.dot-pulse::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 2px solid var(--success);
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* ===== TOAST NOTIFICATION ===== */
.toast-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .75rem;
}
.toast {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  min-width: 280px; max-width: 360px;
  border-left: 4px solid var(--navy-500);
  animation: toast-in .3s ease-out;
}
.toast.success { border-color: var(--success); }
.toast.danger  { border-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; }
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 2rem 1.5rem; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 50px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .btn-xl { padding: .875rem 1.75rem; font-size: .95rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .steps { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn .5s ease-out; }
.slide-up { animation: slideUp .5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.float {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--navy-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }
