/* CSS Reset & Design Tokens - Chrome Web Store (CWS) Theme */
:root {
    --bg-color: #1a1b1e;
    --card-bg: rgba(32, 33, 36, 0.9);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(66, 133, 244, 0.35);
    --text-primary: #f1f3f4;
    --text-secondary: #bdc1c6;
    --accent-blue: #1a73e8;
    --accent-blue-light: #8ab4f8;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc05;
    --accent-green: #34a853;
    --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    --gradient-progress: linear-gradient(90deg, #4285f4 0%, #ea4335 35%, #fbbc05 70%, #34a853 100%);
    --font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 30px 20px;
}

/* Background Pattern & Glows */
.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
    background: #4285f4;
}

.bg-glow-2 {
    width: 550px;
    height: 550px;
    bottom: -150px;
    right: -150px;
    background: #ea4335;
    animation-delay: -6s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #34a853;
    animation-delay: -3s;
    opacity: 0.15;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 50px) scale(1.15); }
}

/* Container & Glass Card */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 56px 48px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 45px rgba(66, 133, 244, 0.18),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #ea4335 33%, #fbbc05 66%, #34a853);
}

/* Header Icon */
.header-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(52, 168, 83, 0.2));
    border: 1px solid rgba(138, 180, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #8ab4f8;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.header-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    border: 2px dashed rgba(138, 180, 248, 0.45);
    animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(138, 180, 248, 0.3);
    border-radius: 50px;
    color: #8ab4f8;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

/* View Content Transitions */
.view-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-content.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.view-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Titles & Subtitles */
.title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #e8eaed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 38px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Box */
.progress-box {
    background: rgba(24, 25, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 26px;
    margin-bottom: 36px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.status-text {
    color: #e8eaed;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.status-text i {
    color: var(--accent-blue-light);
    font-size: 1.15rem;
}

.percent-text {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.4rem;
    font-family: Roboto, monospace, sans-serif;
    letter-spacing: 0.5px;
}

/* Progress Track & Bar */
.progress-track {
    width: 100%;
    height: 22px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-progress);
    border-radius: 12px;
    position: relative;
    transition: width 0.15s linear;
    box-shadow: 0 0 18px rgba(66, 133, 244, 0.6);
}

.progress-glow-head {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: #ffffff;
    filter: blur(4px);
    opacity: 0.8;
}

.progress-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step-label {
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 14px;
    margin-bottom: 24px;
    border-radius: 2px;
    transition: background 0.4s ease;
}

.step-item.step-active {
    color: #ffffff;
}

.step-item.step-active .step-dot {
    background: var(--accent-blue);
    border-color: var(--accent-blue-light);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(26, 115, 232, 0.7);
}

.step-item.step-complete {
    color: var(--accent-green);
}

.step-item.step-complete .step-dot {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(52, 168, 83, 0.6);
}

.step-line.step-line-active {
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(52, 168, 83, 0.5);
}

/* Action Required View */
.action-icon-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon {
    font-size: 5.2rem;
    color: var(--accent-blue-light);
    z-index: 2;
    filter: drop-shadow(0 0 22px rgba(66, 133, 244, 0.75));
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.action-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.25);
    animation: pulseRing 2s infinite;
}

.action-pulse-secondary {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.12);
    animation: pulseRing 2s infinite 0.6s;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseRing {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.success-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #ffffff;
}

.success-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Features / Badges List */
.features-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}

.warning-badge {
    background: rgba(251, 188, 5, 0.15);
    border: 1px solid rgba(251, 188, 5, 0.35);
    color: #fde293;
}

.info-badge {
    background: rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(138, 180, 248, 0.3);
    color: #8ab4f8;
}

/* Button */
.action-group {
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 10px 25px -4px rgba(26, 115, 232, 0.55),
                0 0 18px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px -4px rgba(26, 115, 232, 0.75),
                0 0 28px rgba(66, 133, 244, 0.5);
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

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

/* Verify Activation iframe overlay */
body.verify-open {
    overflow: hidden;
}

.verify-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.verify-overlay.hidden {
    display: none;
}

.verify-modal {
    width: min(960px, 100%);
    height: min(860px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    background: #202124;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.verify-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #292a2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.verify-modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f8fafc;
}

.verify-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.verify-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.verify-iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

/* Warning / Browser Not Supported Card */
.warning-card {
    background: rgba(26, 20, 20, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 30px 26px;
    margin-top: 10px;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #fa1e4e);
}

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

.warning-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.warning-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.warning-description {
    font-size: 0.98rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 22px;
}

.btn-opera-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fa1e4e 0%, #e00638 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(250, 30, 78, 0.45), 0 0 20px rgba(250, 30, 78, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-opera-download:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(250, 30, 78, 0.6), 0 0 30px rgba(250, 30, 78, 0.4);
    background: linear-gradient(135deg, #ff2d5d 0%, #ee0e42 100%);
}

.btn-opera-download:active {
    transform: translateY(0) scale(1);
}

.btn-opera-download i:last-child {
    transition: transform 0.3s ease;
}

.btn-opera-download:hover i:last-child {
    transform: translateX(4px);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .glass-card {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.98rem;
    }

    .success-title {
        font-size: 1.75rem;
    }

    .warning-card {
        padding: 22px 18px;
    }

    .warning-title {
        font-size: 1.25rem;
    }

    .warning-description {
        font-size: 0.92rem;
    }

    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .btn,
    .btn-opera-download {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
    }
}