:root {
    --primary-color: #6C3BFF;
    --primary-light: #8A4FFF;
    --primary-dark: #4F1FFF;
    --primary-gradient: linear-gradient(135deg, #4F1FFF 0%, #8A4FFF 100%);
    --surface: #FFFFFF;
    --surface-soft: #F8F9FC;
    --surface-strong: #F1F5F9;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --shadow-soft: 0 10px 30px rgba(108, 59, 255, 0.08);
    --shadow-card: 0 4px 24px rgba(31, 41, 55, 0.06);
    --shadow-hover: 0 16px 40px rgba(31, 41, 55, 0.1);
    
    --radius-base: 20px;
    --radius-btn: 12px;
    --max-content-width: 1280px;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--surface-soft);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

body::selection {
    background: rgba(108, 59, 255, 0.15);
    color: var(--primary-color);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 1rem;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 6px;
}

/* Individual link underline for hover */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--primary-gradient);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 70%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
}

/* Magic sliding pill underline */
#nav-magic-line {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 999px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

/* Search Bar */
.search-bar-group {
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    height: 48px;
    display: flex;
    align-items: center;
    max-width: 500px;
    width: 100%;
    padding: 0 6px;
    transition: all 0.2s ease;
}

.search-bar-group:focus-within {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 59, 255, 0.1);
}

.search-bar-group .form-control {
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-main);
    padding-left: 0.75rem;
}

.search-bar-group .form-control:focus {
    box-shadow: none;
}

.search-bar-group select {
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding-right: 2rem;
}

.search-bar-group select:focus {
    box-shadow: none;
    outline: none;
}

/* Nav Icons */
.nav-icon {
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
}

.nav-icon:hover {
    color: var(--primary-color);
    background: rgba(108, 59, 255, 0.08);
    transform: translateY(-2px);
}

/* Buttons */
.btn-premium {
    background: var(--primary-gradient);
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-btn);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(108, 59, 255, 0.2);
}

.btn-soft {
    background: rgba(108, 59, 255, 0.08);
    color: var(--primary-color) !important;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-soft:hover {
    background: rgba(108, 59, 255, 0.15);
    transform: translateY(-1px);
}

/* Glass Cards */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 41, 55, 0.14);
    border-color: #D1D5DB;
}

/* Forms */
.form-control,
.form-select {
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    color: var(--text-main);
    border-radius: var(--radius-btn);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 59, 255, 0.1);
    background: #ffffff;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Badges */
.badge-soft {
    background: rgba(108, 59, 255, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.4em 1em;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-success-soft {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-radius: 999px;
    padding: 0.4em 1em;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-warning-soft {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border-radius: 999px;
    padding: 0.4em 1em;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-danger-soft {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-radius: 999px;
    padding: 0.4em 1em;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Gift Cards */
.giftcard-card {
    border-radius: var(--radius-base);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.giftcard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 41, 55, 0.14);
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-logo {
    font-family: var(--font-poppins);
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated-entry {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Admin Sidebar */
.admin-sidebar {
    background: #111827;
    border-radius: var(--radius-base);
    padding: 2.5rem 1.5rem;
    color: #F9FAFB;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.15);
}

.admin-sidebar a {
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-btn);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-hover);
    z-index: 1050;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    animation: dropdownFadeIn 0.2s ease;
}

.search-autocomplete.active {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.15s ease;
    border-bottom: 1px solid #F3F4F6;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.highlighted {
    background: rgba(108, 59, 255, 0.05);
    color: var(--primary-color);
}

.search-autocomplete-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface-soft);
    border: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.search-autocomplete-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.bg-soft-primary { background-color: rgba(108, 59, 255, 0.1) !important; }
.bg-soft { background-color: var(--surface-soft) !important; }

/* WhatsApp Support Elements */
.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 999px; /* Rounded */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-size: 1.05rem; /* Large */
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); /* Premium shadow */
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #20ba56;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-floating:hover {
    background-color: #20ba56;
    transform: scale(1.08);
}

/* Pulse Animation */
.whatsapp-floating::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    top: 0;
    left: 0;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Mobile & Tablet Positioning (sit above the bottom navigation bar) */
@media (max-width: 991.98px) {
    .whatsapp-floating {
        bottom: 90px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

