/* === Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #f1f3f4;
    color: #202124;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.05rem;
}

/* === Brand === */
.brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a73e8;
    letter-spacing: -0.5px;
}

/* === Card === */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(60,64,67,.15), 0 4px 12px rgba(60,64,67,.1);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 20px;
}

.card-body { background: #fff; padding: 24px; }

.card-footer {
    background: #fff;
    border-top: 1px solid #e8eaed;
    border-radius: 0 0 12px 12px !important;
    color: #80868b;
    font-size: 0.82rem;
    padding: 10px 20px;
}

/* === Redirect Host === */
.redirect-host {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    animation: grayFade 2s infinite alternate ease-in-out;
}
.redirect-host .host-name {
    color: #1a73e8;
    animation: none;
}
@keyframes grayFade {
    0%   { color: #202124; }
    50%  { color: #d0d0d0; }
    100% { color: #202124; }
}

/* === Progress Bar === */
.progress {
    height: 2.2rem;
    border-radius: 999px;
    background: #e8eaed;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #1a73e8;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.12) 0,
        rgba(255,255,255,0.12) 14px,
        rgba(255,255,255,0.02) 14px,
        rgba(255,255,255,0.02) 28px
    );
    background-size: 40px 40px;
    transition: width 0.05s linear, background-color 0.05s linear;
    animation: progressStripes 1.1s linear infinite;
}

.timer-number {
    position: absolute;
    top: 50%;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: left 0.03s linear;
    will-change: left;
    text-shadow: 0 3px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}
.timer-number-label {
    display: inline-block;
    animation: timerBounce 900ms ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes timerBounce {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}
@keyframes progressStripes {
    0%   { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* === List Group === */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f4;
    padding: 10px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: transparent;
    font-size: 0.97rem;
    color: #3c4043;
}

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

.list-group-item i {
    width: 18px;
    text-align: center;
    color: #1a73e8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.list-group-item .label {
    color: #80868b;
    min-width: 110px;
    flex-shrink: 0;
}

.list-group-item strong {
    font-weight: 500;
    color: #202124;
    opacity: 0;
    transition: opacity 0.5s ease;
    min-width: 6rem;
    min-height: 1.2rem;
    display: inline-block;
}

.list-group-item strong.show { opacity: 1; }

/* === Screenshot === */
.screenshot-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f3f4;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.screenshot-img {
    opacity: 1;
    transition: opacity 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Buttons === */
#proceed {
    background: #1a73e8;
    border: none;
    border-radius: 6px;
    font-size: 0.97rem;
    font-weight: 500;
    padding: 8px 18px;
    color: #fff;
    transition: background 0.15s;
}
#proceed:hover { background: #1765cc; }
#proceed, #abortBtn { cursor: pointer; }

#abortBtn {
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 0.97rem;
    font-weight: 500;
    padding: 8px 18px;
    color: #d93025;
    transition: background 0.15s, border-color 0.15s;
}
#abortBtn:hover { background: #fce8e6; border-color: #d93025; }

/* === Security Blink === */
@keyframes redBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.blink-red { animation: redBlink 1s ease-in-out infinite; }

/* === Landing Page === */
.landing-wrap {
    max-width: 520px;
    margin: 3rem auto;
    text-align: center;
}
.landing-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 3px rgba(60,64,67,.15), 0 4px 12px rgba(60,64,67,.1);
    padding: 40px 32px;
    background: #fff;
}
.landing-sub {
    font-size: 0.9rem;
    color: #80868b;
}
.landing-example {
    background: #f1f3f4;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #3c4043;
}
