@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
    --bg-main: #060b19;        /* Deep midnight blue RPG canvas */
    --bg-surface: #ffffff;     /* HIGH CONTRAST: High-energy neon gold/amber container */
    --accent-cyber: #060b19;   /* Midnight blue accents for inner elements */
    --accent-action: #00f2ff;  /* Secondary electric cyan for focused states */
    --text-primary: #060b19;   /* Deep midnight blue text for ultra-sharp reading on gold */
    --text-muted: #475569;     /* Slate for secondary sub-labels */
    --input-bg: rgba(6, 11, 25, 0.07); /* Tinted, translucent inputs blending into the gold container */
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    
    /* Immersive back-glow radiating from the midnight abyss */
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 183, 3, 0.12) 0%, transparent 60%),
        var(--bg-main);
}

.dashboard-shell,
.seller-dashboard {
    width: min(1180px, 100%);
    max-width: 1180px;
    margin: 0 auto;
}

.dashboard-main {
    min-height: calc(100vh - 4rem);
}

/* ── Login Wrapper ── */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

/* ── Login Card (High-Contrast Gold Box on Midnight Blue Canvas) ── */
.login-card {
    width: 100%;
    padding: 3rem 2.2rem 2.5rem;
    background: var(--bg-surface);
    border: none;              /* Erased harsh box lines */
    border-radius: 12px;       /* Normal rectangular box rounding */
    
    /* Strong casting shadow to pull the container forward */
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 183, 3, 0.25);
    position: relative;
}

/* Top brand status line (Laser accent) */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* SECURE_NODE REMOVED COMPLETELY FROM HERE */

/* ── Title (Sleek Gaming Header) ── */
.login-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* ── Form Group ── */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Premium Dark-Tinted Input Box inside Gold Surface */
.form-group input {
    width: 100%;
    padding: 0.95rem 1.2rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: none; 
    border-radius: 8px;        
    outline: none;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(6, 11, 25, 0.4);
    letter-spacing: 0.5px;
}

.form-group input:focus {
    background-color: rgba(6, 11, 25, 0.12);
    /* High contrast cyan active ring */
    box-shadow: 0 0 0 2px var(--text-primary);
}

/* ── Primary Action Button (Solid Midnight Onyx Shop CTA) ── */
.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background-color: var(--accent-cyber);
    color: #ffffff; 
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: #121b30;
    box-shadow: 0 10px 20px -5px rgba(6, 11, 25, 0.4);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* ── Connection Splitter ── */
.no-account {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 1.5px;
}

.no-account::before,
.no-account::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(6, 11, 25, 0.2); 
}

/* ── Alternate Action Links (Contrast Sub-buttons) ── */
.register-options {
    display: flex;
    gap: 14px;
}

.register-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.9rem 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: midnightblue;
    color: white;
    border: none; 
    border-radius: 8px;
    transition: all 0.2s ease;
}

.register-link:hover {
    background-color: purple;
}

.form-status {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

select,
textarea {
    width: 100%;
    padding: 0.95rem 1.2rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    outline: none;
    resize: vertical;
}

select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px var(--text-primary);
}

.dashboard-shell {
    width: 100%;
    max-width: 960px;
    padding: 1.5rem;
    padding-bottom: 8rem;
    padding: 2.5rem;
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-kicker {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    margin-top: 0.75rem;
    color: var(--text-muted);
    max-width: 580px;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dashboard-link {
    min-width: 140px;
    padding: 0.9rem 1rem;
}

.dashboard-action {
    margin-top: 0;
    width: auto;
    min-width: 120px;
}

.dashboard-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-box {
    background: rgba(6, 11, 25, 0.05);
    border-radius: 10px;
    padding: 1rem;
}

.info-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.dashboard-section {
    background: rgba(6, 11, 25, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pill {
    background: var(--accent-cyber);
    color: white;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.shop-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.shop-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 8px 20px rgba(6, 11, 25, 0.06);
}

.shop-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state-text {
    color: var(--text-muted);
    margin-top: 0.75rem;
}

@media (max-width: 760px) {
    .dashboard-header,
    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-info {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-link,
    .dashboard-action {
        width: 100%;
    }
}

.seller-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-sidebar {
    display: none;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-mark {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #00f2ff;
}

.account-pill {
    display: inline-block;
    padding: 0.6rem 1rem;
    border: 1px solid #f8e71c;
    border-radius: 999px;
    color: #f8e71c;
    font-size: 0.8rem;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-link.active,
.sidebar-link:hover {
    background: rgba(0, 242, 255, 0.15);
    color: #ffffff;
}

.sidebar-logout {
    display: none;
}

.dashboard-main {
    background: radial-gradient(circle at top left, rgba(0, 242, 255, 0.08), transparent 40%), var(--bg-main);
    padding: 2rem;
    padding-bottom: 6.5rem;
}

.dashboard-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0b0f1d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    z-index: 50;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
}

.footer-link.active,
.footer-link:hover {
    background: rgba(0, 242, 255, 0.18);
    color: #ffffff;
}

.footer-logout {
    padding: 0.75rem 1rem;
    border: 1px solid #ff2f6d;
    background: transparent;
    color: #ff2f6d;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    border-radius: 999px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .dashboard-main {
        padding-bottom: 7.5rem;
    }

    .footer-nav {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .footer-nav {
        gap: 0.35rem;
    }

    .footer-link {
        flex: 1 1 45%;
    }

    .dashboard-footer {
        padding: 0.75rem 0.9rem;
    }
}

.dashboard-topbar {
    margin-bottom: 1.5rem;
}

.dashboard-page-title {
    color: white;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 18px;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8ca3b5;
    margin-bottom: 0.8rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.activity-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.75rem;
    color: white;
}

.activity-header h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.activity-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.activity-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 14px;
    color: #dde4f1;
    line-height: 1.55;
}

.activity-list strong {
    color: #00f2ff;
}

.product-panel {
    margin-bottom: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    color: white;
}

.product-panel-header h2 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: #ffffff;
}

.product-form {
    display: grid;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-form .form-group {
    margin-bottom: 0;
}

.product-form label {
    display: block;
    margin-bottom: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
}

.product-form input,
.product-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
}

.product-form input::placeholder,
.product-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.product-form input:focus,
.product-form textarea:focus {
    outline: none;
    border-color: #00f2ff;
    box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.12);
}

.current-listings h2 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.14);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
    color: white;
}

.product-card-item:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
}

.product-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #00f2ff;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #10b981;
}

.product-card-stock {
    color: #94a3b8;
}

.product-card-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-card-empty {
    color: #cbd5e1;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.table-card,
.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    color: white;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 1rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-table th {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-table td {
    color: #e2e8f0;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.table-button {
    padding: 0.5rem 0.85rem;
    background: transparent;
    border: 1px solid #f8e71c;
    color: #f8e71c;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
}

.empty-row {
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
}

.review-list {
    display: grid;
    gap: 1rem;
}

.review-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-item-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-stars {
    color: #f8e71c;
    font-size: 0.95rem;
}

.review-text {
    color: #cbd5e1;
    line-height: 1.6;
}

.review-author {
    color: #00f2ff;
}

@media (max-width: 980px) {
    .seller-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-link {
        flex: 1 1 45%;
    }
}

@media (max-width: 720px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        flex-direction: column;
    }

    .sidebar-link {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
