/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --------------------------------------------------
   BASE STYLES
-------------------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth text */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------
   COSMIC BACKGROUND OVERLAY
-------------------------------------------------- */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a0033, #000000 70%);
    opacity: 0.85;
    z-index: -1;
}
/* --------------------------------------------------
   SECTION 2 — GLOBAL LAYOUT FOUNDATION
   Structure, spacing, containers, wrappers
-------------------------------------------------- */

/* Universal page wrapper */
.page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Standard section spacing */
.section {
    width: 100%;
    padding: 4rem 0;
    position: relative;
}

/* Flex row utility */
.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Flex column utility */
.column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Centering utility */
.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid utility */
.grid {
    display: grid;
    gap: 2rem;
}

/* 2-column grid */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3-column grid */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4-column grid */
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-wrapper {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}
/* --------------------------------------------------
   SECTION 3 — TYPOGRAPHY SYSTEM
   Fonts, headings, body text, glow effects
-------------------------------------------------- */

/* Base font settings */
html {
    font-size: 16px;
    line-height: 1.5;
    font-family: var(--font-body);
    color: var(--text-primary);
}

/* Body text */
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-main);
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Individual heading sizes */
h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.4rem; line-height: 1.15; }
h3 { font-size: 1.9rem; line-height: 1.2; }
h4 { font-size: 1.5rem; line-height: 1.25; }
h5 { font-size: 1.25rem; line-height: 1.3; }
h6 { font-size: 1.1rem; line-height: 1.35; }

/* Paragraphs */
p {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.25s ease;
}

a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 8px var(--accent-light);
}

/* Small text */
.small {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Mystical glow text */
.glow {
    color: var(--accent);
    text-shadow:
        0 0 6px var(--accent),
        0 0 12px var(--accent-light),
        0 0 24px var(--accent-light);
}

/* Soft fade text */
.fade {
    opacity: 0.7;
}

/* Uppercase utility */
.upper {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Center text */
.text-center {
    text-align: center;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    p  { font-size: 0.95rem; }
}
/* --------------------------------------------------
   SECTION 4 — TYPOGRAPHY & GLOW UTILITIES
-------------------------------------------------- */

/* Mystical glow text */
.glow {
    color: var(--accent);
    text-shadow:
        0 0 6px var(--accent),
        0 0 12px var(--accent-light),
        0 0 24px var(--accent-light);
}

/* Soft fade text */
.fade {
    opacity: 0.7;
}

/* Uppercase utility */
.upper {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Center text */
.text-center {
    text-align: center;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    p  { font-size: 0.95rem; }
}
/* --------------------------------------------------
   SECTION 5 — BUTTONS & INTERACTIVE ELEMENTS
-------------------------------------------------- */

/* Base button */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
    border: none;
    outline: none;
    color: var(--text);
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Glow button */
.btn-glow {
    background: var(--accent);
    color: #fff;
    text-shadow: 0 0 6px var(--accent-light);
    box-shadow:
        0 0 8px var(--accent),
        0 0 16px var(--accent-light);
}

.btn-glow:hover {
    box-shadow:
        0 0 12px var(--accent),
        0 0 24px var(--accent-light),
        0 0 36px var(--accent-light);
    transform: translateY(-2px);
}

/* Outline button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    box-shadow:
        0 0 10px var(--accent),
        0 0 20px var(--accent-light);
}

/* Disabled button */
.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Small button */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Large button */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Full-width button */
.btn-block {
    width: 100%;
    display: block;
}

/* Icon button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Subtle hover lift for all buttons */
.btn:hover {
    transform: translateY(-2px);
}
/* --------------------------------------------------
   SECTION 6 — FORMS & INPUT FIELDS
-------------------------------------------------- */

/* Form group wrapper */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Base input styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: 0.25s ease;
    outline: none;
}

/* Focus glow */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-light);
}

/* Textarea */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23aaa' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.484 4.484-4.484 1.06 1.06-5.544 5.544-5.544-5.544z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Checkbox + radio wrapper */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Checkbox + radio inputs */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* --------------------------------------------------
   SECTION 7 — CARDS, BOXES & CONTAINERS
-------------------------------------------------- */

/* Generic card container */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

/* Hover lift */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Card header */
.card-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

/* Card body */
.card-body {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Card footer */
.card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Product card */
.product-card
/* --------------------------------------------------
   SECTION 8 — NAVIGATION, MENUS & SIDEBARS
-------------------------------------------------- */

/* Top navigation bar */
.navbar {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo */
.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
}

/* Nav links container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Individual link */
.nav-links a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent-light);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
}

/* Sidebar (for admin/editor) */
.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    height: 100vh;
    padding: 24px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

/* Sidebar links */
.sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.25s ease;
}

.sidebar a:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-light);
}

/* Sidebar section titles */
.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile responsive behavior */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    /* Mobile dropdown menu */
    .mobile-menu {
        display: none;
        flex-direction: column;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 16px;
        gap: 16px;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 10px 0;
    }

    /* Sidebar collapses on mobile */
    .sidebar {
/* --------------------------------------------------
   SECTION 9 — ANIMATIONS, EFFECTS & MYSTICAL MOTION
-------------------------------------------------- */

/* Smooth fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide up */
.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse glow (great for buttons or magical elements) */
.glow-pulse {
    animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 6px var(--accent);
    }
    50% {
        box-shadow: 0 0 18px var(--accent-light);
    }
    100% {
        box-shadow: 0 0 6px var(--accent);
    }
}

/* Shimmer effect (for loading states or mystical highlights) */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shimmerMove 1.8s infinite;
}

@keyframes shimmerMove {
    0%   { left: -150%; }
    100% { left: 150%; }
}

/* Sparkle pop (subtle magical pop on hover) */
.sparkle-pop:hover {
    animation: sparklePop 0.4s ease;
}

@keyframes sparklePop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Rotate gently (for icons or mystical symbols) */
.rotate-slow {
    animation: rotateSlow 12s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Fade in with slight scale */
.fade-scale {
    opacity: 0;
    transform: scale(0.96);
    animation: fadeScale 0.5s ease forwards;
}

@keyframes fadeScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover float */
.float-hover:hover {
    transform: translateY(-4px);
    transition: 0.25s ease;
}

/* Universal smooth transitions */
.smooth {
    transition: 0.25s ease;
}
/* --------------------------------------------------
   SECTION 10 — MODALS, POPUPS & OVERLAYS
-------------------------------------------------- */

/* Overlay background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 900;
}

/* Overlay active */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: var(--surface);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    transition: 0.3s ease;
    z-index: 1000;
}

/* Modal active */
.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Modal header */
.modal-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

/* Modal body */
.modal-body {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Close button (X) */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    transition: 0.25s ease;
}

.modal-close:hover {
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent-light);
}

/* Slide-in drawer (side panel) */
.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: 0.35s ease;
    z-index: 1000;
}

.drawer.open {
    right: 0;
}

/* Lightbox for images */
.lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: var(--surface);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
}

/* --------------------------------------------------
   SECTION 11 — TOOLTIPS, BADGES & ALERTS
-------------------------------------------------- */

/* Tooltip wrapper */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

/* Tooltip text bubble */
.tooltip .tooltip-text {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 20;
}

/* Tooltip arrow */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--surface) transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Badges (small labels) */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge colors */
.badge-primary {
    background: var(--accent);
    color: #fff;
}

.badge-success {
    background: var(--success);
    color: #fff;
}

.badge-warning {
    background: var(--warning);
    color: #fff;
}

.badge-error {
    background: var(--error);
    color: #fff;
}

/* Alerts (full-width messages) */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid;
}

/* Alert types */
.alert-info {
    background: rgba(0, 150, 255, 0.1);
    border-color: #0096ff;
    color: #0077cc;
}

.alert-success {
    background: rgba(0, 200, 120, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 180, 0, 0.15);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-error {
    background: rgba(255, 60, 60, 0.15);
    border-color: var(--error);
    color: var(--error);
}

/* Close button for alerts */
.alert-close {
    margin-left: auto;
    cursor: pointer;
    font-weight: 700;
    color: inherit;
    transition: 0.25s ease;
}

.alert-close:hover {
    opacity: 0.6;
}
/* --------------------------------------------------
   SECTION 12 — TABLES, LISTS & DATA DISPLAYS
-------------------------------------------------- */

/* Table wrapper */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
}

/* Base table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* Table header */
thead {
    background: var(--surface-alt);
}

thead th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table rows */
tbody tr {
    border-bottom: 1px solid var(--border);
    transition: 0.2s ease;
}

tbody tr:hover {
    background: rgba(0,0,0,0.04);
}

/* Table cells */
td {
    padding: 12px 14px;
    color: var(--text-light);
}

/* Highlighted row (e.g., selected or active) */
.table-highlight {
    background: rgba(var(--accent-rgb), 0.12);
}

/* Striped rows */
.table-striped tbody tr:nth-child(odd) {
    background: rgba(0,0,0,0.03);
}

/* Compact table */
.table-compact td,
.table-compact th {
    padding: 8px 10px;
    font-size: 0.85rem;
}

/* Status tags inside tables */
.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: rgba(0,200,120,0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(255,180,0,0.15);
    color: var(--warning);
}

.status-cancelled {
    background: rgba(255,60,60,0.15);
    color: var(--error);
}

/* Unordered lists */
ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

ul li {
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Ordered lists */
ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

ol li {
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Data blocks (for admin stats, metrics, etc.) */
.data-block {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 10px;
    text-align: center;
}

.data-block .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.data-block .label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}
/* --------------------------------------------------
   SECTION 13 — BREADCRUMBS, PAGINATION & PROGRESS
-------------------------------------------------- */

/* Breadcrumb container */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Breadcrumb links */
.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.breadcrumbs a:hover {
    text-shadow: 0 0 6px var(--accent-light);
}

/* Breadcrumb separator */
.breadcrumbs span {
    color: var(--text-light);
}

/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

/* Pagination buttons */
.page-btn {
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 0.9rem;
}

.page-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-light);
}

/* Active page */
.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Disabled page */
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress bar wrapper */
.progress {
    width: 100%;
    height: 10px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
}

/* Progress fill */
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.4s ease;
}

/* Step indicator container */
.steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

/* Individual step */
.step {
    text-align: center;
    flex: 1;
    position: relative;
}

/* Step circle */
.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    color: var(--text);
    transition: 0.25s ease;
}

/* Completed step */
.step.completed .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-light);
}

/* Step label */
.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Line between steps */
.step::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: -1;
}

/* Remove line from last step */
.step:last-child::after {
    display: none;
}
/* --------------------------------------------------
   SECTION 14 — TABS, ACCORDIONS & COLLAPSIBLES
-------------------------------------------------- */

/* -------------------------
      TABS
-------------------------- */

/* Tabs container */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    margin-bottom: 20px;
}

/* Individual tab */
.tab {
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: 0.25s ease;
}

/* Active tab */
.tab.active {
    color: var(--accent);
    border-color: var(--accent);
    text-shadow: 0 0 6px var(--accent-light);
}

/* Tab content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* -------------------------
      ACCORDIONS
-------------------------- */

/* Accordion wrapper */
.accordion {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

/* Accordion item */
.accordion-item {
    border-bottom: 1px solid var(--border);
}

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

/* Accordion header */
.accordion-header {
    padding: 14px 18px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s ease;
}

.accordion-header:hover {
    background: var(--surface-alt);
}

/* Accordion icon (arrow) */
.accordion-icon {
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(90deg);
}

/* Accordion content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: var(--surface-alt);
    padding: 0 18px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.open .accordion-content {
    padding: 14px 18px;
    max-height: 500px; /* safe max */
}

/* -------------------------
      COLLAPSIBLE PANELS
-------------------------- */

.collapsible {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

/* Collapsible header */
.collapsible-header {
    padding: 14px 18px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s ease;
}

.collapsible-header:hover {
    background: var(--surface-alt);
}

/* Collapsible body */
.collapsible-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: var(--surface-alt);
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.collapsible.open .collapsible-body {
    padding: 14px 18px;
    max-height: 600px;
}
/* --------------------------------------------------
   SECTION 15 — MEDIA, IMAGES & RESPONSIVE EMBEDS
-------------------------------------------------- */

/* Base image styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Image with soft shadow */
.img-shadow {
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Rounded image */
.img-round {
    border-radius: 50%;
}

/* Image frame */
.img-frame {
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* Responsive video wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery grid */
.gallery {
    display: grid;
    gap: 16px;
}

.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }

/* Mobile collapse */
@media (max-width: 768px) {
    .gallery-2,
    .gallery-3,
    .gallery-4 {
        grid-template-columns: 1fr;
    }
}

/* Figure + caption */
figure {
    margin: 0;
    text-align: center;
}

figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Media card (image + text) */
.media-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.media-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.media-card .media-body {
    flex: 1;
}

/* Audio player wrapper */
.audio-wrapper {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 10px;
}

/* Full-width hero image */
.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

/* Mobile hero height */
@media (max-width: 768px) {
    .hero-img {
        height: 240px;
    }
}
/* --------------------------------------------------
   SECTION 16 — FOOTERS, UTILITY BARS & BOTTOM NAVIGATION
-------------------------------------------------- */

/* -------------------------
      MAIN FOOTER
-------------------------- */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.footer a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.25s ease;
}

.footer a:hover {
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent-light);
}

/* Footer bottom strip */
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Mobile footer grid */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------
      UTILITY BAR
-------------------------- */

.utility-bar {
    width: 100%;
    background: var(--surface-alt);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.utility-bar a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.utility-bar a:hover {
    text-shadow: 0 0 6px var(--accent-light);
}

/* -------------------------
      MOBILE BOTTOM NAV
-------------------------- */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.bottom-nav a {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.bottom-nav a:hover {
    color: var(--accent);
}

.bottom-nav .icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Show bottom nav only on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}
/* --------------------------------------------------
   SECTION 17 — ADVANCED INPUTS, SLIDERS, TOGGLES & CHIPS
-------------------------------------------------- */

/* -------------------------
      TOGGLE SWITCH
-------------------------- */

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: 0.25s ease;
}

.toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--surface);
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle.active {
    background: var(--accent);
}

.toggle.active::after {
    left: 25px;
    background: #fff;
}

/* -------------------------
      RANGE SLIDER
-------------------------- */

.range {
    width: 100%;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 8px var(--accent-light);
}

.range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* -------------------------
      TAGS / CHIPS
-------------------------- */

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    margin: 4px;
    gap: 6px;
    transition: 0.25s ease;
}

.chip:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-light);
}

/* Removable chip */
.chip .chip-remove {
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.chip .chip-remove:hover {
    opacity: 0.7;
}

/* -------------------------
      PILL SELECTORS
-------------------------- */

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

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.25s ease;
}

.pill:hover {
    background: var(--surface-alt);
}

.pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-light);
}

/* -------------------------
      INPUT WITH ICON
-------------------------- */

.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 40px;
}

.input-icon .icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-light);
}

/* -------------------------
      SLIDER VALUE BUBBLE
-------------------------- */

.range-wrapper {
    position: relative;
    width: 100%;
}

.range-value {
    position: absolute;
    top: -32px;
    left: 0;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: 0.25s ease;
}

.range-value::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}
/* --------------------------------------------------
   SECTION 18 — TOASTS, NOTIFICATIONS & BANNERS
-------------------------------------------------- */

/* -------------------------
      TOAST NOTIFICATIONS
-------------------------- */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    min-width: 240px;
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    color: var(--text);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateX(40px);
    animation: toastIn 0.4s ease forwards;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast close button */
.toast-close {
    margin-left: auto;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-light);
    transition: 0.25s ease;
}

.toast-close:hover {
    opacity: 0.6;
}

/* Toast types */
.toast-success {
    border-color: var(--success);
}

.toast-warning {
    border-color: var(--warning);
}

.toast-error {
    border-color: var(--error);
}

/* -------------------------
      TOP BANNERS
-------------------------- */

.banner {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.banner-warning {
    background: var(--warning);
}

.banner-error {
    background: var(--error);
}

.banner-success {
    background: var(--success);
}

/* -------------------------
      INLINE NOTICES
-------------------------- */

.notice {
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--surface-alt);
    border-left: 4px solid var(--accent);
    margin: 16px 0;
    font-size: 0.95rem;
    color: var(--text);
}

.notice-success {
    border-color: var(--success);
}

.notice-warning {
    border-color: var(--warning);
}

.notice-error {
    border-color: var(--error);
}

/* -------------------------
      FLOATING ALERT (BOTTOM)
-------------------------- */

.floating-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--surface);
    padding: 16px 22px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-size: 1rem;
    color: var(--text);
    opacity: 0;
    animation: floatIn 0.45s ease forwards;
    z-index: 2000;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
/* --------------------------------------------------
   SECTION 19 — LOADERS, SPINNERS & SKELETON STATES
-------------------------------------------------- */

/* -------------------------
      SPINNER LOADER
-------------------------- */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Small spinner */
.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

/* Large spinner */
.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* -------------------------
      DOT LOADER
-------------------------- */

.dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.dots div {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 0.8s infinite alternate;
}

.dots div:nth-child(2) {
    animation-delay: 0.2s;
}

.dots div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    from { transform: scale(0.6); opacity: 0.6; }
    to   { transform: scale(1); opacity: 1; }
}

/* -------------------------
      SKELETON LOADING
-------------------------- */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-alt) 25%,
        var(--surface) 50%,
        var(--surface-alt) 75%
    );
    background-size: 200% 100%;
    animation: skeletonMove 1.4s ease infinite;
    border-radius: 6px;
}

@keyframes skeletonMove {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton text line */
.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

/* Skeleton circle (avatar, icon) */
.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Skeleton block (image placeholder) */
.skeleton-block {
    width: 100%;
    height: 180px;
    border-radius: 10px;
}

/* -------------------------
      FULL-PAGE LOADER
-------------------------- */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

/* -------------------------
      LOADING BAR (TOP)
-------------------------- */

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--accent);
    z-index: 3000;
    transition: width 0.3s ease;
}
/* --------------------------------------------------
   SECTION 20 — LAYOUT, SPACING & UTILITY CLASSES
-------------------------------------------------- */

/* -------------------------
      FLEX UTILITIES
-------------------------- */

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-around {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* -------------------------
      GRID UTILITIES
-------------------------- */

.grid {
    display: grid;
}

.grid-auto {
    display: grid;
    grid-auto-flow: row;
}

.grid-center {
    display: grid;
    place-items: center;
}

.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .col-2,
    .col-3,
    .col-4 {
        grid-template-columns: 1fr;
    }
}

/* -------------------------
      WIDTH & HEIGHT
-------------------------- */

.w-100 { width: 100%; }
.w-50  { width: 50%; }
.w-33  { width: 33.33%; }
.w-25  { width: 25%; }

.h-100 { height: 100%; }
.h-50  { height: 50%; }

.max-w-400 { max-width: 400px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }

/* -------------------------
      SPACING UTILITIES
-------------------------- */

.m-0   { margin: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.ml-10 { margin-left: 10px; }
.ml-20 { margin-left: 20px; }

.mr-10 { margin-right: 10px; }
.mr-20 { margin-right: 20px; }

.p-0   { padding: 0; }
.p-10  { padding: 10px; }
.p-20  { padding: 20px; }
.p-30  { padding: 30px; }

.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }

.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }

.pl-10 { padding-left: 10px; }
.pl-20 { padding-left: 20px; }

.pr-10 { padding-right: 10px; }
.pr-20 { padding-right: 20px; }

/* -------------------------
      DISPLAY UTILITIES
-------------------------- */

.block      { display: block; }
.inline     { display: inline; }
.inline-flex { display: inline-flex; }
.hidden     { display: none; }

@media (max-width: 768px) {
    .hidden-mobile { display: none; }
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile { display: block; }
}

/* -------------------------
      POSITIONING
-------------------------- */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }

.top-0    { top: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }

/* -------------------------
      TEXT UTILITIES
-------------------------- */

.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-center { text-align: center; }

.text-bold   { font-weight: 700; }
.text-light  { font-weight: 300; }

.text-accent { color: var(--accent); }
.text-error  { color: var(--error); }
.text-success { color: var(--success); }

/* -------------------------
      BORDER UTILITIES
-------------------------- */

.border {
    border: 1px solid var(--border);
}

.border-top {
    border-top: 1px solid var(--border);
}

.border-bottom {
    border-bottom: 1px solid var(--border);
}

.rounded {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 999px;
}
/* --------------------------------------------------
   SECTION 21 — SHADOWS, DEPTH, GLASS & ELEVATION
-------------------------------------------------- */

/* -------------------------
      SHADOW PRESETS
-------------------------- */

/* Soft shadow */
.shadow-sm {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Medium shadow */
.shadow-md {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Large shadow */
.shadow-lg {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Extra mystical glow shadow */
.shadow-glow {
    box-shadow: 0 0 18px var(--accent-light);
}

/* Inner shadow (inset) */
.shadow-inset {
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
}

/* -------------------------
      ELEVATION LEVELS
-------------------------- */

.elevate-1 {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.elevate-2 {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.elevate-3 {
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.elevate-4 {
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

/* Hover elevation */
.elevate-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transition: 0.25s ease;
}

/* -------------------------
      GLASSMORPHISM
-------------------------- */

.glass {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

/* Dark glass */
.glass-dark {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

/* Frosted panel */
.frosted {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* -------------------------
      AURA & MYSTICAL EFFECTS
-------------------------- */

/* Accent aura glow */
.aura {
    position: relative;
}

.aura::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        circle,
        var(--accent-light) 0%,
        transparent 70%
    );
    opacity: 0.35;
    z-index: -1;
    filter: blur(20px);
}

/* Soft ambient glow */
.ambient-glow {
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25);
}

/* -------------------------
      DEPTH LAYERS
-------------------------- */

.layer-1 { z-index: 10; }
.layer-2 { z-index: 50; }
.layer-3 { z-index: 100; }
.layer-4 { z-index: 500; }
.layer-5 { z-index: 1000; }

/* Floating layer */
.float-layer {
    position: relative;
    z-index: 20;
    transform: translateY(0);
    transition: 0.3s ease;
}

.float-layer:hover {
    transform: translateY(-6px);
}

/* -------------------------
      CARD DEPTH VARIANTS
-------------------------- */

.card-flat {
    border: 1px solid var(--border);
    box-shadow: none;
}

.card-raised {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card-floating {
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    transform: translateY(-4px);
}
/* --------------------------------------------------
   SECTION 22 — COLORS, GRADIENTS & MYSTICAL EFFECTS
-------------------------------------------------- */

/* -------------------------
      COLOR UTILITIES
-------------------------- */

.text-primary   { color: var(--accent); }
.text-secondary { color: var(--text-light); }
.text-muted     { color: var(--border); }

.bg-primary     { background: var(--accent); color: #fff; }
.bg-secondary   { background: var(--surface-alt); }
.bg-muted       { background: var(--border); }

.bg-success     { background: var(--success); color: #fff; }
.bg-warning     { background: var(--warning); color: #fff; }
.bg-error       { background: var(--error); color: #fff; }

/* Transparent backgrounds */
.bg-fade        { background: rgba(255,255,255,0.05); }
.bg-fade-dark   { background: rgba(0,0,0,0.15); }

/* -------------------------
      GRADIENTS
-------------------------- */

.gradient-accent {
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-light) 100%
    );
    color: #fff;
}

.gradient-dark {
    background: linear-gradient(
        135deg,
        #0d0d0d 0%,
        #1a1a1a 100%
    );
}

.gradient-mystic {
    background: linear-gradient(
        135deg,
        #6a00ff 0%,
        #b400ff 50%,
        #ff00c8 100%
    );
    color: #fff;
}

.gradient-sunset {
    background: linear-gradient(
        135deg,
        #ff7a00 0%,
        #ff0066 100%
    );
    color: #fff;
}

/* Soft pastel gradient */
.gradient-soft {
    background: linear-gradient(
        135deg,
        rgba(255,200,255,0.4),
        rgba(200,220,255,0.4)
    );
}

/* -------------------------
      GLOW EFFECTS
-------------------------- */

.glow {
    box-shadow: 0 0 12px var(--accent-light);
}

.glow-strong {
    box-shadow: 0 0 22px var(--accent-light);
}

.glow-text {
    text-shadow: 0 0 8px var(--accent-light);
}

/* -------------------------
      AURA BACKGROUNDS
-------------------------- */

.aura-bg {
    background: radial-gradient(
        circle at center,
        rgba(var(--accent-rgb), 0.35) 0%,
        transparent 70%
    );
}

.aura-bg-light {
    background: radial-gradient(
        circle at center,
        rgba(var(--accent-rgb), 0.15) 0%,
        transparent 70%
    );
}

/* -------------------------
      MYSTICAL PARTICLE OVERLAY
-------------------------- */

.particles {
    position: relative;
    overflow: hidden;
}

.particles::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/particles.png'); /* optional */
    opacity: 0.15;
    pointer-events: none;
}

/* -------------------------
      TRANSPARENT GRADIENT OVERLAYS
-------------------------- */

.overlay-top {
    position: relative;
}

.overlay-top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.45),
        transparent
    );
}

.overlay-bottom {
    position: relative;
}

.overlay-bottom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.45),
        transparent
    );
}

/* -------------------------
      BORDER COLORS
-------------------------- */

.border-accent  { border-color: var(--accent); }
.border-success { border-color: var(--success); }
.border-warning { border-color: var(--warning); }
.border-error   { border-color: var(--error); }
/* --------------------------------------------------
   SECTION 23 — PRINT, ACCESSIBILITY & HIGH‑CONTRAST
-------------------------------------------------- */

/* -------------------------
      PRINT STYLES
-------------------------- */

@media print {

    /* Remove unnecessary UI */
    .navbar,
    .footer,
    .bottom-nav,
    .sidebar,
    .utility-bar,
    .toast-container,
    .banner,
    .floating-alert {
        display: none !important;
    }

    /* Expand content */
    .content,
    main,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    /* Make text readable */
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    /* Remove shadows & effects */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        background-image: none !important;
    }

    /* Ensure images print cleanly */
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    /* Page breaks for long content */
    .page-break {
        page-break-before: always;
    }
}

/* -------------------------
      ACCESSIBILITY HELPERS
-------------------------- */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus ring for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Larger text utility */
.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.5rem;
}

/* High-contrast text */
.text-hc {
    color: #000;
    font-weight: 700;
}

/* -------------------------
      REDUCED MOTION MODE
-------------------------- */

@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------
      HIGH‑CONTRAST MODE
-------------------------- */

@media (prefers-contrast: more) {

    body {
        background: #fff !important;
        color: #000 !important;
    }

    a {
        color: #0000ee !important;
        text-decoration: underline !important;
    }

    button,
    .btn {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #000 !important;
    }

    .card,
    .panel,
    .box,
    .glass,
    .frosted {
        background: #fff !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }

    /* Remove subtle borders and replace with strong ones */
    * {
        border-color: #000 !important;
    }
}

/* -------------------------
      ACCESSIBLE CURSORS
-------------------------- */

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-text    { cursor: text; }
.cursor-move    { cursor: move; }

/* -------------------------
      ACCESSIBLE SPACING
-------------------------- */

.spacing-lg > * + * {
    margin-top: 20px;
}

.spacing-xl > * + * {
    margin-top: 30px;
}
/* --------------------------------------------------
   SECTION 24 — DARK MODE, THEMES & COLOR‑SCHEME OVERRIDES
-------------------------------------------------- */

/* -------------------------
      AUTO DARK MODE
-------------------------- */

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f0f12;
        --surface: #18181c;
        --surface-alt: #222228;
        --text: #f2f2f7;
        --text-light: #c7c7d1;
        --border: rgba(255,255,255,0.08);

        --accent: #9b5cff;
        --accent-light: #c29aff;
        --accent-rgb: 155, 92, 255;

        --success: #4cd964;
        --warning: #ffcc00;
        --error: #ff3b30;
    }

    body {
        background: var(--background);
        color: var(--text);
    }

    /* Dark mode shadows */
    .shadow-md,
    .shadow-lg,
    .card,
    .panel {
        box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    }

    /* Inputs */
    input,
    select,
    textarea {
        background: var(--surface-alt);
        border-color: var(--border);
        color: var(--text);
    }

    /* Cards & surfaces */
    .card,
    .panel,
    .box {
        background: var(--surface);
        border-color: var(--border);
    }

    /* Tables */
    table {
        background: var(--surface);
    }

    thead {
        background: var(--surface-alt);
    }

    tbody tr:hover {
        background: rgba(255,255,255,0.05);
    }
}

/* -------------------------
      MANUAL THEME SWITCHING
-------------------------- */

/* Light theme */
.theme-light {
    --background: #ffffff;
    --surface: #f7f7fb;
    --surface-alt: #ececf3;
    --text: #1a1a1a;
    --text-light: #555;
    --border: rgba(0,0,0,0.12);

    --accent: #7a3cff;
    --accent-light: #b08aff;
    --accent-rgb: 122, 60, 255;

    --success: #28c76f;
    --warning: #ff9f43;
    --error: #ea5455;
}

/* Dark theme */
.theme-dark {
    --background: #0f0f12;
    --surface: #18181c;
    --surface-alt: #222228;
    --text: #f2f2f7;
    --text-light: #c7c7d1;
    --border: rgba(255,255,255,0.08);

    --accent: #9b5cff;
    --accent-light: #c29aff;
    --accent-rgb: 155, 92, 255;

    --success: #4cd964;
    --warning: #ffcc00;
    --error: #ff3b30;
}

/* Apply theme */
.theme-light body,
.theme-dark body {
    background: var(--background);
    color: var(--text);
}

/* -------------------------
      THEME TOGGLE BUTTON
-------------------------- */

.theme-toggle {
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-light);
}

/* -------------------------
      THEME‑AWARE ELEMENTS
-------------------------- */

/* Icons that adapt to theme */
.icon-theme {
    filter: brightness(0) invert(0);
    transition: 0.25s ease;
}

.theme-dark .icon-theme {
    filter: brightness(0) invert(1);
}

/* Theme‑aware borders */
.border-theme {
    border-color: var(--border);
}

/* Theme‑aware surfaces */
.surface-theme {
    background: var(--surface);
    color: var(--text);
}

/* -------------------------
      FUTURE CUSTOM THEMES
-------------------------- */

/* Example: Mystic Purple Theme */
.theme-mystic {
    --background: #0d001a;
    --surface: #1a0b2e;
    --surface-alt: #2a1547;
    --text: #f7eaff;
    --text-light: #cbb3e6;
    --border: rgba(255,255,255,0.12);

    --accent: #b44cff;
    --accent-light: #d59aff;
    --accent-rgb: 180, 76, 255;

    --success: #4cd964;
    --warning: #ffcc00;
    --error: #ff3b30;
}
/* --------------------------------------------------
   SECTION 25 — ANIMATIONS, MICRO‑INTERACTIONS & ADVANCED TRANSITIONS
-------------------------------------------------- */

/* -------------------------
      GLOBAL TRANSITIONS
-------------------------- */

* {
    transition: background 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.25s ease;
}

/* Smooth fade */
.fade {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.fade.show {
    opacity: 1;
}

/* -------------------------
      HOVER LIFT EFFECTS
-------------------------- */

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Hover glow */
.hover-glow:hover {
    box-shadow: 0 0 14px var(--accent-light);
}

/* Hover scale */
.hover-scale:hover {
    transform: scale(1.03);
}

/* -------------------------
      TAP / ACTIVE EFFECTS
-------------------------- */

.tap {
    transition: transform 0.15s ease;
}

.tap:active {
    transform: scale(0.96);
}

/* -------------------------
      FLOATING LOOP ANIMATIONS
-------------------------- */

.float {
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Slow mystical float */
.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* -------------------------
      PULSE & GLOW EFFECTS
-------------------------- */

.pulse {
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.85; }
}

.glow-pulse {
    animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-light); }
    50%      { box-shadow: 0 0 20px var(--accent-light); }
}

/* -------------------------
      SLIDE ANIMATIONS
-------------------------- */

.slide-up {
    animation: slideUp 0.45s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.slide-down {
    animation: slideDown 0.45s ease forwards;
    opacity: 0;
}

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

.slide-left {
    animation: slideLeft 0.45s ease forwards;
    opacity: 0;
}

@keyframes slideLeft {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.slide-right {
    animation: slideRight 0.45s ease forwards;
    opacity: 0;
}

@keyframes slideRight {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* -------------------------
      REVEAL ANIMATIONS
-------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
      MAGICAL PARTICLE SPARK
-------------------------- */

.spark {
    position: relative;
}

.spark::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    animation: spark 0.6s ease-out;
}

@keyframes spark {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

/* -------------------------
      BUTTON MICRO‑INTERACTIONS
-------------------------- */

.btn-magic {
    position: relative;
    overflow: hidden;
}

.btn-magic::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.45s ease;
}

.btn-magic:hover::after {
    left: 120%;
}

/* -------------------------
      CARD REVEAL HOVER
-------------------------- */

.card-reveal {
    position: relative;
    overflow: hidden;
}

.card-reveal:hover .reveal-content {
    opacity: 1;
    transform: translateY(0);
}

.reveal-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        transparent
    );
    opacity: 0;
    transform: translateY(20px);
    transition: 0.35s ease;
}
