:root {
    --primary: #F4B728; /* Zcash Yellow */
    --primary-hover: #f5c449;
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.6);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(244, 183, 40, 0.3);
    --success: #22c55e;
    --error: #ef4444;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background-color: var(--primary);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background-color: #3b82f6; /* Subtle blue for contrast */
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 50px); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.badge {
    background: rgba(244, 183, 40, 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    vertical-align: middle;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-main);
}

/* Main Content */
.main-content {
    padding: 60px 0 40px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

/* Hero Text */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse-animation 2s infinite;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(244, 183, 40, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glassmorphism Card */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-muted);
}

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

.input-wrapper .icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

input[type="text"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 16px 16px 48px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 183, 40, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

input[type="text"]:focus + .icon,
.input-wrapper:focus-within .icon {
    color: var(--primary);
}

.error-msg {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 8px;
}

.input-group.invalid input {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.input-group.invalid .icon {
    color: var(--error);
}

.input-group.invalid .error-msg {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Checkbox Captcha Mock */
.captcha-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
    transition: border-color 0.3s ease;
}

.captcha-mock:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 36px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--text-muted);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    animation: checkAnim 0.2s ease-in-out forwards;
}

@keyframes checkAnim {
    0% { height: 0; width: 0; opacity: 0; }
    100% { height: 12px; width: 6px; opacity: 1; }
}

.captcha-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Button */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(244, 183, 40, 0.6);
}

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

.btn-primary:disabled {
    background: #3f3f46;
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled::before {
    display: none;
}

/* Loader inside button */
.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-bottom-color: #000;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .loader {
    display: block;
}

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

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    animation: check-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s;
    opacity: 0;
    transform: scale(0.5);
}

@keyframes check-pop {
    to { opacity: 1; transform: scale(1); }
}

.success-message h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.tx-info {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tx-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Timer */
.timer-container {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.timer-container p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 12px;
}

.countdown {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(244, 183, 40, 0.3);
}

/* Live Payouts Section */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
}

.live-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse-animation-red 2s infinite;
}

@keyframes pulse-animation-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.payouts-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payouts-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.payouts-table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.payouts-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.payouts-table tr:last-child td {
    border-bottom: none;
}

.payouts-table tbody tr {
    transition: background-color 0.2s ease;
}

.payouts-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.td-amount {
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-amount svg {
    width: 14px;
    height: 14px;
}

.td-tx {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.td-tx:hover {
    text-decoration: underline;
}

.new-row {
    animation: highlightRow 3s ease forwards;
}

@keyframes highlightRow {
    0% { background-color: rgba(244, 183, 40, 0.2); transform: translateX(-10px); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    100% { background-color: transparent; }
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .hero p {
        margin: 0 auto 32px;
    }
    
    nav {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-content div {
        align-items: center !important;
    }
    
    .glass {
        padding: 32px 24px;
    }
    
    .payouts-table th, .payouts-table td {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .countdown {
        font-size: 2.5rem;
    }
}
