/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Teko:wght@500;700&display=swap');

:root {
    --bg-base: #0f1014;
    --bg-grad: radial-gradient(circle at top right, #1a1c23 0%, #0f1014 60%);
    --glass-bg: rgba(30, 32, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    
    --primary: #00f2fe; /* Default, will be overridden inline by PHP for games */
    --primary-dark: #4facfe;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

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

body {
    background-color: var(--bg-base);
    background-image: var(--bg-grad);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, .sport-font, .ff-font, .display-font {
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-element { animation: float 6s ease-in-out infinite; }

.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Custom Inputs */
.input-premium {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: white;
    transition: all 0.3s ease;
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb, 0, 242, 254), 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.input-premium::placeholder { color: #475569; }

select.input-premium {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb, 0, 242, 254), 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb, 0, 242, 254), 0.5);
    filter: brightness(1.1);
}

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

/* Tabs */
.tab-btn {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

/* Message Boxes */
.msg-box {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Free Fire ID Card specific */
.ff-card {
    background: linear-gradient(135deg, rgba(20,20,25,0.9), rgba(10,10,15,0.9));
    border: 1px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(var(--primary-rgb), 0.1);
}

/* Redemption Loading Overlay */
#redeem-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#redeem-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.radar-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.radar-core {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    position: relative;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.radar-wave {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: wave 2s linear infinite;
}

.radar-wave:nth-child(2) { animation-delay: 0.6s; }
.radar-wave:nth-child(3) { animation-delay: 1.2s; }

@keyframes wave {
    0% { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.loading-text-container {
    text-align: center;
    height: 60px;
    position: relative;
    width: 100%;
}

.loading-text {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.loading-text.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
