:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from gutter */
}

/* Layout helpers */
.section-padding {
    padding: 100px 0;
}

/* Hero & headings */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.display-1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
}

.tracking-tight {
    letter-spacing: -1.5px;
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }

    .py-lg-10 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Cards */
.card {
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: transform 0.2s ease-in-out;
}

/* .card:hover removed to prevent layout jitter on main dashboard containers */
/* Use .hover-lift for interactive cards */

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

/* Standard header/navbar */
.navbar {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* Reusable sidebar styles (admin/seller/buyer) */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.nav-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    padding: 10px 20px;
    display: block;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: 0;
}

.sidebar-nav .nav-item:hover {
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

.sidebar-nav .nav-item.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Stat Cards */
.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.stat-card-value {
    font-weight: 700;
}

/* Fallback for Elite classes used in views */
.elite-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    padding: 30px;
    transition: transform 0.2s ease-in-out;
}

.bg-grad-primary {
    background-color: var(--primary-color);
    color: white;
}

.bg-grad-info {
    background-color: #17a2b8;
    color: white;
}

.bg-grad-warning {
    background-color: #ffc107;
    color: black;
}

.bg-grad-danger {
    background-color: #dc3545;
    color: white;
}

.bg-grad-success {
    background-color: #198754;
    color: white;
}

/* Modern Typography & Utilities */
.tiny {
    font-size: 0.75rem !important;
    /* Standard small meta text */
}

.extra-tiny {
    font-size: 0.65rem !important;
}

.letter-spacing-1 {
    letter-spacing: 0.5px;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

/* Premium Design System */
.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.hover-lift {
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.hover-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.img-zoom {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .img-zoom {
    transform: scale(1.1);
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-opacity-100:hover,
.hover-opacity-1:hover {
    opacity: 1 !important;
}

.object-fit-cover {
    object-fit: cover;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7) !important;
}

.py-lg-10 {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

/* Soft background helpers */
.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-soft-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-soft-secondary {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Button Refinements */
.btn-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: none;
}

.btn-soft-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: 0;
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white;
    transition: all 0.2s;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Audio Player */
.audio-player {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.custom-audio-player {
    height: 38px;
    border-radius: 50px;
    outline: none;
}

/* Tabs */
.nav-tabs .nav-link.active {
    border-bottom: 3px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: white !important;
}

/* Admin localization pills */
.custom-pills .nav-link {
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.custom-pills .nav-link:hover {
    background-color: var(--bs-light);
}

.custom-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Smooth growing textareas in localization */
.loc-textarea {
    resize: none;
    min-height: 38px;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.loc-textarea:focus {
    min-height: 80px;
    background: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
}

/* Horizontal scrollbars for pill rows */
.custom-pills::-webkit-scrollbar {
    height: 4px;
}

.custom-pills::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Dashed borders & inner shadows (used in forms) */
.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02) !important;
}

/* Admin pipeline scroll helpers */
#pipeline-scroll::-webkit-scrollbar {
    height: 4px;
}

#pipeline-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* Vibrant Utilities */
.text-gradient {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes pulse-primary {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.pulse-primary {
    animation: pulse-primary 2s infinite;
}

/* Chat interface */
.chat-box-elite {
    scroll-behavior: smooth;
}

.message-container {
    max-width: 80%;
    position: relative;
}

.message-bubble-elite {
    padding: 12px 18px;
    border-radius: 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-mine .message-bubble-elite {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-theirs .message-bubble-elite {
    background: white;
    color: #1a1b1e;
    border-bottom-left-radius: 4px;
    border: 1px solid #f1f1f1;
}

.input-group-elite .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.input-group-elite {
    border: 1px solid #f0f0f0;
    background: #fff;
}

.pulse-status {
    width: 10px;
    height: 10px;
    background: #198754;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(25, 135, 84, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(25, 135, 84, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Checkout payment options */
.payment-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-option:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.payment-option.active {
    border-color: #0d6efd !important;
    background-color: #f0f7ff;
}