/* LeafMail.ro - RoLeaf Design System */

/* ===== Design Tokens ===== */
:root {
    /* Primary green palette */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    /* Gray palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic colors */
    --primary: var(--primary-500);
    --primary-dark: var(--primary-600);
    --primary-light: var(--primary-300);
    --primary-bg: var(--primary-50);
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text: var(--gray-900);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    --bg: var(--gray-100);
    --white: #ffffff;
    --border: var(--gray-200);
    --border-dark: var(--gray-300);

    /* Shadows */
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Radius */
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    /* Layout */
    --sidebar-width: 260px;
    --navbar-height: 72px;
}

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

body {
    font-family: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.2;
}

a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

/* ===== Navbar (Glassmorphic) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--navbar-height);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229,231,235,0.5);
    padding: 0 20px;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
    max-width: 1200px;
    margin: 0 auto;
}
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand:hover { color: var(--primary-700); }
.brand-icon { font-size: 26px; }
.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-links a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}
.navbar-links a:hover {
    color: var(--primary-700);
    background: var(--primary-50);
}
.navbar-links .btn {
    margin-left: 4px;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}
.mobile-nav-toggle:hover { background: var(--gray-100); }

/* Mobile nav menu */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}
.mobile-nav-menu.open { display: block; }
.mobile-nav-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 16px;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.mobile-nav-menu a:hover { background: var(--primary-50); color: var(--primary-700); }
.mobile-nav-menu .btn { margin-top: 8px; width: 100%; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}
.btn-danger { background: linear-gradient(135deg, var(--danger), var(--danger-dark)); color: var(--white); box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.btn-danger:hover { background: linear-gradient(135deg, var(--danger-dark), #b91c1c); color: var(--white); box-shadow: 0 4px 16px rgba(239,68,68,0.35); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-dark);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-700); background: var(--primary-50); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--gray-700);
}
.form-input, .form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--text);
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.form-input.error { border-color: var(--danger); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-help { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 4px; }
.input-group { display: flex; gap: 0; }
.input-group .form-input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .input-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
}
.card-stat { text-align: center; padding: 20px; }
.card-stat .stat-value { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); }
.card-stat .stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ===== Tables ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    background: var(--gray-50);
}
td { font-size: 14px; }
tr:hover { background: var(--primary-50); }

/* ===== Flash Messages ===== */
.flash-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    animation: flashIn 0.3s ease;
}
.flash-success { background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-200); }
.flash-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.flash-close { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; opacity: 0.6; padding: 0 0 0 12px; }
.flash-close:hover { opacity: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Sidebar ===== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
}
.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand a {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-nav { padding: 12px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--primary-50); color: var(--primary-700); }
.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-700);
    font-weight: 600;
}
.sidebar-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    color: inherit;
    opacity: 0.85;
}
.sidebar-link.active .sidebar-icon { opacity: 1; }
.sidebar-external { font-size: 12px; margin-left: auto; opacity: 0.4; }
.sidebar-divider { height: 1px; background: var(--border); margin: 10px 0; }
.sidebar-heading {
    display: block;
    padding: 8px 14px 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.sidebar-logout:hover { background: #fef2f2; color: var(--danger); }

.dashboard-main { flex: 1; margin-left: var(--sidebar-width); padding: 30px; }
.dashboard-layout ~ .footer { margin-left: var(--sidebar-width); }
.dashboard-header { margin-bottom: 30px; }
.dashboard-header h1 { font-size: 24px; font-weight: 700; }
.dashboard-header p { color: var(--text-secondary); margin-top: 4px; }

/* ===== Grid ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Quota Bar ===== */
.quota-bar { height: 12px; background: var(--gray-100); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.quota-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-400), var(--primary-500)); border-radius: 6px; transition: width 0.5s; }
.quota-bar-fill.warning { background: linear-gradient(90deg, #fbbf24, var(--warning)); }
.quota-bar-fill.danger { background: linear-gradient(90deg, #f87171, var(--danger)); }

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: var(--primary-50); color: var(--primary-700); }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-info { background: #eff6ff; color: #1d4ed8; }

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(var(--navbar-height) + 20px);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-50) 50%, var(--gray-50) 100%);
}
.auth-card { width: 100%; max-width: 460px; }
.auth-card .card {
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(229,231,235,0.6);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 { font-size: 26px; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 15px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }

/* ===== Tabs ===== */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab {
    padding: 10px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 14px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary-700); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Hero Section ===== */
.hero {
    padding: 120px 0 80px;
    padding-top: calc(var(--navbar-height) + 60px);
    text-align: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 30%, #eff6ff 70%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero > .container > p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Hero floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-300);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: #93c5fd;
    bottom: -30px;
    left: -30px;
    animation-delay: -3s;
}
.hero-orb-3 {
    width: 150px;
    height: 150px;
    background: var(--primary-200);
    top: 40%;
    left: 15%;
    animation-delay: -5s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* Hero Checker */
.hero-checker {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-email-compose {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}
.hero-email-compose:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12), var(--shadow-md);
}
.hero-email-local { flex: 2; min-width: 0; }
.hero-email-at {
    padding: 0 2px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    user-select: none;
}
.hero-email-domain {
    flex: 3;
    min-width: 0;
    border-left: 1px solid var(--border);
}
.hero-email-compose .hero-input {
    border: none;
    border-radius: 0;
    padding: 14px 12px;
    font-size: 16px;
    width: 100%;
    outline: none;
    background: transparent;
    font-family: inherit;
}
.hero-toggle {
    display: inline-flex;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.hero-toggle-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
}
.hero-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}
.hero-toggle-btn:hover:not(.active) { color: var(--primary-700); }
.hero-input-group {
    display: flex;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}
.hero-input-group:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12), var(--shadow-md);
}
.hero-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    min-width: 0;
    background: transparent;
}
.hero-input-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.hero-check-btn {
    border-radius: 0 10px 10px 0 !important;
    padding: 14px 24px;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hero-result {
    margin-top: 12px;
    padding: 0;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: left;
    display: none;
    animation: flashIn 0.3s ease;
}
.hero-result.show {
    display: block;
    padding: 14px 18px;
}
.hero-result.result-registered {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    color: var(--primary-700);
}
.hero-result.result-available {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.hero-result.result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}
.hero-result .result-title { font-weight: 600; margin-bottom: 6px; }
.hero-result .result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.hero-result .result-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.hero-result.result-registered .result-cta {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
}
.hero-result.result-registered .result-cta:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
}
.hero-result.result-available .result-cta { background: #f59e0b; color: var(--white); }
.hero-result.result-available .result-cta:hover { background: #d97706; color: var(--white); }
.hero-result .result-note { font-size: 13px; margin-top: 6px; opacity: 0.85; }
.hero-hint { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229,231,235,0.6);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-badge:hover {
    border-color: var(--primary-300);
    box-shadow: 0 2px 8px rgba(34,197,94,0.1);
}
.hero-badge i { color: var(--primary-500); }

/* ===== Section Badges ===== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: 16px;
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: -32px auto 40px;
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.7;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}
.how-it-works h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.step-card {
    text-align: center;
    padding: 24px;
}
.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ===== Features ===== */
.features { padding: 80px 0; }
.features h2 { text-align: center; font-size: 32px; margin-bottom: 48px; }
.feature-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}
.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ===== Pricing ===== */
.pricing { padding: 80px 0; background: var(--white); }
.pricing h2 { text-align: center; font-size: 32px; margin-bottom: 48px; }
.pricing-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
}
.pricing-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--primary-500);
    position: relative;
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 40%);
    box-shadow: 0 8px 30px rgba(34,197,94,0.12);
}
.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    padding: 4px 20px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
.pricing-price {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 16px 0;
}
.pricing-card.featured .pricing-price {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-price span { font-size: 16px; color: var(--text-secondary); font-weight: 400; -webkit-text-fill-color: var(--text-secondary); }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '\2713'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ===== Promo Section ===== */
.promo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
}
.promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.promo-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    border-radius: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}
.promo-text h2 { font-size: 32px; margin-bottom: 16px; line-height: 1.3; }
.promo-text h2 span { color: var(--primary); }
.promo-text > p { color: var(--text-secondary); font-size: 16px; margin-bottom: 24px; line-height: 1.7; }
.promo-list { list-style: none; margin-bottom: 28px; }
.promo-list li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
    position: relative;
    padding-left: 28px;
}
.promo-list li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}
.promo-cta { display: flex; gap: 12px; margin-bottom: 16px; }
.promo-code-text { font-size: 14px; color: var(--text-secondary); }
.promo-visual { display: flex; flex-direction: column; gap: 16px; }
.promo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.promo-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.promo-card-icon { font-size: 36px; margin-bottom: 8px; }
.promo-card h4 { font-size: 18px; margin-bottom: 4px; }
.promo-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.promo-card-price { font-size: 15px; color: var(--primary-700); }
.promo-card-price strong { font-size: 20px; }

/* ===== DNS Records ===== */
.dns-record {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}
.dns-record-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dns-record-type { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.dns-record-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.copy-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.copy-btn:hover { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-300); }
.copy-btn.copied { background: var(--primary-500); color: var(--white); border-color: var(--primary-500); }

/* ===== Settings ===== */
.settings-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; }
.settings-section h3 { font-size: 18px; margin-bottom: 16px; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--primary-700); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ===== Info Box ===== */
.info-box {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 14px;
}
.info-box strong { color: var(--primary-700); }

/* ===== Sidebar Toggle (mobile) ===== */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    color: var(--text);
    transition: box-shadow 0.2s;
}
.sidebar-toggle:hover { box-shadow: var(--shadow-lg); }

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 40;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 0;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
    color: var(--gray-400);
}
.footer-brand .navbar-brand {
    color: var(--white);
    font-size: 20px;
}
.footer-brand .navbar-brand:hover { color: var(--primary-400); }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius);
    color: var(--gray-400);
    font-size: 16px;
    transition: all 0.2s;
}
.footer-social a:hover {
    background: var(--primary-600);
    color: var(--white);
}
.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--gray-400);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-400); }
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a { color: var(--gray-400); font-size: 13px; }
.footer-bottom-links a:hover { color: var(--primary-400); }

/* ===== Fade-in Animations ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Checkbox ===== */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.form-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}
.form-checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}
.form-checkbox-group label a { color: var(--primary-700); font-weight: 500; }
.form-checkbox-group label a:hover { color: var(--primary-500); }

/* ===== Legal Page ===== */
.legal-page {
    padding: 48px 0 80px;
    padding-top: calc(var(--navbar-height) + 48px);
    min-height: calc(100vh - 96px);
}
.legal-title { font-size: 32px; font-weight: 700; margin-bottom: 24px; }
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.legal-nav-link {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.legal-nav-link:hover { border-color: var(--primary-300); color: var(--primary-700); }
.legal-nav-link.active { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); color: var(--white); border-color: var(--primary-500); }
.legal-nav-link.active:hover { background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); color: var(--white); }
.legal-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.legal-body h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.legal-version { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.legal-article {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.legal-article:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.legal-article h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.legal-article p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article ul { list-style: none; margin: 10px 0; padding-left: 0; }
.legal-article ul li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.legal-article ul li::before {
    content: '\2022';
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 4px;
}
.legal-article code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding-top: calc(var(--navbar-height) + 30px); padding-bottom: 50px; }
    .hero h1 { font-size: 30px; }
    .hero > .container > p { font-size: 16px; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.open { transform: translateX(0); }
    .dashboard-main { margin-left: 0; padding-top: 60px; }
    .dashboard-layout ~ .footer { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .navbar-links { display: none; }
    .mobile-nav-toggle { display: flex; }
    .auth-card .card { padding: 24px; }
    .auth-page { padding-top: calc(var(--navbar-height) + 10px); }
    .pricing-price { font-size: 36px; }
    table { font-size: 13px; }
    th, td { padding: 8px 10px; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .promo-content { grid-template-columns: 1fr; }
    .promo-cta { flex-direction: column; }
    .hero-toggle-btn { padding: 8px 16px; font-size: 14px; }
    .hero-check-btn { padding: 14px 16px; }
    .hero-badges { gap: 8px; }
    .section-subtitle { margin-top: -24px; font-size: 14px; }
    .hero-checker { max-width: 100%; }
    .hero-email-compose .hero-input { font-size: 14px; padding: 12px 10px; }
    .hero-email-at { font-size: 16px; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .legal-body { padding: 24px 16px; }
    .legal-title { font-size: 24px; }
    .legal-body h2 { font-size: 20px; }
    .legal-nav { gap: 6px; }
    .legal-nav-link { padding: 6px 14px; font-size: 13px; }
    .legal-page { padding-top: calc(var(--navbar-height) + 24px); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
