:root {
    --grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --grad-danger: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --grad-warning: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --grad-cool: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --grad-sunset: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    --grad-aurora: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    --grad-purple: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
    --grad-ocean: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
    --grad-mesh: radial-gradient(at 27% 37%, hsla(215,98%,61%,1) 0px, transparent 50%),
                 radial-gradient(at 97% 21%, hsla(125,98%,72%,1) 0px, transparent 50%),
                 radial-gradient(at 52% 99%, hsla(354,98%,61%,1) 0px, transparent 50%),
                 radial-gradient(at 10% 29%, hsla(256,96%,67%,1) 0px, transparent 50%),
                 radial-gradient(at 97% 96%, hsla(38,60%,74%,1) 0px, transparent 50%),
                 radial-gradient(at 33% 50%, hsla(222,67%,73%,1) 0px, transparent 50%),
                 radial-gradient(at 79% 53%, hsla(343,68%,79%,1) 0px, transparent 50%);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Gradient Navbar */
.navbar {
    background: var(--grad-primary) !important;
    box-shadow: 0 4px 24px rgba(102, 126, 234, .35);
}
.navbar a, .navbar .brand { color: white !important; }
.nav-menu a { color: rgba(255,255,255,.92) !important; }
.nav-menu a:hover { background: rgba(255,255,255,.15) !important; color: white !important; }
.user-pill { background: rgba(255,255,255,.2) !important; color: white !important; backdrop-filter: blur(8px); }

/* Hero Gradient */
.hero {
    background: var(--grad-primary) !important;
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
    opacity: .35;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}
.hero h1, .hero p { position: relative; color: white; }
.hero p { opacity: .92; }
.hero .btn-outline { background: rgba(255,255,255,.15); color: white !important; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.hero .btn-outline:hover { background: rgba(255,255,255,.28); }
.hero .btn-primary { background: white; color: var(--primary); }
.hero .btn-primary:hover { background: #eef2ff; }

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Gradient Buttons */
.btn-primary {
    background: var(--grad-primary) !important;
    border: none;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .35);
    transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,126,234,.5); }
.btn-success { background: var(--grad-success) !important; color: white; }
.btn-danger { background: var(--grad-danger) !important; }
.btn-warning { background: var(--grad-warning) !important; color: #1e293b; }

/* Gradient Pills */
.pill { background: white; border: 2px solid transparent; background-image: linear-gradient(white,white), var(--grad-primary); background-origin: border-box; background-clip: padding-box, border-box; color: var(--primary) !important; font-weight: 600; }
.pillo { color: var(--primary) !important; font-weight: 600;}
.pill:hover, .pill.active { background: var(--grad-primary) !important; color: white !important; border: 2px solid transparent; }
.pill-primary { background: var(--grad-primary) !important; color: white !important; }
.pill-success { background: var(--grad-success) !important; color: white !important; }
.pill-danger { background: var(--grad-danger) !important; color: white !important; }

/* Gradient Cards */
.card { background: white; border: 1px solid rgba(255,255,255,.5); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(102,126,234,.25); }
.product-card { position: relative; }
.product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-primary);
    z-index: 1;
    opacity: 0;
    transition: opacity .25s;
}
.product-card:hover::before { opacity: 1; }

/* Gradient Stat Cards */
.stat-card {
    background: var(--grad-primary) !important;
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
}
.stat-card:nth-child(2) { background: var(--grad-success) !important; }
.stat-card:nth-child(3) { background: var(--grad-sunset) !important; }
.stat-card:nth-child(4) { background: var(--grad-ocean) !important; }
.stat-card i, .stat-card h3, .stat-card p { color: white !important; }
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 50%);
}

/* Gradient Tag */
.tag { background: var(--grad-primary) !important; color: white !important; }

/* Gradient Price */
.price { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Gradient Auth Card */
.auth-card {
    background: white;
    border-top: 4px solid transparent;
    border-image: var(--grad-primary) 1;
    position: relative;
}
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: var(--grad-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Gradient Footer */
.footer { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important; }

/* Gradient Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 3px;
}

/* Progress bars */
.progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad-primary); border-radius: 4px; transition: width .4s; }

/* Rating stars */
.stars { color: #fbbf24; }

/* Filter sidebar */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    align-self: start;
}
.filter-group { margin-bottom: 1.25rem; }
.filter-group h4 { margin-bottom: .5rem; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* Product detail page */
.product-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.product-hero {
    background: var(--grad-primary);
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
    opacity: .4;
}
.product-hero img { position: relative; width: 100%; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.purchase-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

/* Tabs */
.tabs { display: flex; gap: .5rem; border-bottom: 2px solid var(--border); margin: 2rem 0 1rem; }
.tab-btn { padding: .75rem 1.25rem; border: none; background: none; cursor: pointer; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: .2s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; padding: 1rem 0; }
.tab-content.active { display: block; }

/* Admin sidebar */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.admin-sidebar { background: white; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px; }
.admin-sidebar a { display: block; padding: .7rem 1rem; border-radius: 8px; color: var(--text); margin-bottom: .25rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--grad-primary); color: white; }

/* Upload drop zone */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: #f8fafc;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: #eef2ff; }
.drop-zone i { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }

/* Table styling */
.table-wrap { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--grad-primary); color: white; padding: .85rem 1rem; text-align: left; font-weight: 500; }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: #f8fafc; }

/* Status badges */
.status { padding: .25rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.status-active, .status-completed { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected, .status-failed, .status-banned { background: #fee2e2; color: #991b1b; }

@media (max-width: 768px) {
    .product-detail, .admin-layout { grid-template-columns: 1fr; }
    .filter-sidebar, .admin-sidebar { position: static; }
}

/* Settings tabs */
.settings-tabs {
    display: flex;
    gap: .5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    background: white;
    padding: .5rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.settings-tab {
    padding: .7rem 1.3rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.settings-tab:hover { background: #eef2ff; color: var(--primary); }
.settings-tab.active {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(102,126,234,.35);
}

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: #cbd5e1; border-radius: 999px; transition: .3s;
}
.toggle-slider::before {
    content: ''; position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px;
    background: white; border-radius: 50%; transition: .3s;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--grad-primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Gradient Dropdown Menu */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    border-radius: 14px;
    min-width: 220px;
    padding: .6rem;
    display: none;
    list-style: none;
    box-shadow: 0 12px 40px rgba(102,126,234,.25), 0 0 0 1px rgba(102,126,234,.1);
    border: 1px solid rgba(102,126,234,.15);
    animation: dropdownFade .2s ease;
    z-index: 999;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1rem;
    border-radius: 10px;
    color: #1e293b;
    font-weight: 500;
    font-size: .92rem;
    transition: .2s;
}
.dropdown-menu li a:hover {
    background: var(--grad-primary);
    color: white;
    transform: translateX(3px);
}
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,.3), transparent);
    margin: .4rem .5rem;
}

/* Notification bell */
.notif-wrapper { position: relative; }
.notif-bell {
    background: rgba(255,255,255,.15);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: .45rem .7rem;
    border-radius: 999px;
    color: white;
    transition: .2s;
}
.notif-bell:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ee0979, #ff6a00);
    color: white;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(238,9,121,.4);
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notif-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(102,126,234,.25);
    width: 360px;
    max-height: 480px;
    overflow: hidden;
    z-index: 999;
    animation: dropdownFade .2s ease;
}
.notif-dropdown.open { display: block; }
.notif-header {
    background: var(--grad-primary);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-header a { color: white !important; text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
    display: flex;
    gap: .75rem;
    padding: .9rem 1.25rem;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9;
    transition: .15s;
}
.notif-item:hover { background: linear-gradient(90deg, #f5f3ff, white); }
.notif-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}
.notif-primary { background: var(--grad-primary); }
.notif-success { background: linear-gradient(135deg, #11998e, #38ef7d); }
.notif-danger { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.notif-warning { background: linear-gradient(135deg, #f7971e, #ffd200); }
.notif-title { font-weight: 600; font-size: .9rem; }
.notif-msg { font-size: .82rem; color: #64748b; margin: .15rem 0; }
.notif-time { font-size: .7rem; color: #94a3b8; }
.notif-footer {
    display: block;
    text-align: center;
    padding: .9rem;
    background: linear-gradient(90deg, #f5f3ff, #eef2ff);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .notif-dropdown { width: 300px; }
} 