/* --- KAVYA CLUB BRAND DESIGN SYSTEM & STYLES --- */
/* Theme: Emerald Leaf Green, Golden Yellow, Royal Violet, Soft Mint Light Mode */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f3faf5;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(180deg, #e6f4ea 0%, #f3faf5 40%, #ffffff 100%);
    
    /* Brand Primary Colors */
    --primary-green: #16a34a;       /* Lush Leaf Green */
    --primary-green-dark: #15803d;  /* Deep Forest Green */
    --primary-green-light: #22c55e; /* Vibrant Emerald */
    --primary-green-bg: #eab308;
    --green-subtle: #dcfce7;
    
    /* Brand Secondary & Accent Colors */
    --gold-yellow: #f59e0b;         /* Rich Golden Amber */
    --gold-hover: #d97706;
    --gold-light: #fef3c7;
    --gold-bright: #fbbf24;
    
    --royal-purple: #7c3aed;       /* Royal VIP Violet */
    --royal-purple-hover: #6d28d9;
    --purple-light: #f3e8ff;

    --text-dark: #0f291e;
    --text-heading: #064e3b;
    --text-muted: #475569;
    --text-white: #ffffff;
    
    --border: #d1fae5;
    --border-gold: #fde68a;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 10px rgba(22, 163, 74, 0.05);
    --shadow-md: 0 6px 24px rgba(22, 163, 74, 0.1);
    --shadow-lg: 0 12px 36px rgba(22, 163, 74, 0.15);
    --shadow-gold: 0 6px 20px rgba(245, 158, 11, 0.25);
    --shadow-green: 0 6px 20px rgba(22, 163, 74, 0.3);
    
    --max-w: 1200px;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 75px; /* Space for mobile nav */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

/* --- Top Announcement Bar --- */
.top-announcement {
    background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #15803d 100%);
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-announcement span.badge {
    background: var(--gold-bright);
    color: #000;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- Top Navigation Action Buttons --- */
.top-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    max-width: var(--max-w);
    margin: 0 auto;
}

.btn-nav-main {
    flex: 1;
    max-width: 200px;
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-nav-login {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    box-shadow: var(--shadow-green);
}

.btn-nav-register {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: var(--shadow-gold);
    color: #ffffff;
}

.btn-nav-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* --- Navigation Header --- */
.nav {
    background: linear-gradient(135deg, #042f2e 0%, #064e3b 50%, #15803d 100%);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: none; /* Mobile first */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
    .logo img { height: 46px; }
    .nav-links {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .nav-links a {
        text-decoration: none;
        color: #f0fdf4;
        font-size: 0.95rem;
        font-weight: 700;
        transition: all 0.25s ease;
        padding: 8px 16px;
        border-radius: var(--radius-full);
    }
    .nav-links a:hover {
        color: var(--gold-bright);
        background: rgba(255, 255, 255, 0.12);
    }
    .nav-links a.active {
        color: var(--gold-bright);
        background: rgba(245, 158, 11, 0.2);
        border: 1px solid rgba(245, 158, 11, 0.35);
    }
}

/* --- Hero Section --- */
.hero {
    padding: 30px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.circular-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.circular-logo {
    width: 130px;
    height: 130px;
    background: #064e3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--gold-bright);
    box-shadow: 0 0 30px rgba(22, 163, 74, 0.35), 0 0 15px rgba(245, 158, 11, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circular-logo:hover {
    transform: scale(1.08) rotate(3deg);
}

.circular-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-subtle);
    border: 1px solid #bbf7d0;
    color: var(--primary-green-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #064e3b 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span.gold-text {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding: 0 20px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .hero { padding: 50px 0 60px; }
    .circular-logo { width: 155px; height: 155px; }
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.25rem; }
}

/* --- CTA Buttons --- */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.btn-premium {
    padding: 16px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 420px;
    text-align: center;
    color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
}

.btn-green {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #22c55e 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-green);
}

.btn-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
}

.btn-purple {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-green:hover, .btn-gold:hover, .btn-purple:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* --- Sections & Cards --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 45px 0; }
.section-alt {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.04) 0%, rgba(245, 158, 11, 0.03) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--text-heading);
}

.section-title span.tag {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

@media (min-width: 520px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .section-title h2 { font-size: 2rem; }
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #bbf7d0;
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.03);
}

.game-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.game-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Category Tabs --- */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 6px 2px;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 10px 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.tab:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.tab.active {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

/* --- Tables --- */
.table-container {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-top: 15px;
}

table { width: 100%; min-width: 500px; border-collapse: collapse; }
th {
    background: #f0fdf4;
    padding: 16px 20px;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    border-bottom: 2px solid var(--primary-green);
}
td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: var(--text-dark);
}
tr:last-child td { border-bottom: none; }

/* --- Footer --- */
.footer {
    padding: 50px 0 25px;
    border-top: 1px solid var(--border);
    background: #042f2e;
    color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

@media (min-width: 769px) {
    .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

.footer h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.footer h5 {
    color: var(--gold-bright);
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer a:hover { color: var(--gold-bright); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- Floating Components --- */
@keyframes pop-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.floating-telegram {
    position: fixed;
    bottom: 85px; /* Above mobile nav */
    right: 20px;
    width: 58px;
    height: 58px;
    z-index: 1000;
    animation: pop-bounce 3s infinite ease-in-out;
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.2));
}

@media (min-width: 769px) {
    .floating-telegram { bottom: 30px; right: 30px; width: 68px; height: 68px; }
}

.floating-telegram img { width: 100%; height: 100%; object-fit: contain; }

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 2000;
    border-top: 1px solid #e2e8f0;
}

@media (min-width: 769px) {
    .mobile-bottom-nav { display: none; }
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.nav-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-item.active {
    color: var(--primary-green);
}

/* --- Gift Code Card --- */
.gift-card-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 420px;
    opacity: 0;
}

.gift-card-container.active {
    grid-template-rows: 1fr;
    margin-top: 18px;
    opacity: 1;
}

.gift-card-content {
    overflow: hidden;
}

.gift-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 2px solid var(--gold-bright);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.gift-card h4 {
    margin-bottom: 16px;
    color: var(--text-heading);
    font-size: 1.15rem;
}

.gift-code-item {
    background: #f8fafc;
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-green-dark);
    word-break: break-all;
    border: 1px dashed var(--primary-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.code-text {
    flex: 1;
    text-align: left;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--green-subtle);
    color: var(--primary-green);
}

.btn-copy.copied {
    color: var(--primary-green);
    transform: scale(1.15);
}

/* --- Toast Notification --- */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 41, 30, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold-bright);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 769px) {
    .copy-toast { bottom: 40px; }
}

.btn-open-game {
    margin-top: 16px;
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-green);
}

.btn-open-game:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
