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

:root {
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #4a3db8;
    --accent: #00CEC9;
    --accent-light: #81ecec;
    --bg: #f8f9fe;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-muted: #636e72;
    --text-light: #b2bec3;
    --border: #e8ecf4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --nav-height: 68px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232,236,244,0.6);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.brand-text .highlight,
.footer-brand .highlight {
    color: var(--primary);
}

.nav-actions .btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108,92,231,0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--nav-height) 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(108,92,231,0.08) 0%, transparent 100%),
        radial-gradient(ellipse 500px 400px at 80% 30%, rgba(0,206,201,0.06) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(108,92,231,0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 20px 36px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

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

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108,92,231,0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    position: relative;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 52px;
    height: 52px;
    color: var(--primary);
    opacity: 0.15;
}

.step-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Wizard ===== */
.wizard-section {
    background: var(--bg);
}

.wizard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 880px;
    margin: 0 auto;
}

.wizard-sidebar {
    background: linear-gradient(180deg, #f8f6ff, #f0edff);
    padding: 32px 20px;
    border-right: 1px solid var(--border);
}

.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.wizard-step.active {
    opacity: 1;
    background: rgba(108,92,231,0.1);
}

.wizard-step.completed {
    opacity: 1;
}

.wizard-step.completed .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wizard-step.active .step-circle {
    background: var(--primary);
    color: #fff;
}

.step-info {
    display: flex;
    flex-direction: column;
}

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

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.wizard-content {
    padding: 36px 40px;
    min-height: 420px;
}

.wizard-panel {
    display: none;
    flex-direction: column;
    height: 100%;
}

.wizard-panel.active {
    display: flex;
}

.panel-header {
    margin-bottom: 28px;
}

.panel-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.panel-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.panel-body {
    flex: 1;
}

.panel-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label:not(.checkbox-label) {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-light);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Email Preview */
.email-preview {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    transition: all 0.2s ease;
}

.email-preview:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
    background: var(--bg-card);
}

.email-preview input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text);
    outline: none;
}

.email-preview .email-domain {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(108,92,231,0.06);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== DNS Records ===== */
.dns-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(108,92,231,0.06);
    border: 1px solid rgba(108,92,231,0.15);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.dns-info-box svg {
    color: var(--primary);
    flex-shrink: 0;
}

.dns-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 70px 1.5fr 60px;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.dns-table-header span {
    text-align: center;
}

.dns-table-header span:nth-child(2),
.dns-table-header span:nth-child(4) {
    text-align: left;
}

.dns-records {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dns-record-card {
    display: grid;
    grid-template-columns: 60px 1fr 70px 1.5fr 60px;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.dns-record-card:hover {
    border-color: var(--primary-light);
    background: rgba(108,92,231,0.03);
}

.dns-type {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
}

.dns-type.mx { background: rgba(0,206,201,0.12); color: #00b894; }
.dns-type.txt { background: rgba(108,92,231,0.12); color: var(--primary); }
.dns-type.cname { background: rgba(253,203,110,0.2); color: #d68910; }

.dns-name {
    color: var(--text-muted);
    font-weight: 500;
    word-break: break-all;
}

.dns-priority {
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    font-size: 0.85rem;
}

.dns-priority-na {
    color: var(--text-light);
    font-weight: 400;
}

.dns-value {
    color: var(--text);
    word-break: break-all;
    font-size: 0.78rem;
}

.dns-ttl {
    color: var(--text-light);
    font-size: 0.72rem;
    text-align: center;
}

.dns-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

/* ===== Checklist ===== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 0.92rem;
}

.checklist-item:hover {
    border-color: var(--primary-light);
    background: rgba(108,92,231,0.03);
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.check-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checklist-item input:checked + .check-box {
    background: var(--primary);
    border-color: var(--primary);
}

.checklist-item input:checked + .check-box::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-item input:checked ~ span:last-child {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ===== Success Box ===== */
.success-box {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
    border: 2px solid rgba(16,185,129,0.15);
    border-radius: var(--radius);
}

.success-box svg {
    margin-bottom: 16px;
}

.success-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px !important;
}

/* ===== Tips ===== */
.tips-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tip-card {
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.tip-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tip-icon svg {
    width: 22px;
    height: 22px;
}

.tip-icon-blue { background: rgba(108,92,231,0.1); color: var(--primary); }
.tip-icon-green { background: rgba(0,206,201,0.1); color: #00b894; }
.tip-icon-purple { background: rgba(162,155,254,0.15); color: var(--primary); }
.tip-icon-orange { background: rgba(253,203,110,0.15); color: #d68910; }

.tip-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tip-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-brand .brand-icon {
    width: 20px;
    height: 20px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 440px;
    margin: 0 auto 8px;
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .wizard-sidebar {
        display: none;
    }

    .wizard-container {
        grid-template-columns: 1fr;
    }

    .wizard-content {
        padding: 28px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 50px 0;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 40px) 0 40px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 16px;
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .dns-table-header {
        display: none;
    }

    .dns-record-card {
        grid-template-columns: 55px 1fr;
        gap: 2px 6px;
        padding: 8px 12px;
    }

    .dns-record-card .dns-type {
        grid-row: 1 / 3;
    }

    .dns-record-card .dns-name {
        grid-column: 2;
    }

    .dns-record-card .dns-priority {
        grid-column: 2;
        text-align: left;
        justify-self: start;
    }

    .dns-record-card .dns-value {
        grid-column: 1 / -1;
        grid-row: 3;
        padding-left: 0;
        font-size: 0.75rem;
    }

    .dns-record-card .dns-ttl {
        display: none;
    }

    .panel-footer {
        flex-direction: column;
    }

    .panel-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== App Views ===== */
.app-view {
    animation: fadeInUp 0.3s ease;
}

.app-view .wizard-content {
    min-height: 360px;
}

/* ===== Connect View ===== */
.connect-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(108,92,231,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-input-group {
    display: flex;
    gap: 8px;
}

.token-input-group input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
    outline: none;
}

.token-input-group input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
}

.token-input-group .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== Sidebar User ===== */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info {
    overflow: hidden;
}

.user-email {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-link:hover {
    color: var(--primary);
}

/* ===== Zone Cards ===== */
.zone-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 6px;
}

.zone-card:hover {
    background: rgba(108,92,231,0.05);
    border-color: rgba(108,92,231,0.15);
}

.zone-card.selected {
    background: rgba(108,92,231,0.1);
    border-color: var(--primary-light);
}

.zone-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.zone-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.zone-status.active { background: rgba(0,206,201,0.12); color: #00b894; }
.zone-status.pending { background: rgba(253,203,110,0.15); color: #d68910; }

/* ===== Dashboard Sections ===== */
.dashboard-section {
    padding-bottom: 24px;
}

.dashboard-section + .dashboard-section {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

/* ===== DNS Status ===== */
.dns-status-area {
    margin-bottom: 16px;
}

.dns-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 6px;
}

.dns-result-item.ok {
    background: rgba(0,206,201,0.06);
    border: 1px solid rgba(0,206,201,0.12);
}

.dns-result-item.fail {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.12);
}

.dns-result-icon { font-weight: 700; flex-shrink: 0; }
.dns-result-item.ok .dns-result-icon { color: #00b894; }
.dns-result-item.fail .dns-result-icon { color: #ef4444; }

.dns-result-type {
    font-weight: 600;
    color: var(--text-muted);
    width: 40px;
    flex-shrink: 0;
}

.dns-result-name {
    color: var(--text);
    min-width: 60px;
}

.dns-result-err {
    color: #ef4444;
    font-size: 0.78rem;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-pending { background: rgba(253,203,110,0.15); color: #d68910; }
.badge-ok { background: rgba(0,206,201,0.12); color: #00b894; }
.badge-disabled { background: rgba(178,190,194,0.2); color: #636e72; }

/* ===== Rules ===== */
#rules-list {
    margin-bottom: 24px;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.rule-item:hover {
    border-color: var(--primary-light);
    background: rgba(108,92,231,0.03);
}

.rule-item.disabled {
    opacity: 0.5;
}

.rule-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rule-email {
    font-weight: 600;
    font-size: 0.9rem;
}

.rule-arrow {
    color: var(--text-light);
}

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

.rule-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 6px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239,68,68,0.06);
}

/* ===== Create Rule Form ===== */
.create-rule-form {
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.create-rule-form h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.create-rule-form .form-hint {
    margin-bottom: 14px;
}

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

.rule-form-row .email-preview {
    flex: 2;
    min-width: 200px;
}

.rule-form-row .email-preview input {
    font-size: 0.9rem;
}

.rule-arrow-form {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.rule-form-row input[type="email"] {
    flex: 2;
    min-width: 180px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

.rule-form-row input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
}

.rule-form-row .btn {
    white-space: nowrap;
}

/* ===== Loading Spinners ===== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-lg {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-state svg {
    margin-bottom: 10px;
}

/* ===== Toast Error ===== */
.toast-error {
    background: #ef4444;
}

/* ===== Responsive Additions ===== */
@media (max-width: 900px) {
    .sidebar-user {
        flex-direction: column;
        text-align: center;
    }

    .zone-card {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .token-input-group {
        flex-direction: column;
    }

    .rule-form-row {
        flex-direction: column;
    }

    .rule-form-row .email-preview,
    .rule-form-row input[type="email"] {
        min-width: 0;
        width: 100%;
    }

    .rule-arrow-form {
        text-align: center;
        justify-content: center;
    }

    .rule-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .rule-meta {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-panel.active {
    animation: fadeInUp 0.35s ease;
}

.feature-card,
.tip-card {
    animation: fadeInUp 0.5s ease;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
