:root {
    --bg-main: #0a0e17;
    --bg-card: rgba(16, 24, 40, 0.75);
    --bg-card-hover: rgba(22, 34, 56, 0.85);
    --border-color: rgba(56, 189, 248, 0.18);
    --border-glow: rgba(56, 189, 248, 0.45);
    --color-cyan: #38bdf8;
    --color-neon: #00f2fe;
    --color-emerald: #10b981;
    --color-purple: #8b5cf6;
    --color-gold: #f59e0b;
    --color-red: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-logo span {
    background: linear-gradient(135deg, #38bdf8 0%, #00f2fe 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-cyan);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Role Badges */
.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-owner {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--color-purple);
    color: #c084fc;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.badge-admin {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid var(--color-cyan);
    color: #7dd3fc;
}

.badge-user {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-emerald);
    color: #6ee7b7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #00f2fe 100%);
    color: #041322;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.85);
    border-color: var(--color-cyan);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-success {
    background: #10b981;
    color: #062b1e;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Layout Container */
.page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px;
    flex: 1;
    width: 100%;
}

/* Hero Section */
.hero-banner {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

/* Filters & Search Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.category-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover, .chip.active {
    background: var(--color-cyan);
    color: #041322;
    border-color: var(--color-cyan);
}

.search-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 9px 16px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    min-width: 250px;
}

.search-input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 30px -8px rgba(0, 242, 254, 0.25);
    background: var(--bg-card-hover);
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.product-specs {
    list-style: none;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.product-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-cyan);
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-tag {
    font-size: 12px;
    color: var(--color-emerald);
    font-weight: 600;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(14px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-box {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.2);
    position: relative;
}

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

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-red);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

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

.form-control {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Payment Method Selectors */
.payment-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.payment-option {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    text-align: center;
}

.payment-option:hover, .payment-option.active {
    border-color: var(--color-cyan);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.payment-option input {
    display: none;
}

/* Tabs & Dashboard */
.tabs-nav {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Custom Card & Static Pages */
.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-cyan);
}

.page-content {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 15px;
}

/* Footer & Watermark */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    background: rgba(10, 14, 23, 0.95);
    margin-top: auto;
}

.watermark {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
}

.stat-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-cyan);
    margin-top: 6px;
}
