/* --- Variables & Reset --- */
:root {
    --bg-dark: #0a0b10;
    --bg-card: #15161c;
    --text-main: #e0e0e0;
    --text-muted: #8892b0;
    --primary: #cb6ce6;
    --primary-hover: #b04ad9;
    --secondary: #64ffda;
    --accent: #ff4757;

    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;

    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    --container-width: 1100px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 0;
}

.text-page {
    max-width: 800px;
}

.text-page ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.text-page li {
    margin-bottom: 8px;
}

.text-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.text-page p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* --- Header --- */
.site-header {
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--primary);
}

.site-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-header nav a {
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.8;
}

.site-header nav a:hover {
    opacity: 1;
    color: var(--primary);
}

.cta-nav {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 1 !important;
    box-shadow: 0 4px 15px rgba(203, 108, 230, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 108, 230, 0.5);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #1e1e2f 0%, var(--bg-dark) 70%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .highlight {
    display: block;
    font-size: 1.5rem;
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
    margin-top: 10px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary), #a239ca);
    color: white;
    box-shadow: 0 10px 30px rgba(162, 57, 202, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(162, 57, 202, 0.6);
}

.micro-explanation {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Preview Section --- */
.preview-section {
    padding: 60px 20px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

.preview-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.code-preview-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.code-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    transition: transform 0.2s;
}

.code-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.code-card.mini .code-text {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary);
    background: rgba(100, 255, 218, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.code-card.mini .code-reward {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.center-link {
    text-align: center;
}

.center-link a {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
}

.center-link a:hover {
    border-bottom-color: var(--primary);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-main);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    min-width: 600px;
}

.codes-table th,
.codes-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.codes-table th {
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.code-copy {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    user-select: all;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

/* Expired styles */
.codes-table.expired td {
    opacity: 0.6;
}

.codes-table.expired .muted {
    text-decoration: line-through;
    color: var(--text-muted);
    font-family: monospace;
}

.codes-table.expired tr:hover {
    background: transparent;
}

/* --- Hub Grid --- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hub-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: block;
}

.hub-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.hub-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

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

.hub-card.feature {
    grid-column: 1 / -1;
    background: linear-gradient(to right, #1f1f2e, var(--bg-card));
    border-left: 5px solid var(--primary);
}

/* --- Content Pages --- */
.page-codes h1,
.page-hub h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.trust-block {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.source-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 5px;
}

.faq-section {
    margin-top: 60px;
}

.faq-section details {
    background: var(--bg-card);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.2s;
}

.faq-section details:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-section summary {
    font-weight: bold;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.2rem;
}

.faq-section details[open] summary::after {
    content: '-';
}

.faq-section p {
    margin-top: 15px;
    color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
    background: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    margin-top: 80px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-disclaimer {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    background: #020203;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Mobile Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        /* Optional: Center match mobile vibes or keep left */
        text-align: left;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        padding-bottom: 30px;
    }

    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}



/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: none;
}

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

/* --- Supporting Sections (Homepage) --- */
.supporting-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.supporting-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.supporting-section p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* --- Feature Blocks (Homepage) --- */
.feature-block {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-block.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.feature-block h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.feature-list {
    margin-bottom: 30px;
    display: grid;
    gap: 15px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.feature-block p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.feature-cta {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid rgba(203, 108, 230, 0.3);
    transition: all 0.2s ease;
}

.feature-cta:hover {
    border-bottom-color: var(--primary);
    color: white;
}