:root {
    --tb-ink: #0f172a;
    --tb-muted: #64748b;
    --tb-line: #e2e8f0;
    --tb-surface: #ffffff;
    --tb-bg: #f1f5f9;
    --tb-accent: #0d9488;
    --tb-accent-soft: #ccfbf1;
    --tb-nav: #0b1220;
    --tb-radius: 0.65rem;
}

body {
    background:
        radial-gradient(1200px 400px at 10% -10%, rgba(13, 148, 136, 0.08), transparent 55%),
        radial-gradient(900px 360px at 90% 0%, rgba(15, 23, 42, 0.05), transparent 50%),
        var(--tb-bg);
    color: var(--tb-ink);
    font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    font-size: 0.95rem;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.app-nav {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.app-nav-inner {
    gap: 0.75rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff !important;
    text-decoration: none;
    padding: 0.15rem 0;
}

.app-brand:hover {
    color: #fff !important;
    opacity: 0.95;
}

.app-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    background: linear-gradient(145deg, #14b8a6, #0f766e);
    color: #ecfeff;
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(13, 148, 136, 0.35);
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-brand-name {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.app-brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-nav-toggler {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.45rem;
    padding: 0.35rem 0.5rem;
}

.app-nav-toggler .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
    width: 1.15rem;
    height: 1.15rem;
}

.app-nav-links {
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.app-nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.95rem !important;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.app-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.app-nav-link.is-active {
    color: #042f2e !important;
    background: #5eead4;
    box-shadow: 0 2px 10px rgba(45, 212, 191, 0.35);
}

.app-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-nav-user {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.2rem 0.35rem;
}

.app-btn-logout {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    background: transparent;
}

.app-btn-logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.app-main {
    max-width: 1600px;
}

@media (max-width: 991.98px) {
    .app-nav-links {
        border-radius: 0.75rem;
        margin-top: 0.75rem;
        padding: 0.4rem;
    }
    .app-nav-link {
        border-radius: 0.5rem;
    }
    .app-nav-actions {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.table-panel {
    background: var(--tb-surface);
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.table-panel .table {
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
}
.table-panel thead th {
    background: #f8fafc;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tb-muted);
    border-bottom-color: var(--tb-line);
}
.price-down { color: #0a7a3e; font-weight: 600; }
.price-up { color: #b42318; font-weight: 600; }
.stat-box {
    background: var(--tb-surface);
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.stat-box .label { color: var(--tb-muted); font-size: 0.8rem; }
.stat-box .value {
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.product-link { max-width: 420px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.btn-product-open {
    flex-shrink: 0;
    border: 1px solid #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-product-open:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}
.filter-bar {
    background: var(--tb-surface);
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.badge-store-itopya { background: #1d4ed8; }
.badge-store-gamergen { background: #7c3aed; }
.badge-store-incehesap { background: #0f766e; }
.btn-outline-teal {
    color: #0f766e;
    border-color: #0f766e;
}
.btn-outline-teal:hover {
    color: #fff;
    background: #0f766e;
    border-color: #0f766e;
}
.ih-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    max-height: 420px;
    overflow: auto;
}
.ih-cat-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}
.ih-cat-item:last-child { border-bottom: 0; }
.ih-cat-item:hover { background: #f8fafc; }
.ih-cat-item input { margin: 0; }
.ih-cat-item span { flex: 1; }
.pagination-bar .pagination .page-link { min-width: 2.25rem; text-align: center; }
td.small { white-space: normal; line-height: 1.25; }

h1, h2, .h5, .h6 {
    font-family: Outfit, "Source Sans 3", sans-serif;
    letter-spacing: -0.02em;
}
