:root {
    --bg-color: #030405;
    --card-bg: rgba(15, 15, 20, 0.7);
    --primary: #ffd700;
    --primary-alt: #ffb700;
    --primary-glow: rgba(255, 215, 0, 0.25);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --border: rgba(255, 255, 255, 0.08);
    --terminal-bg: #0f172a;
    --gradient-1: #ffd700;
    --gradient-2: #ff4500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* Aurora Background */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    filter: blur(100px);
    overflow: hidden;
    opacity: 0.5;
}

.aurora {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    animation: aurora-move 20s infinite alternate;
}

.a1 {
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.a2 {
    background: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.a3 {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-duration: 15s;
}

@keyframes aurora-move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20%, 20%) scale(1.2);
    }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3排%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 1000;
    pointer-events: none;
}

#app {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    text-align: center;
    margin: 40px 0 32px;
}

.logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.logo-main {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(135deg, #1a1b23, #000);
    padding: 10px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-main img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--primary-glow);
    border-radius: 35px;
    animation: pulse-ring 3s ease-out infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff, #aab);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-glow);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.2);
}

/* Input Styles */
.input-label {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.input-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 18px;
    transition: all 0.3s;
}

.input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    flex: 1;
    padding: 12px 0;
}

.scan-btn {
    background: var(--primary);
    color: #000;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.scan-btn:active {
    transform: scale(0.9);
}

/* User Info Section */
.info-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
}

.info-item span:first-child {
    color: var(--text-dim);
    font-size: 14px;
}

.info-item span:last-child {
    font-weight: 600;
    color: #fff;
}

.upgrade-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.upgrade-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Terminal & Logs */
.terminal-window {
    background: var(--terminal-bg);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.d1 {
    background: #ff5f56;
}

.d2 {
    background: #ffbd2e;
}

.d3 {
    background: #27c93f;
}

.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    height: 240px;
    overflow-y: auto;
    color: #cbd5e1;
}

.log-entry {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.log-prefix {
    color: var(--primary);
    font-weight: bold;
}

/* Success State */
.success-header {
    margin-bottom: 32px;
}

.success-glow {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
    animation: success-pop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes success-pop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-glow svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.dns-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 24px;
    border-radius: 24px;
}

.dns-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--success);
}

.dns-header h3 {
    font-size: 18px;
}

.dns-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #000;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.dns-link-btn:active {
    transform: scale(0.98);
}

.dns-code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dns-code-block label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.dns-code-block code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 14px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.1);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.feature-card p {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Footer Stats */
footer {
    margin-top: auto;
    padding: 40px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations & Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Progress */
.loading-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-alt));
    width: 0%;
    transition: width 0.4s;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Enhanced Platform & 3-Step Guide */
.platform-section {
    border-radius: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
}

.platform-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.ios-action-btn {
    background: #fff !important;
    color: #000 !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.badge-fast {
    background: #10b981;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ios-link-copy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ios-url-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 8px 12px;
    flex: 1;
}

.copy-btn-inline {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.copy-btn-inline:active {
    transform: scale(0.95);
}

.steps-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.step-num {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-desc {
    color: #e2e8f0;
}