/* style.css - Global Coins Premium Theme v5 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-input: rgba(0, 0, 0, 0.4);
    --gold-primary: #d4af37;
    --gold-light: #f9e076;
    --ruby-red: #e6192b;
    --copper: #b87333;
    --silver: #c0c0c0;
    --ruby-glow: rgba(230, 25, 43, 0.3);
    --text-main: #ffffff;
    --text-muted: #8b8b93;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Fireflies Background --- */
#fireflies-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.firefly {
    position: absolute; border-radius: 50%; opacity: 0;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* --- Header & Nav --- */
header {
    padding: 15px 0; position: sticky; top: 0; z-index: 100;
    background: rgba(5, 5, 7, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 12px;
    letter-spacing: -0.5px; text-decoration: none; color: #fff;
}
.logo img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 8px var(--ruby-glow)); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.3s; cursor: pointer; }
.nav-link:hover { color: var(--gold-primary); }

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), #b8860b);
    color: #000; font-weight: 700; padding: 14px 32px; border-radius: 8px;
    border: none; cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; display: inline-block; font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); }

/* --- Hero Section --- */
.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 15px; font-weight: 800; }
.ruby-text { color: var(--ruby-red); text-shadow: 0 0 20px var(--ruby-glow); }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 650px; margin: 0 auto 30px; }

/* --- Auth Form Block --- */
.auth-wrapper {
    max-width: 480px; margin: 0 auto 40px; background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 20px;
    padding: 30px; backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); scroll-margin-top: 100px;
}
.auth-header { text-align: center; margin-bottom: 25px; }
.auth-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.auth-desc { font-size: 0.85rem; color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.input-group input {
    width: 100%; padding: 16px 20px; background: var(--bg-input);
    border: 1px solid var(--border-subtle); border-radius: 10px;
    color: #fff; font-size: 1rem; font-family: inherit; transition: 0.3s;
}
.input-group input:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); }
.input-group input::placeholder { color: rgba(255,255,255,0.3); }
.auth-form .btn-primary { width: 100%; margin-top: 5px; }

/* --- Stats Grid --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 60px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 25px; border-radius: 16px; text-align: center; backdrop-filter: blur(5px); }
.stat-val { font-size: 2.2rem; font-weight: 800; color: var(--gold-primary); margin-bottom: 5px; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Sections Common --- */
.section-title { text-align: center; font-size: 0.9rem; color: var(--ruby-red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 700; }
.section-heading { text-align: center; font-size: 2.2rem; margin-bottom: 40px; font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 60px; }

/* COMPACT CARDS STYLE */
.step-card, .method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 25px; /* Уменьшен внутренний отступ */
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.step-card:hover, .method-card:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.03);
    transform: translateY(-3px);
}

/* Header Row for Cards (Icon + Title) */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px; /* Отступ до описания */
}

.icon-box { 
    width: 56px; height: 56px; /* Чуть компактнее, но всё ещё крупно */
    background: rgba(212, 175, 55, 0.05); border-radius: 14px; 
    display: flex; align-items: center; justify-content: center; 
    overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.1);
    flex-shrink: 0;
}
.icon-box img { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }

.method-card h3, .step-card h3 { 
    margin: 0; 
    font-size: 1.25rem; 
    font-weight: 700;
    line-height: 1.2;
}

.method-card p, .step-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.5;
    margin: 0;
}

.step-num { 
    position: absolute; top: -10px; right: 10px; 
    font-size: 6rem; font-weight: 800; 
    color: rgba(255, 255, 255, 0.03); line-height: 1; 
    pointer-events: none;
}

/* --- Methods Grid (4 cols) --- */
.methods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }

/* --- Payouts Table --- */
.payouts-section { margin: 60px 0; }
.table-container { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid var(--border-subtle); font-weight: 700; }
.live-indicator { color: var(--ruby-red); display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.live-dot { width: 8px; height: 8px; background: var(--ruby-red); border-radius: 50%; box-shadow: 0 0 8px var(--ruby-red); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.payout-row { display: grid; grid-template-columns: 1fr auto 1fr; padding: 18px 30px; border-bottom: 1px solid var(--border-subtle); align-items: center; font-size: 0.95rem; }
.payout-row:last-child { border-bottom: none; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--gold-primary); }
.crypto-icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
.amount-badge { display: inline-flex; align-items: center; background: rgba(230, 25, 43, 0.1); color: var(--ruby-red); padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; }
.time-cell { color: var(--text-muted); text-align: right; }

/* --- FAQ --- */
.faq-section { margin: 60px 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
.faq-question { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
.faq-answer { padding: 0 25px 20px; color: var(--text-muted); display: none; font-size: 0.95rem; }
.faq-item.active .faq-answer { display: block; }
.faq-icon { color: var(--gold-primary); transition: 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* --- CTA Block --- */
.cta-block { background: linear-gradient(135deg, rgba(230,25,43,0.05), rgba(0,0,0,0)); border: 1px solid rgba(230, 25, 43, 0.2); border-radius: 24px; padding: 50px 20px; text-align: center; margin: 60px 0; }
.cta-block h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-block p { color: var(--text-muted); margin-bottom: 30px; }

/* --- SPA Pages --- */
.spa-page { display: none; padding: 40px 0; min-height: 80vh; animation: fadeIn 0.4s ease; }
.spa-page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-header { text-align: center; margin-bottom: 30px; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-content { max-width: 900px; margin: 0 auto; background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border-subtle); }
.page-content h2 { color: var(--gold-primary); margin: 30px 0 15px; font-size: 1.5rem; }
.page-content p { margin-bottom: 20px; color: var(--text-muted); line-height: 1.8; }
.page-content ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-muted); }
.page-content li { margin-bottom: 10px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.contact-card { background: rgba(255,255,255,0.02); padding: 25px; border-radius: 12px; border: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 15px; transition: 0.3s; cursor: pointer; }
.contact-card:hover { border-color: var(--gold-primary); background: rgba(212, 175, 55, 0.05); }
.contact-icon { width: 40px; height: 40px; background: rgba(212, 175, 55, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-primary); font-size: 1.2rem; }

/* --- Footer --- */
footer { padding: 30px 0; border-top: 1px solid var(--border-subtle); text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.footer-link { color: var(--text-muted); text-decoration: none; cursor: pointer; transition: 0.3s; }
.footer-link:hover { color: var(--gold-primary); }

/* --- Mobile Adapt --- */
@media (max-width: 1024px) { .methods-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .payout-row { grid-template-columns: 1fr; gap: 10px; text-align: center; }
    .user-cell { justify-content: center; } .time-cell { text-align: center; }
    .nav-flex { flex-direction: column; gap: 15px; } .nav-links { flex-wrap: wrap; justify-content: center; }
    .auth-wrapper { padding: 20px; margin: 0 10px 30px; }
    .methods-grid { grid-template-columns: 1fr; }
    .page-content { padding: 20px; }
    .icon-box { width: 48px; height: 48px; }
}