:root {
    /* Pastel gradient background matching the screenshot vibe */
    --bg-gradient: linear-gradient(135deg, #fcebcf 0%, #fcdece 25%, #e8e3eb 50%, #d8e5f0 75%, #d1ebed 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary-text: #1c2b4d;
    --primary-blue: #233659;
    --btn-blue: #2b3c66;
    --btn-hover: #1f2b4a;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.6);
    --shadow: 0 10px 40px rgba(35, 54, 89, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--primary-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 2rem 1rem;
    box-sizing: border-box;
    z-index: 10;
}

/* HEADER SECTION */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo-text h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    font-weight: 300;
}

.logo-text p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* TABS */
.tabs-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    border: var(--glass-border);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: var(--btn-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 60, 102, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-blue);
}

/* MAIN CARDS */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: var(--glass-border);
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.card.active {
    display: block;
}

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

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

.input-title {
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}

.input-group {
    margin-bottom: 1.5rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
    color: var(--primary-text);
}

textarea {
    min-height: 140px;
    resize: vertical;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

/* DOUBLE GRID FOR MULTI / PROXY */
.double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 650px) {
    .double-grid {
        grid-template-columns: 1fr;
    }
}

/* PROXY PREVIEW TERMINAL */
.proxy-terminal {
    background: #0f172a;
    border-radius: 16px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #38bdf8;
    height: 140px;
    overflow-y: auto;
    border: 2px solid #1e293b;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.proxy-terminal p {
    margin: 0 0 4px 0;
}

.proxy-success {
    color: #4ade80;
}

.proxy-warn {
    color: #facc15;
}

/* BUTTONS */
.btn-check {
    width: 100%;
    padding: 1.2rem;
    background: var(--btn-blue);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(43, 60, 102, 0.2);
}

.btn-check:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 60, 102, 0.3);
}

.btn-check:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* TIMELINE / PROGRESS */
.progress-box {
    margin-top: 1.5rem;
    display: none;
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
}

/* UPLOAD ZONE */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    background: rgba(248, 250, 252, 0.5);
    transition: all 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #3b82f6;
    background: rgba(239, 246, 255, 0.8);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--primary-blue);
}

.upload-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-info {
    margin-top: 1rem;
    font-weight: 600;
    color: #10b981;
    font-size: 0.9rem;
}

/* RESULTS AREA */
.dashboard {
    margin-top: 2rem;
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s-ok .stat-val {
    color: #10b981;
}

.s-fail .stat-val {
    color: #ef4444;
}

.s-total .stat-val {
    color: var(--primary-blue);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.results-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.res-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.res-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.res-addr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.res-proxy-used {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.res-proxy-used::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0ea5e9;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge.ok {
    background: #dcfce7;
    color: #16a34a;
}

.badge.fail {
    background: #fee2e2;
    color: #dc2626;
}

.badge.err {
    background: #fffbeb;
    color: #d97706;
}

/* CREATOR BADGE */
.creator-banner {
    background: linear-gradient(90deg, #d8f1e0 0%, #c4ebd0 100%);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    border: 1px solid #b2e0c1;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

.c-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-avatar {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.c-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 800;
}

.c-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #166534;
    font-weight: 600;
}

.c-right {
    display: flex;
    gap: 10px;
}

.c-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-btn:hover {
    transform: translateY(-2px);
}

.c-tg {
    background: #22c55e;
    color: white;
}

.c-x {
    background: #0f172a;
    color: white;
}

@media (max-width: 600px) {
    .creator-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .c-left {
        flex-direction: column;
    }

    .c-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* HEADER / BANNER SECTION */
.project-banner {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: var(--glass-border);
    display: flex;
    align-items: flex-end;
    background: var(--primary-blue);
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: 1;
}

.project-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    z-index: 2;
}

.project-info {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.5rem 2rem;
    width: 100%;
}

.project-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    background: #000000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
    z-index: 3;
}

.project-titles {
    z-index: 3;
}

.project-titles h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.project-titles p {
    margin: 4px 0 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* PROJECT SELECTOR CUSTOM */
.selector-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border: var(--glass-border);
    box-shadow: 0 4px 15px rgba(35, 54, 89, 0.05);
    position: relative;
    z-index: 50;
}

.selector-label {
    font-weight: 700;
    color: var(--primary-text);
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.custom-select {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.select-trigger {
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.select-trigger:hover {
    border-color: #3b82f6;
}

.select-trigger span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select.open .select-trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option {
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.option:last-child {
    border-bottom: none;
}

.option:hover:not(.disabled) {
    background: #f8fafc;
    color: #3b82f6;
}

.option.active {
    background: #eff6ff;
    color: #2563eb;
}

.option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.option-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-soon {
    font-size: 0.7rem;
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 12px;
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 600px) {
    .selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .custom-select {
        max-width: 100%;
        width: 100%;
    }
    .project-info {
        padding: 1rem;
        gap: 15px;
    }
    .project-titles h1 {
        font-size: 1.6rem;
    }
    .project-logo {
        width: 56px;
        height: 56px;
    }
}
