@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-black: #000000;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-elevated: #141414;
    --bg-input: #1e1e1e;
    --accent: #f5c518;
    --accent-hover: #ffda3e;
    --accent-dim: rgba(245, 197, 24, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(245, 197, 24, 0.35);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f5c518;
    --sidebar-width: 260px;
    --radius: 14px;
    --radius-pill: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Bootstrap dark overrides */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg-black);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border);
    --bs-primary: var(--accent);
    --bs-primary-rgb: 245, 197, 24;
}

.form-control,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-input);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    border: none;
    color: #000;
    font-weight: 700;
    border-radius: 10px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.btn-glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    color: var(--accent);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: #000;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.card-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 700;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Alerts */
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning,
.pending-banner {
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

/* Tables */
.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(245, 197, 24, 0.06);
}

.table thead th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-color: var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    border-color: var(--border);
}

.badge.bg-primary {
    background: var(--accent) !important;
    color: #000 !important;
}

.badge.bg-info {
    background: var(--bg-elevated) !important;
    color: var(--accent) !important;
    border: 1px solid var(--border-accent);
}

.badge.bg-secondary {
    background: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
}

.badge.bg-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: var(--success) !important;
}

.badge.bg-warning {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: var(--danger) !important;
}

/* Auth */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(245, 197, 24, 0.08) 0%, transparent 60%);
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}

.auth-box h2,
.auth-box h3 {
    color: var(--text-primary);
}

.auth-box .link-primary,
.auth-box a {
    color: var(--accent);
}

/* Public navbar & hero */
.navbar {
    background: var(--bg-black) !important;
    border-bottom: 1px solid var(--border);
}

.navbar-dark .nav-link {
    color: var(--text-secondary) !important;
}

.navbar-dark .nav-link:hover {
    color: var(--accent) !important;
}

.navbar-brand {
    color: var(--accent) !important;
    font-weight: 800;
}

.hero {
    background: var(--bg-black);
    background-image: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
    color: var(--text-primary);
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

.hero p {
    color: var(--text-secondary);
}

.hero .btn-light {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border: none;
}

.hero .btn-outline-light {
    border-color: var(--border);
    color: var(--text-primary);
}

.hero .btn-outline-light:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}

section.bg-light {
    background: var(--bg-elevated) !important;
}

section .card {
    background: var(--bg-card);
}

section .card-body h5,
section .card-body p {
    color: var(--text-primary);
}

section .card-body p {
    color: var(--text-secondary);
}

footer {
    background: var(--bg-black);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Dashboard */
.dashboard-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin: 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 3px solid var(--accent);
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-card .number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}

/* App layout */
.app-body {
    background: var(--bg-black);
    min-height: 100vh;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
}

.sidebar-user {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-elevated);
    margin: 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.sidebar-user i {
    font-size: 1.5rem;
    color: var(--accent);
}

.sidebar-user small {
    display: block;
    color: var(--text-muted);
    text-transform: capitalize;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.2rem;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.sidebar-link.active i {
    color: #000;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger) !important;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-black);
}

.app-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-title {
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-notify {
    color: var(--accent);
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
}

.notify-dot {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #000;
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
}

.app-content {
    padding: 1.5rem;
    flex: 1;
}

/* Category / platform filter pills (reference design) */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.filter-pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.filter-pill input {
    display: none;
}

.platform-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-chip:hover,
.platform-chip.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.platform-chip input {
    display: none;
}

/* Creator marketplace cards (reference design) */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.market-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.market-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}



.market-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
}
.market-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #000;
    border: 2px solid var(--bg-card);
}

.market-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.market-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.market-meta .dot {
    margin: 0 0.35rem;
    opacity: 0.5;
}
.market-card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.market-card-actions .form-control {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.market-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

.market-price-mini {
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
 
}

.market-price-mini .lbl {
    color: var(--text-muted);
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.market-price-mini .val {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.market-price-mini.owner .val {
    color: var(--accent);
}

.price-match {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.price-match.aligned {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.price-match.gap {
    background: var(--accent-dim);
    color: var(--accent);
}

.search-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-top: 1rem;
}

.search-toolbar .form-group {
    flex: 1;
    min-width: 140px;
}

.page-title-bar {
    margin-bottom: 1.5rem;
}

.page-title-bar h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.page-title-bar p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.35s ease-out;
}

@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
    }

    .app-main {
        margin-left: 0;
    }

    .creator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .market-price-row {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 1050;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-close {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        z-index: 1100;
    }
}

.logo{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffee00;
    padding: 3px;
    background: #fff;
    filter: drop-shadow(0 0 15px rgba(240, 224, 6, 0.8));
    transition: all 0.3s ease;
}

.logo:hover{
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(240, 224, 6, 0.8));
}



.market-card{transition:all .3s ease;}
.market-card.expanded-card{min-height:650px;}
.request-box{
    display:none;
    margin-top:10px;
    padding:10px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--bg-elevated);
}

.request-box.show{
    display:block;
}



.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-responsive .table {
    min-width: 900px;
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .table-responsive .table {
        min-width: 1000px;
    }
}
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.app-main {
    width: 100%;
    overflow-x: hidden;
}

.app-content {
    width: 100%;
    overflow-x: hidden;
}

