:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --surface-strong: #2a2a2a;
    --border: #333;
    --text: #ffffff;
    --muted: #888;
    --primary: #00ff00;
    --primary-soft: #003300;
    --secondary: #ff4444;
    --accent: #ff6b6b;
    --shadow: 0 24px 60px rgba(0, 255, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    padding-top: 80px;
    padding-bottom: 90px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(180deg, #020202 0%, #080808 100%);
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 -1px 0 rgba(0, 255, 0, 0.08);
}

.guest-top-panel .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 60px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--primary);
    z-index: 2;
    text-decoration: none;
}

.site-logo {
    height: 2.8rem;
    width: auto;
    display: block;
    border-radius: 999px;
    object-fit: contain;
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 255, 0, 0.25));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 24px rgba(0, 255, 0, 0.25));
    }
}

.site-nav {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-nav a,
.site-nav a,
.site-nav .btn {
    color: #35ff47;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.site-nav .btn-primary,
.site-nav .btn-secondary {
    color: white !important;
}

.site-nav a:hover,
.site-nav .btn:hover {
    color: #ffffff;
}

.btn-secondary {
    background: #0e5e0e;
    color: #e6ffe6;
    border-color: rgba(0, 255, 0, 0.18);
}

.btn-primary {
    background: #05d600;
    color: #020202;
    box-shadow: 0 18px 40px rgba(5, 214, 0, 0.22);
}

.alert-panel {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.badge {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.3rem;
    min-width: 6.5rem;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 18px 40px rgba(0, 255, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(15, 23, 42, 0.12);
}

.page-content {
    padding: 2rem 0 3rem;
}

.hero-panel,
.section-panel,
.dashboard-grid,
.admin-grid {
    display: grid;
    gap: 1.75rem;
}

.hero-panel {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
}

.hero-copy {
    max-width: 560px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    line-height: 1.02;
}

.hero-copy p {
    margin: 1.5rem 0 1.75rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 46rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-image {
    display: grid;
    gap: 1rem;
}

.hero-visual {
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.12);
    border-radius: 28px;
    text-align: center;
}

.hero-visual p {
    margin: 1rem 0 0;
    color: var(--muted);
    max-width: 32rem;
}

.hero-logo {
    max-width: 240px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 255, 0, 0.12);
}

.services-section {
    background: var(--surface-strong);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 0 0 0.5rem;
    color: var(--primary);
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid rgba(15,23,42,0.08);
    width: fit-content;
    font-weight: 600;
    color: var(--text);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card,
.card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.product-card img,
.submission-card img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.08);
}

.product-card-body,
.card-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: space-between;
}

.product-card-body h3,
.card-body h3,
.auth-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.product-card-body p {
    flex: 1;
    color: var(--muted);
}

.product-card-body p,
.card-body p,
.muted,
.auth-card p,
.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.product-card-body .btn,
.auth-card .btn,
.form-panel .btn,
.submission-card .btn {
    margin-top: 0;
    align-self: flex-start;
    margin-top: auto;
}

.product-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(15, 23, 42, 0.12);
}

.section-head {
    margin-bottom: 1rem;
}

.section-head h2,
.section-head h3 {
    margin: 0 0 0.5rem;
    color: var(--primary);
}

.section-head p {
    color: #b4ffb4;
}

.content-block {
    padding: 1.75rem;
    background: rgba(0, 70, 0, 0.18);
    border: 1px solid rgba(0, 255, 0, 0.14);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, 0.06);
}

.content-block p {
    margin-bottom: 1rem;
    color: #d2ffd2;
    line-height: 1.8;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block a {
    color: var(--primary);
    text-decoration: underline;
}

.auth-panel {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 10rem);
}

.auth-card {
    max-width: 420px;
    padding: 2rem;
}

.auth-card h2 {
    margin-top: 0;
}

.stacked-form label {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1rem;
}

.checkbox-label input {
    margin-top: 0.2rem;
    width: auto;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.stacked-form input,
.stacked-form textarea,
.message-form input,
.message-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #121212;
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.stacked-form input:focus,
.stacked-form textarea:focus,
.message-form input:focus,
.message-form textarea:focus {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, 0.2), 0 0 0 3px rgba(0, 255, 0, 0.08);
    outline: none;
}

.chat-container {
    max-height: 600px;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.chat-message {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.chat-message.user-message .message-bubble {
    align-self: flex-start;
    background: var(--primary-soft);
    border-radius: 18px 18px 18px 4px;
}

.chat-message.admin-message .message-bubble {
    align-self: flex-end;
    background: var(--primary);
    color: black;
    border-radius: 18px 18px 4px 18px;
}

.message-bubble {
    max-width: 70%;
    margin-bottom: 0.5rem;
}

.message-content p {
    margin: 0 0 0.5rem;
    padding: 0.75rem 1rem;
    line-height: 1.4;
}

.message-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    padding: 0 1rem 0.5rem;
    opacity: 0.8;
}

.reply-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.reply-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
}

.reply-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.no-messages {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 99;
}

.chat-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.chat-drawer {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, 95vw);
    max-height: 85vh;
    background: var(--surface);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    transform: translateY(120%);
    transition: transform 0.25s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.chat-drawer.open {
    transform: translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.25rem;
    background: var(--surface-strong);
}

.chat-header h3 {
    margin: 0 0 0.35rem;
}

.chat-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.chat-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.chat-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-thread {
    display: grid;
    gap: 0.75rem;
}

.chat-message {
    max-width: 100%;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
}

.chat-message.user-message {
    background: var(--primary-soft);
    border-color: rgba(0, 255, 0, 0.12);
}

.chat-message.admin-message {
    background: var(--surface);
}

.chat-label {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.chat-meta {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.chat-empty {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--surface-strong);
    text-align: center;
    color: var(--muted);
}

.chat-form {
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface-strong);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.chat-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.summary-panel {
    padding: 1.75rem;
}

.summary-panel h2 {
    margin-top: 0;
}

.summary-panel .muted,
.summary-panel span {
    color: var(--muted);
}

.earnings-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.summary-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.summary-list div {
    padding: 1rem;
    border-radius: 18px;
    background: var(--surface-strong);
}

.summary-list strong {
    display: block;
    font-size: 1.35rem;
}

.form-panel {
    padding: 1.75rem;
}

.admin-upload-form {
    display: grid;
    gap: 1rem;
}

.admin-upload-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

.admin-upload-form .form-row.full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.admin-upload-form .form-row.full label {
    min-width: 0;
}

.admin-upload-form .form-row.full .btn {
    width: fit-content;
    justify-self: start;
}

.admin-upload-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-upload-form input[type="file"] {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #121212;
    color: #fff;
}

.admin-upload-form button {
    align-self: stretch;
    min-height: 52px;
}

.btn-small {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    border-radius: 999px;
    min-height: auto;
}

.admin-upload-form .btn-small {
    align-self: center;
    min-height: 40px;
}

@media (max-width: 840px) {
    .admin-upload-form .form-row {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Compress gap slightly for mobile since cards are tighter */
    }
}

.submission-list,
.admin-list {
    display: grid;
    gap: 1rem;
}

.submission-card,
.payout-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.submission-card img {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    object-fit: cover;
}

.submission-card-proof {
    flex-wrap: wrap;
    align-items: flex-start;
}

.submission-card-proof .submission-details {
    display: flex;
    flex: 1;
    gap: 2rem;
    flex-wrap: wrap;
}

.submission-card-proof .submission-details div {
    flex: 1 1 220px;
}

.submission-card-proof .submission-image {
    max-width: 220px;
    min-width: 220px;
}

.submission-card-proof .submission-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .submission-card,
    .payout-card {
        flex-direction: column;
        align-items: stretch;
    }

    .submission-card-proof .submission-details {
        gap: 1rem;
    }

    .submission-card-proof .submission-image {
        max-width: 100%;
        min-width: auto;
    }
}

.admin-grid {
    grid-template-columns: 1.1fr 1fr;
}

.panel {
    padding: 1.75rem;
}

.admin-chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.chat-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 65vh;
    min-height: 560px;
}

.chat-side-title {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.chat-user-list {
    display: flex;
    flex-direction: column;
}

.chat-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.chat-user:hover,
.chat-user.active {
    background: rgba(0, 255, 0, 0.08);
}

.chat-right-panel {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    height: 65vh;
    min-height: 560px;
}

.chat-right-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.chat-right-body {
    padding: 1rem 1.25rem;
    background: var(--surface-strong);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.chat-message {
    display: flex;
}

.chat-message.user-message {
    justify-content: flex-start;
}

.chat-message.admin-message {
    justify-content: flex-end;
}

.message-bubble {
    background: var(--surface);
    border-radius: 20px;
    max-width: 70%;
}

.chat-message.user-message .message-bubble {
    background: #e3f2fd;
    border-radius: 20px 20px 20px 4px;
}

.chat-message.admin-message .message-bubble {
    background: var(--primary);
    color: black;
    border-radius: 20px 20px 4px 20px;
}

.message-content p {
    margin: 0;
    padding: 0.9rem 1rem;
    line-height: 1.5;
}

.message-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 1rem 0.7rem;
    display: block;
}

.chat-right-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface-strong);
}

.reply-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.reply-form input,
.chat-form input {
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.reply-form input:focus,
.chat-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.12);
}

.no-messages {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid rgba(0, 255, 0, 0.15);
    padding: 1rem 0;
    background: #000000;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.app-main {
    min-height: calc(100vh - 170px);
}

.auth-inline-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.flash-wrap {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.flash {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid;
    font-weight: 600;
}

.flash-success {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.5);
    color: #9effc0;
}

.flash-error {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.5);
    color: #ffb5af;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    color: var(--primary);
    font-size: 0.9rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-paid {
    background: rgba(46, 204, 113, 0.15);
    color: #9effc0;
}

.status-unpaid {
    background: rgba(255, 59, 48, 0.15);
    color: #ffb5af;
}

.admin-user-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-user-toolbar input,
.admin-user-toolbar select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #121212;
    color: var(--text);
}

.admin-user-toolbar input:focus,
.admin-user-toolbar select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.08);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.page-content {
    padding: 2rem 0 5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

@media (max-width: 920px) {
    .hero-panel,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-right-panel,
    .chat-sidebar {
        min-height: auto;
    }

    .chat-right-panel {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    body.guest-home {
        padding-top: 12px;
    }

    body.guest-home .page-content {
        padding-top: 0.35rem;
    }

    body.guest-home .home-hero {
        gap: 0.7rem;
    }

    body.guest-home .home-hero .eyebrow {
        margin-bottom: 0.55rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    body.guest-home .home-hero .hero-copy h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1.02;
    }

    body.guest-home .home-hero .hero-copy p {
        margin: 0.8rem 0 0.95rem;
        line-height: 1.55;
    }

    body.guest-home .home-hero .hero-actions {
        gap: 0.55rem;
    }

    body.guest-home .home-hero .hero-actions .btn {
        padding: 0.7rem 1rem;
        min-width: 0;
    }

    body.guest-home .home-hero .hero-visual {
        padding: 1.1rem;
    }

    body.guest-home .home-hero .hero-logo {
        max-width: 160px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .site-nav a,
    .site-nav .btn {
        width: auto;
        min-width: 0;
        white-space: normal;
    }

    .hero-panel,
    .services-grid,
    .product-grid,
    .admin-grid,
    .admin-chat-layout {
        gap: 1rem;
    }

    .product-card,
    .auth-card,
    .card,
    .chat-sidebar,
    .chat-right-panel,
    .site-footer,
    .site-header {
        border-radius: 20px;
    }

    .chat-drawer {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .chat-header,
    .chat-form,
    .reply-form {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-form,
    .reply-form {
        gap: 0.75rem;
    }

    .chat-form input,
    .reply-form input,
    .chat-form button,
    .reply-form button {
        width: 100%;
    }

    .chat-right-body {
        padding: 1rem;
    }

    .chat-message {
        justify-content: flex-start;
    }

    .message-bubble {
        max-width: 100%;
    }

    .chat-user {
        padding: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    body.guest-home {
        padding-top: 8px;
    }

    body.guest-home .home-hero .hero-actions .btn {
        flex: 1 1 100%;
        max-width: none !important;
    }

    .site-nav {
        gap: 0.5rem;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-body {
        padding: 0.75rem;
    }

    .chat-right-header,
    .chat-sidebar {
        padding: 0.75rem;
    }

    .chat-sidebar {
        border-radius: 0;
    }

    .admin-user-toolbar {
        grid-template-columns: 1fr;
    }
}

.wa-chat-bg {
    background-color: #0b141a !important;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z" fill="%231f2c34" fill-opacity="0.4"/%3E%3C/g%3E%3C/svg%3E');
}

.wa-bubble-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    width: 100%;
}

.wa-sent {
    align-self: flex-end;
    background-color: #005c4b;
    color: #e9edef;
    border-radius: 7.5px 0px 7.5px 7.5px;
    max-width: 85%;
    padding: 6px 7px 8px 9px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(11,20,26,.13);
}

.wa-received {
    align-self: flex-start;
    background-color: #202c33;
    color: #e9edef;
    border-radius: 0px 7.5px 7.5px 7.5px;
    max-width: 85%;
    padding: 6px 7px 8px 9px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(11,20,26,.13);
}

.wa-text {
    font-size: 14.2px;
    line-height: 19px;
    margin: 0;
    word-wrap: break-word;
    display: block;
}

.wa-time {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    float: right;
    margin-top: 4px;
    margin-left: 10px;
    line-height: 15px;
}

/* BigWinOdds Style Button */
.btn-chat-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2ecc71;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-chat-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.btn-chat-now svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* Animations and Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff3b30;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    padding: 2px 5px;
    border-radius: 999px;
    margin-left: 6px;
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4);
}

@keyframes pulse-badge-anim {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.9); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.pulse-badge {
    animation: pulse-badge-anim 2s infinite;
}

/* Toast logic */
.toast-float {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    border: 2px solid #2ecc71;
    color: #2ecc71;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    0% { top: -100px; opacity: 0; }
    100% { top: 30px; opacity: 1; }
}

/* ODIBETS CLONE HEADER CSS */
.odibets-header {
    background: #048C2e; /* Pure Odibets Green */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.odi-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    position: relative;
    cursor: pointer;
    height: 100%;
}

.odi-nav-item svg {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
}

.odi-nav-logo {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    height: 100%;
}

.odi-nav-logo a {
    position: absolute;
    top: 5px; /* Bulge out vertically */
    display: block;
}

.odi-nav-logo img {
    border-radius: 40%; /* Squircle */
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid #1a1a1a; /* Blend with body dark */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: #048C2e;
    padding: 2px;
}

.odi-dropdown {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: #1a1a1a;
    min-width: 220px;
    box-shadow: 5px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 2001;
    border-radius: 0 0 10px 0;
    border-right: 2px solid #048C2e;
    border-bottom: 2px solid #048C2e;
}

.odi-dropdown a {
    color: #35ff47;
    padding: 16px 20px;
    text-decoration: none;
    display: block;
    font-weight: bold;
    border-bottom: 1px solid #333;
    font-size: 1.05rem;
}

.odi-dropdown a:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.odi-dropdown.show {
    display: block;
}

@media (max-width: 840px) {
    /* Stack hero panel vertically */
    .hero-panel {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-logo {
        max-width: 200px;
    }
    
    /* Ensure Header wraps properly on very tiny devices */
    .site-header .container {
        justify-content: center !important;
        gap: 10px !important;
    }

    /* Keep services strictly at 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .service-card {
        padding: 1rem 0.5rem !important;
    }
    .service-card h3 {
        font-size: 0.95rem !important;
    }
    .service-card p {
        font-size: 0.8rem !important;
    }
    .service-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}
