/* --- COLORS & THEME --- */
:root {
    --bg-body: #111216;
    --bg-sidebar: #1b1d21;
    --bg-card: #232529;
    --bg-input: #0d0e10;

    --accent: #00b06f;
    --accent-hover: #009e63;

    --text-main: #ffffff;
    --text-muted: #9aa0a6;
    --border: rgba(255, 255, 255, 0.08);

    --font: 'Inter', sans-serif;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* --- NAVBAR --- */
.rbx-navbar {
    height: 60px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

/* --- BANNER AD --- */
.banner-ad-container {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-height: 110px;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-left: 10px;
}

.brand-logo span {
    color: var(--text-muted);
    font-weight: 400;
}

/* --- LAYOUT --- */
.layout-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 24px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-label.separator {
    margin-top: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    border-left: 3px solid var(--accent);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.icon {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    margin-top: auto;
}

.donate-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.donate-card:hover {
    border-color: var(--border);
    background-color: rgba(255, 255, 255, 0.05);
}

.donate-icon {
    font-size: 1.2rem;
}

.donate-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.donate-text small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.legal-text {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-top: 10px;
    text-align: center;
    line-height: 1.4;
    opacity: 0.7;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    width: 100%;
}

/* --- AD SIDEBAR --- */
.ad-sidebar {
    width: 320px;
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    overflow-y: auto;
    flex-shrink: 0;
}

.content-section {
    margin-bottom: 60px;
}

.section-intro {
    margin-bottom: 24px;
}

.section-intro h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-intro p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- CARDS --- */
.rbx-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.badge.accent {
    color: var(--accent);
    background: rgba(0, 176, 111, 0.1);
}

.card-body {
    padding: 24px;
}

.highlight-card {
    border: 1px solid rgba(0, 176, 111, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* --- GUIDE SECTION STYLES --- */
.info-alert {
    background: rgba(235, 87, 87, 0.1);
    border-left: 4px solid #EB5757;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content strong {
    color: #EB5757;
    font-size: 0.95rem;
}

.alert-content p {
    font-size: 0.85rem;
    color: #ddd;
    margin-top: 4px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-content ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.step-content li {
    margin-bottom: 4px;
}

/* --- INPUTS --- */
.input-container {
    margin-bottom: 20px;
}

.input-container label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

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

.input-icon,
.input-symbol {
    position: absolute;
    left: 16px;
    color: #666;
    pointer-events: none;
}

.input-icon {
    width: 20px;
    height: 20px;
}

.input-symbol {
    font-weight: 700;
}

.input-wrapper input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 14px 14px 44px;
    /* Space for icon */
    color: white;
    font-size: 1.1rem;
    font-family: var(--font);
    outline: none;
    transition: border 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--text-muted);
}

/* --- TOGGLES --- */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(18px);
}

.toggle-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- RESULTS --- */
.result-area {
    background-color: var(--bg-input);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
}

.result-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.result-value-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.currency {
    font-size: 1.5rem;
    color: var(--accent);
}

.unit {
    font-size: 1rem;
    color: var(--text-muted);
}

#rbxResult {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

/* --- GRID LAYOUTS --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Mini Results */
.result-mini {
    background-color: var(--bg-input);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.result-mini.highlight-border {
    border-color: var(--accent);
}

.result-mini-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-mini-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.icon-small {
    width: 20px;
    height: 20px;
}

.result-mini-sub {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

#taxAmount {
    color: #e55;
}

.copy-text-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.copy-text-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* --- REVENUE PROJECTOR & ROI --- */
.custom-select {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 14px 14px 44px;
    color: white;
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.custom-select:focus {
    border-color: var(--text-muted);
}

.projection-results {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: var(--bg-input);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.proj-item {
    text-align: center;
}

.proj-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.proj-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.proj-value.green {
    color: var(--accent);
}

.proj-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border);
}

.disclaimer {
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

.roi-metrics {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.metric-box {
    flex: 1;
    background-color: var(--bg-body);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.profit-positive {
    color: var(--accent) !important;
}

.profit-negative {
    color: #e55 !important;
}

/* --- ASSETS & PARTNERS --- */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.asset-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s;
}

.asset-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.asset-preview-container {
    position: relative;
    padding-bottom: 56.25%;
    background: black;
}

.sketchfab-embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sketchfab-embed-wrapper p {
    display: none !important;
}

.asset-details {
    padding: 20px;
}

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

.asset-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.tag {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.asset-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.asset-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.asset-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Game Cards (Spotlight) */
.game-card {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 16px;
    gap: 16px;
    align-items: center;
    transition: 0.2s;
}

.game-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ad-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.ad-placeholder span {
    font-size: 0.6rem;
    text-align: center;
    margin-top: 4px;
}

.game-info {
    flex: 1;
}

.game-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.dev-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

.play-btn:hover {
    background-color: var(--accent-hover);
}

.play-btn.outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.play-btn.outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

/* Partners */
.partner-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: 0.2s;
    text-decoration: none;
    gap: 16px;
}

.partner-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.03);
}

.partner-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-info {
    flex: 1;
}

.partner-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.partner-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.arrow-icon {
    transition: 0.2s;
    opacity: 0.6;
}

.partner-card:hover .arrow-icon {
    stroke: white;
    transform: translateX(4px);
    opacity: 1;
}

/* --- ADSTERRA WIDGET --- */
#container-68fc22d59e46e3b651430a479f7c12b6 {
    width: 100%;
    max-width: 300px;
}

/* --- RESPONSIVE --- */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

@media (max-width: 900px) {

    .grid-2-col,
    .assets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .projection-results,
    .roi-metrics {
        flex-direction: column;
    }

    .proj-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 99;
    }

    .sidebar.active {
        transform: translateX(260px);
    }

    .main-content {
        padding: 20px;
    }
}