:root {
    --bg-dark: #111111; /* Deep Charcoal Background */
    --card-bg: #1c1c1c; /* Lighter Charcoal Cards */
    --card-bg-hover: #252525; 
    --gold: #ffb400; /* Probemas Gold */
    --gold-dim: #e6a200;
    --text-primary: #ffffff; /* Pure White Headers */
    --text-secondary: #b0b0b0; /* Silver Body Text */
    --card-border: rgba(255, 180, 0, 0.1); /* Subtle Gold Border */
    --card-radius: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.2) blur(0px);
    opacity: 1.0;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(
        circle at center,
        rgba(17, 17, 17, 0.1) 0%,
        rgba(17, 17, 17, 0.3) 50%,
        rgba(17, 17, 17, 0.6) 100%
    );
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Admin Dashboard */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #000;
    color: #fff;
    padding: 0 30px;
    z-index: 5000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold);
    font-size: 0.85rem;
}

.admin-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-status .status-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
}

.admin-stats {
    display: flex;
    gap: 30px;
}

.logout-link {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.logout-link:hover {
    background: #ff0000;
}

.admin-dashboard {
    position: fixed;
    right: 20px;
    top: 70px;
    width: 350px;
    max-height: calc(100vh - 100px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--gold); /* Back to Gold default */
    padding: 25px;
    z-index: 4500;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    will-change: top, left; /* Hint for browser optimization */
}

/* Alert Effect Class - Only Green when there is a new message */
.admin-dashboard.alert-active {
    animation: greenPulse 1.5s infinite;
    border: 2px solid #4CAF50 !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 20px rgba(76, 175, 80, 0.4);
}

.admin-dashboard.alert-active .dashboard-header h3 {
    color: #4CAF50 !important;
}

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.dashboard-header h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--gold); /* Back to Gold default */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rate Controls Styling - Now in Admin Bar */
.admin-rate-controls {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.rate-control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.rate-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
}

.rate-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.rate-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.rate-val {
    font-weight: 800;
    font-size: 0.85rem;
    min-width: 45px;
    text-align: center;
    color: #fff;
}

.admin-active-chats {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-preview {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-preview:hover {
    border-color: var(--gold);
    background: var(--card-bg-hover);
}

/* Highlight for Last Message */
.chat-preview.new-message {
    border-color: #4CAF50;
    animation: previewPulse 2s infinite;
    position: relative;
}

.chat-preview.new-message::after {
    content: 'NEW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

@keyframes previewPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.3); }
    70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.preview-user {
    font-weight: 800;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

.preview-msg {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-chats {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 20px;
}

/* Admin Reply Window */
.admin-reply-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
}

.admin-chat-log {
    flex: 1;
    min-height: 250px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-chat-log .msg {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    max-width: 90%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.admin-chat-log .msg.user { background: var(--card-bg-hover); color: #fff; align-self: flex-start; }
.admin-chat-log .msg.admin { background: var(--gold); color: #000; align-self: flex-end; font-weight: 700; }

.reply-input-area {
    display: flex;
    gap: 8px;
}

.reply-input-area input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px;
    color: #fff;
    font-size: 0.8rem;
}

.reply-input-area button {
    background: var(--gold);
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(17, 17, 17, 0.85);
    border-bottom: 1px solid var(--card-border);
    transition: top 0.3s ease;
}

body.admin-mode .navbar {
    top: 50px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(66, 153, 225, 0.3));
    transition: var(--transition);
}

.logo-icon:hover {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}
.login-btn {
    display: none !important;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--gold);
    display: block;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px; /* Increased to fit Get Started button */
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 1.5rem; /* Reduced to fit more content */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bento-card:hover {
    border-color: var(--gold);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Card Sizing */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.card-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Specific Card Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle {
    background: var(--bg-dark);
    padding: 4px;
    border-radius: 12px;
    display: flex;
}

.toggle button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.toggle button.active {
    background: var(--card-bg);
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calculator-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    outline: none;
}

.input-group input:focus {
    border-color: var(--gold);
}

.quick-select {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.select-btn {
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid var(--card-border);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.select-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.price-display {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
}

.primary-cta {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.primary-cta:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.rate-display {
    display: flex;
    flex-direction: column;
}

.rate-display .rate {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
}

.trend.up {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

.trust-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
}
.payments-card {
    grid-column: 2 / span 2;
    text-align: center;
    align-items: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pay-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.pay-icon:hover {
    transform: translateY(-3px);
}

.crypto-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

/* Specific size for BTC */
.pay-icon[title="Bitcoin"] .crypto-img {
    width: 40px;
    height: 40px;
}

.text-icon {
    font-size: 24px;
    height: 32px;
    display: flex;
    align-items: center;
}

.pay-icon span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Footer */
.payment-icons span {
    background: var(--bg-dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Chat Widget (Probemas Style) */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.chat-label {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    transition: var(--transition);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
}

.chat-toggle:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.chat-window {
    position: absolute;
    bottom: 140px;
    right: 0;
    width: 370px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--gold);
    padding: 1.5rem;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-avatar {
    position: relative;
    width: 45px;
    height: 45px;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
}

.online-dot-pulsing {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.header-text h3 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.header-text span {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

.close-chat {
    color: #000;
    opacity: 0.5;
    font-size: 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    background: #f8f8f8;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.message.system {
    align-self: center;
    background: transparent;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

.message.agent {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: var(--gold);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    color: #333;
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: var(--gold);
    padding: 5px;
    cursor: pointer;
}

.chat-input-area button svg {
    width: 24px;
    height: 24px;
}

.login-btn {
    display: none !important;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    padding: 3rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--gold);
}

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

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .card-large, .card-medium, .card-small {
        grid-column: span 1;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .navbar {
        padding: 1rem;
    }
    .nav-links {
        display: none;
    }
}
