:root {
    --bg: #0a0a0c;
    --card: #151518;
    --accent: #e11d48;
    --accent-hover: #f43f5e;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 5px;
    /* Standardized to 5px as per previous request */
}

@font-face {
    font-family: "UFC";
    src: url("../fonts/DovusArena-SikiKalinEgik.woff2") format("woff2");
}

/* Hero Section */
.tahmin-hero {
    position: relative;
    padding: 140px 0 60px;
    /* Increased top padding to clear fixed header */
    background:
        radial-gradient(circle at top right,
            rgba(225, 29, 72, 0.05),
            transparent 40%),
        linear-gradient(to bottom, #000, var(--bg));
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    z-index: 10;
    /* Lower than header's 2000 */
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-title h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
}

.hero-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 10px 0 0;
    max-width: 400px;
}

.user-stats-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
}

.stats-data .label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.stats-data .value {
    font-size: 1.6rem;
    font-weight: 950;
    line-height: 1;
    color: #fff;
}

.stats-data .sub {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
    margin-top: 3px;
}

/* Navigation Integrated */
.hero-header-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tahmin-nav-integrated {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-tabs {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.nav-tabs a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-tabs a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tabs a.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

.filter-group {
    display: flex;
    gap: 8px;
    padding-left: 15px;
    border-left: 1px solid var(--border);
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Prediction Cards Compact */
.prediction-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    gap: 15px;
}

.prediction-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 80px 1fr 1.2fr 200px;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prediction-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: 0.3s;
}

.prediction-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.prediction-card:hover::before {
    background: var(--accent);
}

/* Event Identity */
.event-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    height: 80px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.event-identity .ufc-logo {
    font-family: "UFC";
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.event-identity .event-num {
    font-family: "UFC";
    font-size: 1.8rem;
    line-height: 0.9;
    color: #fff;
}

.event-identity .fn-logo {
    width: 60%;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(225, 29, 72, 0.4));
}

/* Event Meta */
.event-meta .badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.badge-ppv {
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent);
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.badge-fn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
}

.event-meta h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.event-meta .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 600;
}

/* Matchup Visualization */
.matchup-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.matchup-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.voting-strip {
    width: 100%;
    max-width: 280px;
}

.voting-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.voting-bar {
    height: 6px;
    background: #111;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.voting-bar-left {
    background: var(--accent);
}

.voting-bar-right {
    background: #fff;
}

.fighter-mini {
    text-align: center;
    width: 90px;
}

.fighter-mini img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.prediction-card:hover .fighter-mini img {
    border-color: var(--accent);
}

.fighter-mini .name {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
    color: #fff;
    display: block;
}

.vs-divider {
    font-family: "UFC";
    font-size: 1.1rem;
    color: #222;
    position: relative;
}

.vs-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
}

/* Actions */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-main {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* History Cards */
.history-card {
    border-left: 4px solid #555;
}

.history-card.status-win {
    border-left-color: #10b981;
}

.history-card.status-loss {
    border-left-color: var(--accent);
}

.status-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
}

.status-win .status-indicator {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.status-loss .status-indicator {
    color: var(--accent);
    background: rgba(225, 29, 72, 0.1);
}

/* Overlay Styling */
.fight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay-content {
    width: 100%;
    max-width: 700px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.overlay-header {
    padding: 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.close-overlay {
    background: none;
    border: none;
    color: #555;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-overlay:hover {
    color: #fff;
}

.overlay-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.overlay-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
}

.overlay-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .prediction-card {
        grid-template-columns: 100px 1fr 1fr;
    }

    .card-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .card-actions button,
    .card-actions a {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .tahmin-nav-integrated {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .filter-group {
        padding-left: 0;
        border-left: none;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .nav-tabs a {
        flex: 1;
        text-align: center;
        padding: 7px 10px;
        font-size: 0.65rem;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .tahmin-hero {
        padding: 120px 0 40px;
    }

    .prediction-list {
        padding: 0 20px 60px;
    }

    .prediction-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .event-identity {
        height: 50px;
        /* Much more minimal */
        flex-direction: row;
        /* Horizontal on mobile maybe? Or just smaller stack */
        gap: 10px;
        padding: 0 15px;
    }

    .event-identity .ufc-logo {
        font-size: 0.6rem;
    }

    .event-identity .event-num {
        font-size: 1.2rem;
    }

    .event-identity .fn-logo {
        width: 40px;
    }

    .matchup-visual {
        gap: 10px;
    }

    .fighter-mini img {
        width: 45px;
        height: 45px;
    }

    .fighter-mini .name {
        font-size: 0.65rem;
    }

    .card-actions {
        flex-direction: row;
        gap: 8px;
    }

    .card-actions a,
    .card-actions button {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.65rem;
    }

    .user-stats-glass {
        width: 100%;
        padding: 15px;
        margin-top: 20px;
    }

    .stats-data .value {
        font-size: 1.4rem;
    }
}

/* Sticky Share Bar */
.sticky-share-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sticky-share-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-share-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.sticky-share-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Coupon Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.share-modal-container {
    width: 100%;
    max-width: 480px;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
    animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-modal-close {
    background: none;
    border: none;
    color: #555;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.share-modal-close:hover {
    color: #fff;
}

.share-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Prediction selection inside modal */
.prediction-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.prediction-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #e4e4e7;
    cursor: pointer;
    user-select: none;
}

.prediction-select-item input {
    cursor: pointer;
}

/* Coupon social share row */
.share-social-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.share-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 6px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.share-social-btn i {
    font-size: 1.4rem;
}

.btn-copy { color: #3b82f6; }
.btn-x { color: #fff; }
.btn-instagram { color: #e1306c; }
.btn-whatsapp { color: #25d366; }

/* Preview Slip Box */
.share-preview-box {
    background: #09090b;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.share-preview-img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
}

.share-preview-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Generate Trigger Button */
.btn-generate-coupon {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-generate-coupon:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.btn-generate-coupon:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .sticky-share-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px 20px;
    }
    .sticky-share-bar button {
        width: 100%;
    }
}