/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.tc-header {
    background: #fff;
    border-bottom: 1px solid #dbdbdb;
    text-align: center;
    padding: 14px 20px;
}
.tc-logo { height: 52px; width: auto; }

/* ===== HERO ===== */
.tc-hero {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c);
    text-align: center;
    padding: 52px 20px 44px;
    color: #fff;
}
.tc-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 16px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.tc-hero-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.tc-hero-sub {
    font-size: 16px;
    opacity: 0.88;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CARDS ===== */
.tc-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 48px 24px 64px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.tc-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    width: 380px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}
.tc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.16);
}

/* Thumbnail */
.tc-card-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 220px;
    background: #000;
}
.tc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.tc-card-thumb:hover img {
    transform: scale(1.04);
    opacity: 0.75;
}
.tc-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #833ab4;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.tc-card-thumb:hover .tc-play-overlay { opacity: 1; }

/* Card info */
.tc-card-info { padding: 22px 24px 26px; }

.tc-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.tc-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.tc-stat {
    flex: 1;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}
.tc-stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.tc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}
.tc-stat-value.tc-accent { color: #e1306c; }

/* Progress bar */
.tc-progress {
    height: 6px;
    background: #ebebeb;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
}
.tc-progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #405de6, #c13584, #e1306c);
}

/* Vote button */
.tc-vote-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #405de6, #833ab4, #e1306c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s;
}
.tc-vote-btn:hover { opacity: 0.88; transform: scale(0.99); }

/* ===== MODAL OVERLAY ===== */
.tc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
}
.tc-overlay.active { display: block; }

/* ===== MODAL ===== */
.tc-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 1001;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tc-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Modal header */
.tc-modal-header {
    background: linear-gradient(135deg, #405de6, #833ab4, #e1306c);
    text-align: center;
    padding: 28px 24px 22px;
    position: relative;
}
.tc-modal-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.tc-modal-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.4;
}
.tc-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.tc-modal-close:hover { color: #fff; }

/* Modal body */
.tc-modal-body {
    padding: 24px 28px 16px;
}
.tc-input {
    display: block;
    width: 100%;
    height: 44px;
    border: 1.5px solid #dbdbdb;
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    padding: 0 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.tc-input:focus {
    border-color: #833ab4;
    background: #fff;
}
.tc-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #405de6, #833ab4, #e1306c);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s;
}
.tc-submit-btn:hover { opacity: 0.88; }
.tc-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #405de6;
    text-decoration: none;
}
.tc-forgot:hover { text-decoration: underline; }

/* Divider */
.tc-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    margin: 4px 0;
}
.tc-modal-divider::before,
.tc-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbdbdb;
}
.tc-modal-divider span {
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
}

/* Modal footer */
.tc-modal-footer {
    padding: 14px 28px 24px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #efefef;
}
.tc-signup {
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}
.tc-signup a {
    color: #405de6;
    font-weight: 700;
    text-decoration: none;
}
.tc-signup a:hover { text-decoration: underline; }
.tc-getapp {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.tc-badges { display: flex; justify-content: center; gap: 10px; }
.tc-badges img { height: 34px; width: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .tc-hero-title { font-size: 28px; }
    .tc-cards { padding: 32px 16px 48px; gap: 20px; }
    .tc-card { width: 100%; max-width: 480px; }
}
@media (max-width: 480px) {
    .tc-modal { max-width: calc(100% - 24px); }
    .tc-modal-body { padding: 20px 20px 12px; }
    .tc-modal-footer { padding: 12px 20px 20px; }
    .tc-modal-divider { padding: 0 20px; }
    .tc-hero-title { font-size: 24px; }
    .tc-hero-sub { font-size: 14px; }
}
