:root {
    --bg-primary: #090D16;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --accent-blue: #6366F1;
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --glow-color: rgba(99, 102, 241, 0.15);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
}

/* Ambient glow */
.background-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
    z-index: 0;
}

.background-glow.top-left {
    top: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
}

.background-glow.bottom-right {
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 0 10px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 999px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.12);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #4F46E5 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--accent-cyan);
}

/* Manifest Box */
.manifest-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.manifest-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.manifest-box code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

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

/* Tester Form */
.tester-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.flex-grow {
    flex: 1;
    min-width: 240px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-select, .form-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 11px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-select:focus, .form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.form-btn {
    height: 44px;
}

.test-result {
    margin-top: 16px;
    background: #06090F;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
}

.test-result.hidden {
    display: none;
}

.result-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
    margin-bottom: 8px;
}

.test-result pre {
    color: #A5B4FC;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Tabs & Guide */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
}

.tab-content {
    display: none;
}

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

.step-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-list strong {
    color: var(--text-main);
}

.cloud-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cloud-info code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-cyan);
}

/* Developer Profile Card */
.dev-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(30, 27, 75, 0.4) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.dev-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.dev-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.dev-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dev-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.dev-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.social-chip:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.social-chip.portfolio:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.social-chip.github:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.social-chip.linkedin:hover {
    border-color: #0A66C2;
    color: #38BDF8;
    background: rgba(10, 102, 194, 0.15);
}

.social-chip.twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.social-chip.instagram:hover {
    border-color: #E1306C;
    color: #F472B6;
    background: rgba(225, 48, 108, 0.12);
}

.social-chip.email:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
}

.footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1E293B;
    border: 1px solid var(--accent-emerald);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
