/* ============================
   CSS Variables & Reset
   ============================ */
:root {
    --tron: #E6000A;
    --tron-light: #FF3B3B;
    --tron-dark: #990000;
    --bg: #0a0a0f;
    --card: rgba(18,6,6,0.85);
    --border: rgba(230,0,10,0.12);
    --fg: #f0e8e8;
    --muted: #8a7a7a;
}

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

/* ============================
   Base & Background
   ============================ */
body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(230,0,10,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(230,0,10,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 60%, rgba(153,0,0,0.03) 0%, transparent 35%),
        var(--bg);
    color: var(--fg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(230,0,10,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,0,10,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 1;
}

/* ============================
   TRX Logo — flat bercahaya
   ============================ */
.logo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,0,10,0.35) 0%, rgba(230,0,10,0.08) 50%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.logo-glow-ring {
    position: absolute;
    width: 130px;
    height: 130px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    border: 1.5px solid rgba(230,0,10,0.2);
    animation: glowRingPulse 3s ease-in-out infinite 0.5s;
    pointer-events: none;
    z-index: 0;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(230,0,10,0.4)) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.logo-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ff4444, #e6000a 50%, #990000 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 25px rgba(230,0,10,0.35), inset 0 0 20px rgba(0,0,0,0.3);
}

.logo-fallback span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* ============================
   Inactivity Bar
   ============================ */
.inactivity-bar-track {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(230,0,10,0.08);
    z-index: 100;
}

.inactivity-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tron-dark), var(--tron), var(--tron-light));
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--tron);
}

.inactivity-bar-fill.warning {
    animation: barPulse 0.5s ease-in-out infinite;
}

/* ============================
   Redirect Overlay
   ============================ */
.redirect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,0,0,0.92);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.redirect-card {
    text-align: center;
    max-width: 440px;
    padding: 3rem 2rem;
    border: 1px solid rgba(230,0,10,0.2);
    border-radius: 16px;
    background: rgba(15,3,3,0.9);
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.redirect-overlay.active .redirect-card {
    transform: translateY(0);
}

.countdown-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--tron);
    text-shadow: 0 0 30px rgba(230,0,10,0.5);
    animation: countPop 1s ease-in-out infinite;
}

/* ============================
   Glass Card
   ============================ */
.glass-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* ============================
   Claim Section — 3 kolom
   ============================ */
.claim-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 24px;
    align-items: start;
    justify-content: center;
    max-width: 1080px;
    margin: 0 auto;
}

.claim-grid .ad-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.claim-grid .claim-center {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ============================
   Features Section
   ============================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(18,6,6,0.6);
    border: 1px solid rgba(230,0,10,0.1);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: rgba(230,0,10,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230,0,10,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(230,0,10,0.1);
    border: 1px solid rgba(230,0,10,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--tron-light);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================
   Input
   ============================ */
.tron-input {
    background: rgba(10,2,2,0.8);
    border: 1px solid rgba(230,0,10,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--fg);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tron-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.tron-input:focus {
    border-color: var(--tron);
    box-shadow: 0 0 0 3px rgba(230,0,10,0.1), 0 0 20px rgba(230,0,10,0.05);
}

/* ============================
   Button
   ============================ */
.tron-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--tron), var(--tron-dark));
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
}

.tron-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230,0,10,0.35), 0 0 60px rgba(230,0,10,0.1);
}

.tron-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tron-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tron-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(45deg);
    animation: btnShine 4s ease-in-out infinite;
}

.tron-btn.ready {
    background: linear-gradient(135deg, #00c853, #009624);
    animation: readyPulse 2s ease-in-out infinite;
}

.tron-btn.ready:hover:not(:disabled) {
    box-shadow: 0 8px 30px rgba(0,200,83,0.35), 0 0 60px rgba(0,200,83,0.1);
}

.btn-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================
   Ad Slot
   ============================ */
.ad-slot {
    border: 1px solid rgba(230,0,10,0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(10,2,2,0.5);
    transition: border-color 0.3s;
    display: block;
}

.ad-slot:hover {
    border-color: rgba(230,0,10,0.2);
}

.ad-slot img {
    display: block;
    width: 300px;
    height: 250px;
    object-fit: cover;
}

.ad-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    opacity: 0.5;
    text-align: center;
    padding: 4px 0;
}

/* ============================
   Toast
   ============================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    max-width: 380px;
    backdrop-filter: blur(10px);
    transform: translateX(120%);
    transition: transform 0.4s ease;
    border: 1px solid;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: rgba(0,80,20,0.9);
    border-color: rgba(0,200,60,0.3);
    color: #a0ffa0;
}

.toast.error {
    background: rgba(80,10,10,0.9);
    border-color: rgba(230,0,10,0.3);
    color: #ffaaaa;
}

.toast.info {
    background: rgba(60,30,0,0.92);
    border-color: rgba(255,160,0,0.3);
    color: #ffe0a0;
}

/* ============================
   Reward Display
   ============================ */
.reward-display {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(230,0,10,0.05);
    border: 1px solid rgba(230,0,10,0.1);
    animation: rewardFade 0.5s ease;
}

.reward-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--tron-light);
    text-shadow: 0 0 25px rgba(230,0,10,0.4);
}

/* ============================
   Blocked State
   ============================ */
.blocked-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(230,0,10,0.1);
    border: 2px solid rgba(230,0,10,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.blocked-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tron);
}

/* ============================
   Spinner
   ============================ */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================
   Smartlink Notice
   ============================ */
.smartlink-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: rgba(255,160,0,0.06);
    border: 1px solid rgba(255,160,0,0.15);
    font-size: 0.78rem;
    line-height: 1.5;
    color: #ffd080;
    animation: noticeSlide 0.4s ease;
}

.smartlink-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================
   Contact FAB
   ============================ */
.contact-fab {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 150;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(18,6,6,0.85);
    border: 1px solid rgba(230,0,10,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tron-light);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.contact-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(230,0,10,0.4);
    box-shadow: 0 4px 20px rgba(230,0,10,0.2);
    color: #fff;
}

/* ============================
   Footer Contact
   ============================ */
.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(230,0,10,0.06);
    border: 1px solid rgba(230,0,10,0.1);
    color: var(--tron-light);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.3s, transform 0.2s;
}

.footer-contact:hover {
    background: rgba(230,0,10,0.12);
    border-color: rgba(230,0,10,0.25);
    transform: translateY(-1px);
}

/* ============================
   Divider
   ============================ */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,0,10,0.15), transparent);
    margin: 0;
}