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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.container-full {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================ */
/* DUYURU BANDI — Sağdan sola kayan şerit      */
/* ============================================ */
.announcement-bar {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 100;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.announcement-bar.type-info {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.announcement-bar.type-warning {
    background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    color: #1a1a2e;
}

.announcement-bar.type-success {
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.announcement-bar.type-error {
    background: linear-gradient(90deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
}

.announcement-bar-inner {
    display: flex;
    align-items: center;
    height: 38px;
    position: relative;
}

.announcement-bar-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.announcement-bar-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    padding-left: 100%;
}

.announcement-bar-text span {
    display: inline-block;
    padding: 0 60px 0 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.announcement-bar-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.announcement-bar-close:hover {
    opacity: 1;
}

.announcement-bar.hidden {
    display: none;
}

/* Game Navigation — Premium Pill Buttons */
.game-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.game-nav-item {
    padding: 10px 28px;
    color: #a0aec0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.game-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.game-nav-item:hover::before {
    left: 100%;
}

.game-nav-item:hover {
    color: white;
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.game-nav-item.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.game-nav-item.active:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* ============================================================
   GLOBAL AUTH — Navbar Sağ Taraf
   Auth alanı absolute konumda → nav item'lar ortada kalır
   ============================================================ */

.global-auth-area {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.global-auth-guest .global-auth-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.global-auth-guest .global-auth-btn:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

.global-auth-user {
    position: relative;
}

.global-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.global-user-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
}

.global-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.global-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-dropdown-arrow {
    transition: transform 0.2s;
}

.global-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e1e3f;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.global-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.global-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: white;
}

.global-dropdown-logout {
    color: #fc8181;
}

.global-dropdown-logout:hover {
    background: rgba(252, 129, 129, 0.15);
    color: #feb2b2;
}

.global-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 8px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .game-nav {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
        padding-right: 12px;
    }

    .game-nav-item {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    /* Mobilde auth alanı static olsun — akışa dahil */
    .global-auth-area {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 6px;
        order: 99;
    }
}

@media (max-width: 480px) {
    .game-nav {
        gap: 4px;
        padding: 8px 8px;
    }

    .game-nav-item {
        padding: 7px 10px;
        font-size: 0.72rem;
    }
}

/* Landing Page */
.landing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    text-align: center;
}

.landing-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.landing-hero .subtitle {
    color: #e0e7ff;
    font-size: 1.1rem;
}

.landing-games {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 50px 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.game-card-header {
    padding: 30px;
    text-align: center;
    color: white;
}

.game-card-header.ko {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card-header.ro {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.game-card-header .game-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.game-card-body {
    padding: 25px;
    text-align: center;
}

.game-card-body p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-card-servers {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.game-card-servers span {
    padding: 4px 12px;
    background: #edf2f7;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
}

.game-card-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.game-card:hover .game-card-cta {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 1.8rem;
    }

    .landing-games {
        padding: 30px 15px;
    }
}

/* Header */
.header-centered {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    gap: 15px;
    position: relative;
}

.header-contact {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 14px;
}

.header-logo h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.subtitle {
    color: #e0e7ff;
    font-size: 1rem;
    margin: 8px 0 0 0;
    font-weight: 500;
}

.header-note {
    color: #d0deff;
    font-size: 0.9rem;
    margin: 8px 0 0 0;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.header-contact a:hover {
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .header-contact {
        position: static;
        margin-top: 10px;
    }
}

/* Table Wrapper */
.table-wrapper {
    padding: 30px;
    background: white;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

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

.spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Price Matrix Table */
.price-matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.price-matrix-table th,
.price-matrix-table td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.price-matrix-table thead {
    background: #f7fafc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-matrix-table th {
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #cbd5e0;
}

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #f7fafc;
    min-width: 160px;
    text-align: left;
}

.price-matrix-table tbody .sticky-col {
    background: white;
    font-weight: 600;
    color: #2d3748;
}

.price-matrix-table tbody tr:hover .sticky-col {
    background: #f7fafc;
}

.site-col {
    border-right: 2px solid #cbd5e0;
}

/* Server Header */
.server-header {
    min-width: 140px;
    border-left: 1px solid #e2e8f0;
}

.server-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.server-badge-header {
    display: inline-block;
    padding: 3px 8px;
    background: #feebc8;
    color: #7c2d12;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.server-badge-header.new-badge {
    background: #bee3f8;
    color: #2c5282;
}

.col-labels {
    display: flex;
    gap: 4px;
    font-size: 0.7rem;
    color: #718096;
    justify-content: space-around;
    margin-top: 5px;
}

.col-labels span {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.col-sell {
    color: #38a169;
}

.col-buy {
    color: #e53e3e;
}

/* Price Cell */
.price-cell {
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.price-cell.best {
    background: #c6f6d5;
    color: #22543d;
}

.price-cell.worst {
    background: #fed7d7;
    color: #742a2a;
}

.price-cell.normal {
    color: #2d3748;
}

.price-matrix-table tbody tr:hover .price-cell.normal {
    background: #f7fafc;
}

/* Price Split */
.price-split {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: stretch;
}

.price-split .price-cell {
    flex: 1;
    padding: 10px 6px;
    margin: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-weight: 600;
}

.price-split .price-cell.best {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #38a169;
}

.price-split .price-cell.worst {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #e53e3e;
}

.price-split .price-cell.normal {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

/* No Data */
.no-data-row {
    text-align: center;
    color: #718096;
    padding: 40px !important;
}

/* Footer */
.footer-compact {
    background: #2d3748;
    color: white;
    padding: 20px 30px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}

.footer-compact p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-compact {
        padding: 15px 20px;
    }

    .table-wrapper {
        padding: 15px;
        margin: 15px;
        border-radius: 8px;
    }

    .price-matrix-table th,
    .price-matrix-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .server-header {
        min-width: 120px;
    }

    .server-name {
        font-size: 0.85rem;
    }

    .price-cell {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .header-compact {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .header-left h1 {
        font-size: 1.5rem;
    }

    .subtitle-compact {
        font-size: 0.85rem;
    }

    .table-wrapper {
        padding: 10px;
        margin: 10px;
    }

    .price-matrix-table th,
    .price-matrix-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    .server-header {
        min-width: 100px;
    }

    .server-name {
        font-size: 0.8rem;
    }

    .col-labels {
        font-size: 0.7rem;
    }

    .server-badge-header {
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    .price-cell {
        font-size: 0.9rem;
        padding: 8px 4px;
    }

    .sticky-col {
        min-width: 130px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1.2rem;
    }

    .subtitle-compact {
        display: none;
    }

    .type-selector {
        width: 100%;
        justify-content: space-around;
    }

    .admin-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .table-wrapper {
        padding: 5px;
        margin: 5px;
        border-radius: 0;
    }

    .sticky-col {
        min-width: 100px;
        font-size: 0.75rem;
        padding: 8px 4px;
    }

    .price-cell {
        font-size: 0.8rem;
        padding: 6px 2px;
    }

    .server-header {
        min-width: 80px;
    }

    .server-name {
        font-size: 0.7rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #667eea;
}

.cookie-banner-text {
    font-size: 0.9rem;
    color: #cbd5e0;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: #9f7aea;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn-settings {
    background: transparent;
    color: #cbd5e0;
    border: 2px solid #4a5568;
}

.cookie-btn-settings:hover {
    background: #4a5568;
    color: white;
    border-color: #4a5568;
}

.cookie-btn-reject {
    background: transparent;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.cookie-btn-reject:hover {
    background: #e53e3e;
    color: white;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-compact {
    padding: 30px 20px;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: #2d3748;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-option {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-name {
    font-weight: 600;
    font-size: 1rem;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile Responsive for Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px 20px;
    }

    .cookie-banner-content {
        min-width: 100%;
    }

    .cookie-banner-title {
        font-size: 0.95rem;
    }

    .cookie-banner-text {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
    }

    .cookie-modal-content {
        border-radius: 8px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 0.75rem;
    }
}

/* ============================================================ */
/* 🎯 YORUM ÇEKİLİŞİ — PREMIUM STYLES                        */
/* ============================================================ */

/* --- Hero Section --- */
.gw-hero,
/* legacy compat */
.gw-hero-compact {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 40%, #302b63 70%, #24243e 100%);
    color: white;
    padding: 40px 30px 30px;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.gw-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.gw-particle {
    position: absolute;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: gw-float 6s ease-in-out infinite;
}

@keyframes gw-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-20px) scale(1.3);
        opacity: 0.8;
    }
}

.gw-hero-compact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.gw-hero-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-hero-icon-sm {
    font-size: 2.5rem;
}

.gw-hero-title-sm {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gw-hero-desc {
    font-size: 0.95rem;
    color: #a5b4fc;
    line-height: 1.6;
}

.gw-hero-desc strong {
    color: #fbbf24;
}

.gw-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.gw-tag-item {
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c7d2fe;
}

/* --- Right: Link Input Card --- */
.gw-hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-input-card-hero {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 28px 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gw-input-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.gw-hero-input-wrap {
    margin-bottom: 12px;
}

.gw-hero-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: 'Inter', monospace;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.gw-hero-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.gw-hero-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.gw-btn-fetch {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.gw-btn-fetch:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

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

.gw-input-hint {
    margin-top: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.gw-input-hint code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
}

/* --- Auth Strip --- */
.gw-auth-strip {
    display: flex;
    justify-content: center;
}

.gw-auth-guest,
.gw-auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gw-btn-mini {
    padding: 7px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gw-btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gw-btn-mini-outline {
    padding: 7px 16px;
    background: transparent;
    color: #c7d2fe;
    border: 1px solid rgba(199, 210, 254, 0.3);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gw-btn-mini-outline:hover {
    background: rgba(199, 210, 254, 0.1);
    border-color: rgba(199, 210, 254, 0.5);
}

.gw-btn-mini-text {
    padding: 5px 10px;
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gw-btn-mini-text:hover {
    opacity: 1;
}

.gw-auth-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

.gw-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 14px 4px 4px;
}

.gw-user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.gw-user-name-sm {
    font-weight: 700;
    font-size: 0.82rem;
    color: white;
}

.gw-user-stat-sm {
    font-size: 0.7rem;
    color: #a0aec0;
}

.gw-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gw-particle {
    position: absolute;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: gw-float 6s ease-in-out infinite;
}

@keyframes gw-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.7;
    }
}

.gw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.gw-hero-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.gw-hero-icon {
    font-size: 4rem;
    display: block;
    animation: gw-bounce 2s ease-in-out infinite;
}

.gw-hero-icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: gw-ring-pulse 2s ease-in-out infinite;
}

.gw-hero-icon-ring.ring-2 {
    width: 130px;
    height: 130px;
    animation-delay: 0.5s;
    border-color: rgba(118, 75, 162, 0.2);
}

@keyframes gw-bounce {

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

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

@keyframes gw-ring-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

.gw-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gw-hero-subtitle {
    font-size: 1.1rem;
    color: #c7d2fe;
    margin: 0 0 24px;
    line-height: 1.6;
    font-weight: 400;
}

.gw-hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.gw-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gw-badge-yt {
    background: rgba(255, 0, 0, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 0, 0, 0.25);
}

.gw-badge-ig {
    background: rgba(225, 48, 108, 0.15);
    color: #f093fb;
    border-color: rgba(225, 48, 108, 0.25);
}

.gw-badge-free {
    background: rgba(56, 239, 125, 0.12);
    color: #38ef7d;
    border-color: rgba(56, 239, 125, 0.25);
}

/* --- Auth Area in Hero --- */
.gw-hero-auth {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gw-auth-guest,
.gw-auth-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gw-btn-auth {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gw-btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gw-btn-auth-outline {
    padding: 10px 24px;
    background: transparent;
    color: #c7d2fe;
    border: 2px solid rgba(199, 210, 254, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gw-btn-auth-outline:hover {
    background: rgba(199, 210, 254, 0.1);
    border-color: rgba(199, 210, 254, 0.5);
}

.gw-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gw-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.gw-user-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.gw-user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.gw-user-stat {
    font-size: 0.75rem;
    color: #a0aec0;
}

.gw-btn-history {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #c7d2fe;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gw-btn-history:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gw-btn-logout {
    padding: 8px 12px;
    background: transparent;
    color: #ff6b6b;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gw-btn-logout:hover {
    opacity: 1;
}

/* --- Features Section --- */
.gw-section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a202c;
    text-align: center;
    margin-bottom: 8px;
}

.gw-section-subtitle {
    font-size: 1rem;
    color: #718096;
    text-align: center;
    margin-bottom: 40px;
}

.gw-features {
    padding: 60px 30px;
    background: #f7f8fc;
}

.gw-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.gw-feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.gw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.12);
}

.gw-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.gw-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px;
}

.gw-feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* --- How It Works --- */
.gw-how-it-works {
    padding: 60px 30px;
    background: white;
    text-align: center;
}

.gw-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
    text-align: center;
}

.gw-section-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 40px;
    text-align: center;
}

.gw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gw-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
}

.gw-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gw-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
}

.gw-step-content p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.gw-step-arrow {
    font-size: 1.5rem;
    color: #cbd5e0;
    font-weight: 700;
}

/* --- FAQ Section --- */
.gw-faq {
    padding: 60px 30px;
    background: #f7f8fc;
    max-width: 800px;
    margin: 0 auto;
}

.gw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s;
}

.gw-faq-item:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

.gw-faq-item summary {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a202c;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.gw-faq-item summary::-webkit-details-marker {
    display: none;
}

.gw-faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #667eea;
    font-weight: 300;
    transition: transform 0.3s;
}

.gw-faq-item[open] summary::after {
    content: '−';
}

.gw-faq-item p {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* --- App Cards --- */
.gw-app {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gw-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}

.gw-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gw-card-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gw-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.gw-card-header p {
    font-size: 0.9rem;
    color: #e0e7ff;
    margin: 0;
}

.gw-card-body {
    padding: 28px 32px;
}

/* --- Input Group --- */
.gw-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.gw-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.gw-input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.2rem;
    z-index: 2;
}

.gw-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.gw-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.gw-platform-tag {
    position: absolute;
    right: 12px;
    display: none;
}

.gw-tag-yt {
    padding: 4px 10px;
    background: #ff0000;
    color: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.gw-tag-ig {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.gw-btn {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.gw-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.gw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

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

.gw-input-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gw-example {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.gw-example code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* --- Progress Card — Modern Design --- */

.gw-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gw-progress-header-left {
    flex: 1;
}

.gw-progress-circle {
    width: 72px;
    height: 72px;
    position: relative;
    flex-shrink: 0;
}

.gw-progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gw-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 6;
}

.gw-progress-fill {
    fill: none;
    stroke: #38ef7d;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(56, 239, 125, 0.4));
}

.gw-progress-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
}

.gw-live-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.gw-live-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.gw-live-stat:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.gw-live-stat-comments {
    border-left: 4px solid #667eea;
}

.gw-live-stat-users {
    border-left: 4px solid #38ef7d;
}

.gw-live-stat-pages {
    border-left: 4px solid #f59e0b;
}

.gw-live-stat-time {
    border-left: 4px solid #f093fb;
}

.gw-live-stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gw-live-stat-info {
    flex: 1;
    min-width: 0;
}

.gw-live-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
}

.gw-live-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.gw-live-stat-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38ef7d;
    animation: gw-pulse-dot 1.5s ease infinite;
}

@keyframes gw-pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

.gw-progress-phase {
    margin-bottom: 16px;
}

.gw-phase-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gw-phase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.gw-phase-dot.gw-phase-active {
    background: #667eea;
    animation: gw-pulse-dot 1s ease infinite;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.gw-phase-dot.gw-phase-done {
    background: #38ef7d;
    animation: none;
    box-shadow: 0 0 8px rgba(56, 239, 125, 0.3);
}

#phaseText {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.gw-progress-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.gw-progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gw-progress-bar-fill.indeterminate {
    width: 100% !important;
    animation: gw-bar-shimmer 2s ease infinite;
}

@keyframes gw-bar-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.gw-progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: gw-bar-shine 2s ease-in-out infinite;
}

@keyframes gw-bar-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.gw-activity-section {
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
}

.gw-activity-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.gw-activity-toggle:hover {
    background: #f1f5f9;
    color: #475569;
}

.gw-toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.gw-toggle-arrow.open {
    transform: rotate(180deg);
}

.gw-activity-log {
    max-height: 200px;
    overflow-y: auto;
    background: #0f172a;
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.gw-activity-log.collapsed {
    max-height: 0;
    padding: 0 14px;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
}

.gw-log-entry {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gw-log-info {
    color: #94a3b8;
}

.gw-log-success {
    color: #38ef7d;
}

.gw-log-warning {
    color: #ffd200;
}

.gw-log-error {
    color: #ff6b6b;
}

@media (max-width: 700px) {
    .gw-live-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gw-live-stat {
        padding: 12px;
        gap: 8px;
    }

    .gw-live-stat-value {
        font-size: 1.1rem;
    }

    .gw-live-stat-icon {
        font-size: 1.2rem;
    }

    .gw-progress-circle {
        width: 56px;
        height: 56px;
    }

    .gw-progress-percent {
        font-size: 0.7rem;
    }
}

/* --- Result Card --- */
.gw-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gw-result-counts {
    display: flex;
    gap: 12px;
}

.gw-count-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.gw-count-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.gw-count-badge small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* --- Settings --- */
.gw-settings {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.gw-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.gw-setting-row:last-child {
    border-bottom: none;
}

.gw-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.gw-label small {
    color: #94a3b8;
    font-weight: 400;
}

.gw-number-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.gw-num-btn {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
    transition: background 0.2s;
}

.gw-num-btn:hover {
    background: #e2e8f0;
}

.gw-num-value {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    -moz-appearance: textfield;
    appearance: textfield;
}

.gw-num-value::-webkit-inner-spin-button {
    display: none;
}

.gw-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    justify-content: flex-start;
}

.gw-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.gw-filter-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.gw-filter-input:focus {
    outline: none;
    border-color: #667eea;
}

/* --- Draw Button --- */
.gw-btn-draw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gw-gradient-shift 3s ease infinite;
}

@keyframes gw-gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gw-btn-draw:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.4);
}

.gw-btn-draw:active {
    transform: translateY(0);
}

.gw-draw-icon {
    font-size: 1.5rem;
}

/* --- Winners --- */
.gw-winner-section {
    margin-bottom: 32px;
}

.gw-winner-title {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.gw-winner-crown {
    font-size: 2rem;
}

.gw-winner-title h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.gw-winners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-winner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 14px;
    animation: gw-winner-appear 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes gw-winner-appear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gw-winner-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gw-winner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gw-winner-info {
    flex: 1;
    min-width: 0;
}

.gw-winner-name {
    font-weight: 700;
    font-size: 1rem;
    color: #92400e;
}

.gw-winner-comment {
    font-size: 0.8rem;
    color: #b45309;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-winner-trophy {
    font-size: 1.5rem;
}

.gw-winner-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gw-btn-secondary {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gw-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

/* --- Comments List --- */
.gw-comments-section {
    margin-top: 24px;
}

.gw-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.gw-comments-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    white-space: nowrap;
}

.gw-search-input {
    flex: 1;
    max-width: 260px;
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.gw-search-input:focus {
    outline: none;
    border-color: #667eea;
}

.gw-comments-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.gw-comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.gw-comment:hover {
    background: #f8fafc;
}

.gw-comment:last-child {
    border-bottom: none;
}

.gw-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.gw-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gw-comment-body {
    flex: 1;
    min-width: 0;
}

.gw-comment-user {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.gw-comment-text {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
    word-wrap: break-word;
}

.gw-comment-likes {
    font-size: 0.75rem;
    color: #f43f5e;
    white-space: nowrap;
    flex-shrink: 0;
}

.gw-comments-more {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    background: #f8fafc;
}

/* --- Draw Overlay --- */
.gw-draw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 41, 0.95);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.gw-draw-overlay.hidden {
    display: none;
}

.gw-draw-animation {
    text-align: center;
}

.gw-spin-name {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    transition: all 0.1s;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.gw-spin-name.slowing {
    color: #fbbf24;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
}

.gw-spin-name.winner-flash {
    color: #38ef7d;
    text-shadow: 0 0 60px rgba(56, 239, 125, 0.6);
    animation: gw-winner-flash 0.3s ease 3;
}

@keyframes gw-winner-flash {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* --- Confetti --- */
.gw-confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 6000;
    pointer-events: none;
    display: none;
}

/* --- Auth Modal --- */
.gw-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.gw-modal.hidden {
    display: none;
}

.gw-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.gw-modal-lg {
    max-width: 640px;
}

.gw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 16px 16px 0 0;
}

.gw-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.gw-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gw-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.gw-modal-body {
    padding: 28px;
}

/* --- Auth Form --- */
.gw-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gw-auth-form.hidden {
    display: none;
}

.gw-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gw-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.gw-form-group label small {
    color: #94a3b8;
    font-weight: 400;
}

.gw-form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.gw-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.gw-btn-full {
    width: 100%;
    justify-content: center;
}

.gw-auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.gw-auth-switch a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.gw-auth-switch a:hover {
    text-decoration: underline;
}

/* --- History Modal --- */
.gw-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.gw-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.gw-history-empty {
    text-align: center;
    padding: 40px 20px;
}

.gw-history-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.gw-history-empty h3 {
    font-size: 1.1rem;
    color: #334155;
    margin: 0 0 8px;
}

.gw-history-empty p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.gw-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-history-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    transition: all 0.2s;
}

.gw-history-item:hover {
    border-color: #cbd5e0;
    background: white;
}

.gw-history-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.gw-history-info {
    flex: 1;
    min-width: 0;
}

.gw-history-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gw-history-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.gw-history-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin: 4px 0;
}

.gw-history-winners {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0;
}

.gw-history-winner-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gw-history-url {
    margin-top: 4px;
}

.gw-history-url a {
    font-size: 0.75rem;
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.gw-history-url a:hover {
    text-decoration: underline;
}

.gw-btn-icon {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.gw-btn-icon:hover {
    opacity: 1;
}

.gw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.gw-btn-sm {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.gw-btn-sm:hover {
    background: #e2e8f0;
}

.gw-page-info {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- FAQ Section --- */
.gw-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.gw-faq-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.gw-faq-item:hover {
    border-color: #cbd5e0;
}

.gw-faq-item[open] {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.gw-faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gw-faq-item summary::-webkit-details-marker {
    display: none;
}

.gw-faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: #94a3b8;
    transition: transform 0.3s;
}

.gw-faq-item[open] summary::after {
    content: '−';
    color: #667eea;
}

.gw-faq-item p {
    padding: 0 22px 18px;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* --- Notification --- */
.gw-notif {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.gw-notif.show {
    transform: translateY(0);
    opacity: 1;
}

.gw-notif-success {
    background: #065f46;
    color: #bbf7d0;
}

.gw-notif-error {
    background: #991b1b;
    color: #fecaca;
}

.gw-notif-info {
    background: #1e293b;
    color: #e2e8f0;
}

.gw-notif-warning {
    background: #92400e;
    color: #fef3c7;
}

/* --- Hidden utility --- */
.hidden {
    display: none !important;
}

/* --- Responsive — Giveaway --- */
@media (max-width: 768px) {
    .gw-hero {
        padding: 40px 20px 35px;
    }

    .gw-hero-title {
        font-size: 2rem;
    }

    .gw-hero-subtitle {
        font-size: 0.95rem;
    }

    .gw-hero-badges {
        gap: 8px;
    }

    .gw-badge {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .gw-hero-auth {
        flex-direction: column;
        gap: 8px;
    }

    .gw-hero-compact-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gw-hero-left {
        text-align: center;
        align-items: center;
    }

    .gw-hero-tags {
        justify-content: center;
    }

    .gw-hero-title-sm {
        font-size: 1.6rem;
    }

    .gw-auth-guest,
    .gw-auth-user {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gw-features {
        padding: 40px 16px;
    }

    .gw-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gw-steps {
        flex-direction: column;
    }

    .gw-step-arrow {
        transform: rotate(90deg);
    }

    .gw-app {
        padding: 20px 12px;
    }

    .gw-card-header {
        padding: 20px;
    }

    .gw-card-body {
        padding: 20px;
    }

    .gw-input-group {
        flex-direction: column;
    }

    .gw-btn-primary {
        justify-content: center;
    }

    .gw-result-header {
        flex-direction: column;
        gap: 16px;
    }

    .gw-setting-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .gw-filter-input {
        max-width: 100%;
    }

    .gw-spin-name {
        font-size: 2rem;
    }

    .gw-btn-draw {
        font-size: 1.1rem;
        padding: 16px;
    }

    .gw-modal-content {
        border-radius: 12px;
    }

    .gw-faq {
        padding: 40px 16px;
    }

    .gw-notif {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }

    .gw-slot-machine {
        max-width: 100%;
    }

    .gw-reveal-name {
        font-size: 1.5rem;
    }

    .gw-draw-round {
        font-size: 1.1rem;
    }
}

/* ============================================================ */
/* 🎰 SLOT MACHINE DRAW OVERLAY                                */
/* ============================================================ */

.gw-draw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 41, 0.97);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    flex-direction: column;
}

.gw-draw-overlay.hidden {
    display: none;
}

.gw-draw-animation {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.gw-draw-round {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c7d2fe;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: gw-pulse-text 1.5s ease-in-out infinite;
}

@keyframes gw-pulse-text {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.gw-draw-counter {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 16px;
    letter-spacing: 1px;
}

.gw-slot-machine {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(0, 0, 0, 0.4);
    box-shadow:
        0 0 40px rgba(102, 126, 234, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.gw-slot-machine::before,
.gw-slot-machine::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 10;
    pointer-events: none;
}

.gw-slot-machine::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(15, 12, 41, 0.95), transparent);
}

.gw-slot-machine::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.95), transparent);
}

.gw-slot-reel-inner {
    will-change: transform;
}

.gw-slot-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    height: 80px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

.gw-slot-item.gw-slot-center {
    background: rgba(102, 126, 234, 0.1);
}

.gw-slot-item.gw-slot-revealed {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.2), rgba(17, 153, 142, 0.2)) !important;
    border: 2px solid rgba(56, 239, 125, 0.5);
    border-radius: 12px;
    animation: gw-slot-winner-glow 0.5s ease 3;
}

@keyframes gw-slot-winner-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(56, 239, 125, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(56, 239, 125, 0.5);
    }
}

.gw-slot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gw-slot-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.gw-slot-name {
    font-weight: 700;
    font-size: 1rem;
    color: white;
    margin-bottom: 2px;
}

.gw-slot-comment {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Winner Reveal Burst */
.gw-draw-winner-reveal {
    margin-top: 30px;
    text-align: center;
    animation: gw-reveal-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gw-reveal-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gw-reveal-crown {
    font-size: 3.5rem;
    animation: gw-crown-bounce 0.6s ease 0.2s both;
}

@keyframes gw-crown-bounce {
    0% {
        transform: scale(0) rotate(-30deg);
    }

    60% {
        transform: scale(1.3) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.gw-reveal-name {
    font-size: 2rem;
    font-weight: 900;
    color: #38ef7d;
    margin: 10px 0 6px;
    text-shadow: 0 0 30px rgba(56, 239, 125, 0.5);
    animation: gw-name-glow 1s ease-in-out infinite alternate;
}

@keyframes gw-name-glow {
    from {
        text-shadow: 0 0 20px rgba(56, 239, 125, 0.3);
    }

    to {
        text-shadow: 0 0 40px rgba(56, 239, 125, 0.7);
    }
}

.gw-reveal-comment {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    max-width: 350px;
    margin: 0 auto;
}

/* Legacy spin name (fallback) */
.gw-spin-name {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    transition: all 0.1s;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.gw-spin-name.slowing {
    color: #fbbf24;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
}

.gw-spin-name.winner-flash {
    color: #38ef7d;
    text-shadow: 0 0 60px rgba(56, 239, 125, 0.6);
    animation: gw-winner-flash 0.3s ease 3;
}

@keyframes gw-winner-flash {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* --- Confetti --- */
.gw-confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 6000;
    pointer-events: none;
    display: none;
}

/* --- Hidden utility --- */
.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .gw-hero-title {
        font-size: 1.6rem;
    }

    .gw-hero-icon {
        font-size: 3rem;
    }

    .gw-hero-icon-ring {
        width: 80px;
        height: 80px;
    }

    .gw-hero-icon-ring.ring-2 {
        width: 100px;
        height: 100px;
    }

    .gw-section-title {
        font-size: 1.5rem;
    }

    .gw-stat-value {
        font-size: 1.4rem;
    }

    .gw-reveal-name {
        font-size: 1.3rem;
    }

    .gw-draw-round {
        font-size: 1rem;
    }
}

/* ============================================================
   PLATFORM İSTATİSTİKLERİ
   ============================================================ */

.gw-stats-section {
    padding: 50px 24px 40px;
    background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
    max-width: 1100px;
    margin: 0 auto;
}

.gw-stats-header {
    text-align: center;
    margin-bottom: 36px;
}

.gw-stats-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.gw-stats-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a202c;
    margin: 0 0 6px;
}

.gw-stats-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.gw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.gw-stat-card {
    background: white;
    border-radius: 18px;
    padding: 28px 20px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gw-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
}

.gw-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.gw-stat-primary::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gw-stat-success::before {
    background: linear-gradient(135deg, #38ef7d, #11998e);
}

.gw-stat-info::before {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.gw-stat-purple::before {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gw-stat-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.gw-stat-card-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a202c;
    line-height: 1.1;
    margin-bottom: 4px;
}

.gw-stat-card-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gw-stat-card-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

/* --- Son Çekilişler --- */
.gw-recent-draws {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.gw-recent-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px;
}

.gw-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gw-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    transition: all 0.2s;
}

.gw-recent-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.gw-recent-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.gw-recent-item-info {
    flex: 1;
    min-width: 0;
}

.gw-recent-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.gw-recent-item-code {
    font-weight: 700;
    font-size: 0.85rem;
    color: #667eea;
    font-family: 'JetBrains Mono', monospace;
}

.gw-recent-item-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.gw-recent-item-bottom {
    font-size: 0.78rem;
    color: #64748b;
}

.gw-recent-empty {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
    font-size: 0.9rem;
}

.gw-recent-loading {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.gw-btn-view-result {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    text-decoration: none;
}

/* --- Çekiliş Kodu Sorgulama --- */
.gw-code-lookup {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.gw-code-lookup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px;
}

.gw-code-lookup-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.gw-code-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    transition: border-color 0.3s;
}

.gw-code-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.gw-code-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.85rem;
}

.gw-btn-lookup {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.gw-btn-lookup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

/* ============================================================
   KAZANAN META — Katılım Sayısı, Yorumu Gör
   ============================================================ */

.gw-winner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.gw-winner-entry-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    background: rgba(245, 158, 11, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

.gw-btn-view-comment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.73rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.gw-btn-view-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

/* ============================================================
   ÇEKİLİŞ KODU / SONUÇ LİNKİ
   ============================================================ */

.gw-giveaway-result-link {
    margin: 24px 0 8px;
    animation: gw-fade-in 0.5s ease;
}

@keyframes gw-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.gw-result-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 2px solid #a5b4fc;
    border-radius: 14px;
}

.gw-result-link-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.gw-result-link-info {
    flex: 1;
    min-width: 0;
}

.gw-result-link-label {
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gw-result-link-code {
    font-size: 1.5rem;
    font-weight: 900;
    color: #4338ca;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 3px;
}

.gw-btn-copy-link {
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.gw-result-link-url {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #475569;
    word-break: break-all;
    text-align: center;
}

.gw-result-link-hint {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 8px 0 0;
}

/* ============================================================
   ÇEKİLİŞ SONUÇ SAYFASI (Paylaşılabilir)
   ============================================================ */

.gw-result-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.gw-result-page-inner {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.gw-result-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gw-result-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: gw-result-shimmer 4s ease infinite;
}

@keyframes gw-result-shimmer {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

.gw-result-page-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
}

.gw-result-page-code {
    font-size: 2.4rem;
    font-weight: 900;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* --- Result Meta Grid --- */
.gw-result-page-meta {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: white;
}

.gw-result-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.gw-result-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #475569;
}

.gw-result-meta-icon {
    font-size: 1rem;
}

/* --- Result Winners --- */
.gw-result-page-winners {
    padding: 28px;
    background: white;
}

.gw-result-winners-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a202c;
    text-align: center;
    margin: 0 0 20px;
}

.gw-result-winners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-result-winner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    animation: gw-winner-appear 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
    position: relative;
}

.gw-result-winner-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.gw-result-winner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.gw-result-winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gw-result-winner-body {
    flex: 1;
    min-width: 0;
}

.gw-result-winner-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #92400e;
    margin-bottom: 2px;
}

.gw-result-winner-comment {
    font-size: 0.82rem;
    color: #b45309;
    line-height: 1.4;
    margin-bottom: 6px;
}

.gw-result-winner-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gw-result-winner-entries {
    font-size: 0.73rem;
    font-weight: 600;
    color: #92400e;
    background: rgba(245, 158, 11, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

.gw-result-winner-trophy {
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* --- Result Info Grid --- */
.gw-result-page-info {
    padding: 24px 28px;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.gw-result-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gw-result-info-item {
    text-align: center;
    padding: 16px 8px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}

.gw-result-info-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 4px;
}

.gw-result-info-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Result Actions --- */
.gw-result-page-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 28px;
    background: white;
    flex-wrap: wrap;
}

.gw-result-page-actions .gw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* --- Result Footer --- */
.gw-result-page-footer {
    padding: 24px 28px;
    background: #f1f5f9;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.gw-result-page-footer p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 6px;
}

.gw-result-page-trust {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
}

/* --- History Code Badge --- */
.gw-history-code {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gw-history-code-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.gw-history-result-link {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.gw-history-result-link:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE — Yeni Bileşenler
   ============================================================ */

@media (max-width: 900px) {
    .gw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gw-result-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gw-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gw-stat-card {
        padding: 20px 14px 16px;
    }

    .gw-stat-card-value {
        font-size: 1.6rem;
    }

    .gw-stat-card-label {
        font-size: 0.72rem;
    }

    .gw-code-lookup-form {
        flex-direction: column;
    }

    .gw-code-input {
        font-size: 0.9rem;
    }

    .gw-result-link-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .gw-result-link-code {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .gw-result-page-code {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .gw-result-page-header {
        padding: 28px 20px;
    }

    .gw-result-meta-grid {
        flex-direction: column;
        gap: 8px;
    }

    .gw-result-winner-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .gw-result-winner-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .gw-result-winner-rank {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .gw-result-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gw-result-info-value {
        font-size: 1.2rem;
    }

    .gw-recent-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .gw-recent-item-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .gw-result-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gw-result-page-actions .gw-btn {
        justify-content: center;
    }
}

/* ================================================================
   GLOBAL AUTH — Navbar Auth Area
   ================================================================ */

.global-auth-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.global-auth-btn {
    padding: 6px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.global-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.global-user-dropdown {
    position: relative;
}

.global-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.global-user-btn:hover {
    background: rgba(102, 126, 234, 0.15);
}

.global-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.global-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a202c;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-dropdown-arrow {
    color: #94a3b8;
    transition: transform 0.2s;
}

.global-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    overflow: hidden;
    animation: global-dropdown-in 0.2s ease;
}

@keyframes global-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.global-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.global-dropdown-item:hover {
    background: #f8fafc;
    color: #1a202c;
}

.global-dropdown-divider {
    height: 1px;
    background: #eef2f7;
    margin: 4px 0;
}

.global-dropdown-logout {
    color: #ef4444;
}

.global-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ================================================================
   GLOBAL AUTH — Modal
   ================================================================ */

.global-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.global-modal.hidden {
    display: none;
}

.global-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.global-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    animation: global-modal-in 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes global-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

.global-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.global-modal-close:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.global-auth-form {
    padding: 36px 32px;
}

.global-auth-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.global-auth-form h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 6px;
}

.global-auth-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 24px;
}

.global-form-group {
    margin-bottom: 16px;
}

.global-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.global-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-sizing: border-box;
}

.global-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.global-auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

.global-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.global-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.global-auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.global-auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.global-auth-links a:hover {
    text-decoration: underline;
}

.global-auth-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.global-auth-message-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.global-auth-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.global-auth-message-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Toast */
.global-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    z-index: 11000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
}

.global-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.global-toast-success {
    background: linear-gradient(135deg, #38ef7d, #11998e);
}

.global-toast-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.global-toast-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ================================================================
   DASHBOARD
   ================================================================ */

.dash-not-logged-in {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.dash-login-prompt {
    text-align: center;
    max-width: 420px;
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
}

.dash-login-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.dash-login-prompt h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 10px;
}

.dash-login-prompt p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 28px;
}

.dash-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dash-btn-outline {
    background: transparent !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
    box-shadow: none !important;
}

.dash-btn-outline:hover {
    background: rgba(102, 126, 234, 0.08) !important;
}

.dash-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-header-info h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 4px;
}

.dash-username {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 4px;
}

.dash-joined {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

.dash-header-stats {
    display: flex;
    gap: 24px;
}

.dash-header-stat {
    text-align: center;
}

.dash-header-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a202c;
}

.dash-header-stat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
}

.dash-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.dash-tab.active {
    background: white;
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dash-tab:hover:not(.active) {
    color: #475569;
}

.dash-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}

.dash-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dash-info-item {
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.dash-info-item label {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dash-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
}

.dash-form {
    max-width: 400px;
}

.dash-form-group {
    margin-bottom: 16px;
}

.dash-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-sizing: border-box;
}

.dash-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.dash-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-history-loading,
.dash-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.dash-history-empty a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.dash-history-item {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s;
}

.dash-history-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.dash-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.dash-history-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-history-platform {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
}

.dash-history-code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    font-family: 'JetBrains Mono', monospace;
}

.dash-history-date {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}

.dash-history-item-stats {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 10px;
}

.dash-history-winners {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.dash-history-winner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.dash-winner-rank {
    font-weight: 700;
    color: #d97706;
}

.dash-winner-name {
    font-weight: 600;
    color: #15803d;
}

.dash-winner-entries {
    color: #64748b;
    font-size: 0.72rem;
}

.dash-history-item-actions {
    display: flex;
    gap: 8px;
}

.dash-btn-sm {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dash-btn-sm:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dash-btn-danger {
    color: #ef4444;
    border-color: #fecaca;
}

.dash-btn-danger:hover {
    background: #fef2f2;
}

.dash-history-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.dash-pg-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

.dash-pg-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

@media (max-width: 700px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dash-header-stats {
        align-self: flex-start;
    }

    .dash-form-grid {
        grid-template-columns: 1fr;
    }

    .dash-tabs {
        overflow-x: auto;
    }

    .dash-tab {
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 10px 12px;
    }

    .dash-history-item-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .global-modal-content {
        margin: 10px;
    }

    .global-auth-form {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .global-user-name {
        display: none;
    }
}