/* ─── Modern Design System ────────────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --primary: #FF6600;
    --primary-hover: #E65C00;
    --primary-light: #FFF0E6;
    --secondary: #1A1A1A;
    --secondary-hover: #333333;
    
    /* Neutrals */
    --bg-body: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #6C757D;
    --border: #E9ECEF;
    
    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Status */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

/* ─── Global Reset & Typography ───────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 2rem; font-weight: 800; color: var(--secondary); line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; color: var(--secondary); line-height: 1.3; margin-bottom: 8px; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); }

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.step-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    margin-top: 4px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ─── Layout & Container ──────────────────────────────────────────────────── */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeIn 0.6s ease-out;
}

/* Wider container for 3-column pricing grid */
.pricing-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
    animation: fadeIn 0.6s ease-out;
}

.pricing-header {
    text-align: center;
    margin-bottom: 12px;
    padding-top: 8px;
}

.pricing-header h1 { font-size: 2.2rem; margin-bottom: 8px; }

.choose-plan-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 auto 28px;
    max-width: 540px;
    line-height: 1.6;
    padding: 12px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.pricing-card-header { margin-bottom: 4px; }
.pricing-card-header h3 { font-size: 1.3rem; margin-bottom: 10px; }

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0 4px;
}

.pricing-cta { margin-top: auto; padding-top: 24px; }

.pricing-footer {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pricing-footer a { color: var(--primary); font-weight: 600; }
.pricing-footer a:hover { text-decoration: underline; }

/* ─── Navigation (Landing) ────────────────────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand span { font-size: 1.4rem; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; gap: 16px; align-items: center; }

/* ─── App Navbar ──────────────────────────────────────────────────────────── */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.5);
}
.nav-user { 
    font-size: 0.9rem; 
    padding: 6px 12px; 
    background: var(--primary-light); 
    color: var(--primary); 
    border-radius: 20px; 
    font-weight: 600;
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.hero-section {
    padding: 160px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero-content .highlight {
    color: var(--primary);
    background: linear-gradient(120deg, transparent 60%, var(--primary-light) 60%);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-note { font-size: 0.85rem; color: var(--text-muted); }

/* Hero Visual */
.hero-visual { position: relative; }
.visual-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: rotate(-2deg) translateY(20px);
    transition: transform 0.5s ease;
}
.hero-section:hover .visual-card { transform: rotate(0) translateY(0); }

.visual-header {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F57; }
.yellow { background: #FFBD2E; }
.green { background: #28C840; }

.visual-body { padding: 30px; }
.skeleton-line { height: 12px; background: #eee; margin-bottom: 12px; border-radius: 6px; }
.skeleton-line.title { height: 20px; width: 60%; margin-bottom: 24px; background: #e0e0e0; }
.skeleton-line.short { width: 80%; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.skeleton-box { height: 80px; background: var(--primary-light); border-radius: 8px; opacity: 0.5; }

/* ─── Features Section ────────────────────────────────────────────────────── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }
.section-title { font-size: 2.5rem; text-align: center; font-weight: 800; margin-bottom: 16px; }
.section-subtitle { font-size: 1.2rem; text-align: center; color: var(--text-muted); margin-bottom: 60px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feature-icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── Steps Section ───────────────────────────────────────────────────────── */
.steps-section { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 50px; height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px var(--primary-light);
}
.step-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step-item p { color: var(--text-muted); }

/* ─── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
    padding: 100px 20px;
    background: var(--secondary);
    color: white;
    text-align: center;
}
.cta-content h2 { color: white; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1.2rem; margin-bottom: 40px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: white;
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand { font-size: 1.5rem; font-weight: 800; color: var(--secondary); margin-bottom: 16px; }
.footer-col p { color: var(--text-muted); max-width: 300px; font-size: 0.9rem; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

input[type="text"], input[type="email"], input[type="password"], 
input[type="number"], input[type="date"], input[type="time"], input[type="url"],
select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-body);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: var(--secondary);
    padding: 8px 16px;
}
.btn-link:hover { color: var(--primary); text-decoration: none; }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; border-radius: 8px; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

/* ─── Card Components ────────────────────────────────────────────────────── */
.card, .auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

/* ─── Pricing Grid ────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pricing-card-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(to bottom, #fff, #fff0e6 120%);
    transform: scale(1.02);
    position: relative;
}
.pricing-card-featured:hover { transform: scale(1.05) translateY(-8px); }

.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }
.price-period { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.pricing-features { margin: 24px 0; flex-grow: 1; }
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li::before { content: "✓"; color: var(--success); font-weight: 800; }
.pricing-restrictions li { color: var(--text-muted); opacity: 0.7; }
.pricing-restrictions li::before { content: "✕"; color: var(--text-muted); }

/* ─── Auth ────────────────────────────────────────────────────────────────── */
.auth-container {
    max-width: 460px;
    margin: 48px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.auth-card {
    padding: 36px 40px;
}

.auth-card h2 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.auth-form { margin-top: 20px; }

.form-actions { margin-top: 8px; }

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.auth-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.auth-error { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; }
.auth-success { background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; }

/* ─── Admin Panel (matches design system) ──────────────────────────────────── */
.admin-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.admin-nav a:hover { color: var(--primary); }
.admin-nav a.active { color: var(--primary); }
.admin-panel-title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--secondary);
    margin-right: 8px;
}
.admin-nav .admin-nav-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}
.admin-nav .btn-open-app {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
}
.admin-nav .btn-open-app:hover { background: var(--primary); color: white; }
.admin-nav .btn-logout {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.admin-nav .btn-logout:hover { color: var(--error); }

.admin-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    animation: fadeIn 0.4s ease-out;
}
.admin-body h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}
.admin-body .admin-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-table tbody tr:hover td { background: rgba(0,0,0,0.02); }
.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-form-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.admin-form-row label { min-width: 160px; font-weight: 500; color: var(--secondary); }
.admin-form-row input {
    flex: 1;
    max-width: 400px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}
.admin-form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.admin-capabilities { list-style: none; padding: 0; }
.admin-capabilities li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-capabilities li:last-child { border-bottom: none; }
.admin-capabilities a { color: var(--primary); font-weight: 600; }
.admin-capabilities a:hover { text-decoration: underline; }
.admin-intro { color: var(--text-muted); margin-bottom: 16px; }
.admin-empty { color: var(--text-muted); padding: 24px 0; }

/* ─── Admin Enhanced UI ───────────────────────────────────────────────────── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.admin-stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 12px 0 4px;
}
.admin-stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}
.admin-stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}
.admin-stat-icon {
    font-size: 1.5rem;
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--bg-body); 
    border-radius: 10px;
    color: var(--primary);
    margin-bottom: 8px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}
.badge-green { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-red { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-blue { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-gray { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.badge-yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge-purple { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.btn-icon:hover {
    background: var(--bg-body);
    color: var(--text-main);
    border-color: var(--text-muted);
}
.btn-icon-danger:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.admin-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
}
.admin-select:focus { outline: none; border-color: var(--primary); }

/* ─── Utilities & Animations ──────────────────────────────────────────────── */
.text-center { text-align: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-card-featured { transform: none; }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: center;
    }
    .hero-visual { display: none; }
    .hero-actions { align-items: center; }
    .nav-links.desktop-only { display: none; }
    .steps-row, .footer-container { grid-template-columns: 1fr; }

    .auth-card { padding: 28px 24px; }
    .pricing-container { padding: 0 16px; }
}

/* ── Single Sender Verification Panel ─────────────────────────────────────── */

.sender-verify-panel {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.sender-verify-panel:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
    border-color: #ff6600;
}

.sender-verify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff8f4;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

.sender-verify-header:hover {
    background: #fff0e6;
}

.sender-verify-title {
    font-weight: 600;
    font-size: 0.97rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sender-verify-toggle {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.2s;
}

.sender-verify-body {
    padding: 18px;
    background: #fff;
    border-top: 1px solid #f0e8e0;
}

.sender-verify-desc {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Stacked layout: email row + full-width name (avoids misaligned two-column labels) */
.sender-verify-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sender-verify-fields .form-group {
    margin-bottom: 0;
}

.sender-email-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.sender-email-input {
    flex: 1 1 200px;
    min-width: 0;
}

.sender-check-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    align-self: stretch;
    padding-left: 16px;
    padding-right: 16px;
}

.sender-verify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

/* Badge states */
.sender-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.sender-badge-unknown   { background: #e9ecef; color: #6c757d; }
.sender-badge-checking  { background: #fff3cd; color: #856404; }
.sender-badge-unverified{ background: #f8d7da; color: #721c24; }
.sender-badge-pending   { background: #fff3cd; color: #856404; }
.sender-badge-verified  { background: #d4edda; color: #155724; }

/* Status message */
.sender-status-msg {
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
    line-height: 1.5;
}

.sender-status-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.sender-status-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.sender-status-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ─── Dashboard & Generator Steps ─────────────────────────────────────────── */

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 20px;
    overflow-x: auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 10px;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active, .step.completed {
    opacity: 1;
}

.step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.completed::after, .step.active::after {
    background: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step.completed .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.step-sublabel {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.step-content.active {
    display: block;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-input-small {
    max-width: 120px;
}

/* ─── Dashboard: Add Users (Step 3) ───────────────────────────────────────── */
.user-section {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.user-section h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.user-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.input-small { flex: 1; min-width: 150px; }
.input-medium { flex: 2; min-width: 200px; }

.bulk-import-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.bulk-import-panel {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 12px;
}

.bulk-import-panel textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 12px;
}

.bulk-import-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.users-list {
    margin-top: 20px;
    max-height: 250px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    background: white;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.user-item:last-child { border-bottom: none; }

.user-summary {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
}

.user-summary h4 { margin: 0; color: var(--secondary); }
.user-summary p { margin: 0; font-weight: 600; color: var(--primary); }

/* ─── Dashboard: Summary & Send (Step 4) ────────────────────────────────── */
.summary-container { margin-bottom: 32px; }

.summary-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 24px 0 32px;
}

.summary-stat {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Dashboard: Generated Ads (Step 2) & Loading ───────────────────────── */
.ads-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.ad-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.ad-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.ad-set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.ad-set-header h3 {
    margin-bottom: 0;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.ad-title-group {
    display: flex;
    align-items: center;
}

.ad-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ad-checkbox-label h4 {
    margin-bottom: 0;
}

.ad-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.ad-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ad-actions .btn-icon {
    width: auto;
    height: auto;
    padding: 6px 12px;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ad-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--secondary);
}

.ad-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-secondary .spinner-small {
    border-color: rgba(26, 26, 26, 0.2);
    border-top-color: var(--secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Plan badge (nav) ───────────────────────────────────────────────────── */
.plan-badge-nav {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* ─── Plan usage banner (Step 1) ─────────────────────────────────────────── */
.plan-usage-banner {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
}

.plan-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.plan-upgrade-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.plan-upgrade-link:hover { text-decoration: underline; }

.usage-bars { display: flex; flex-direction: column; gap: 8px; }

.usage-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usage-label {
    width: 80px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.usage-bar-wrap {
    flex: 1;
    background: var(--border);
    border-radius: 4px;
    height: 7px;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 2px;
}

.usage-bar-warn { background: var(--error); }

.usage-count {
    width: 70px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

/* ─── Custom "Other" inputs under dropdowns ──────────────────────────────── */
.custom-other-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
    transition: border-color 0.2s;
}

.custom-other-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,102,0,0.1);
}

/* ─── Field-error colour override ───────────────────────────────────────── */
.field-error { color: var(--error) !important; }

/* ─────────────────────────────────────────────────────────────────────────── */
