/* GLOBAL RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f5f2ff;
    background-color: #05000a;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* LAYOUT HELPERS */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.menu-open {
    overflow: hidden;
}

/* PRELOADER (shared) */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #05030a, #090511);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #ffd58b;
    animation: shopSpin 1s linear infinite;
}

.preloader-title {
    color: #fff0d6;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preloader.hidden {
    display: none;
}

@keyframes shopSpin {
    to { transform: rotate(360deg); }
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: 0.02em;
}

p {
    font-size: 14px;
}

/* CUSTOM DROPDOWN (shared) */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,213,139,0.07), transparent 60%),
        rgba(14, 12, 22, 0.98);
    border: 1px solid rgba(255, 213, 139, 0.22);
    color: #fff8e6;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 0 rgba(255,213,139,0.10) inset, 0 12px 30px rgba(0,0,0,0.28);
}

.dropdown-trigger:hover {
    border-color: rgba(255, 213, 139, 0.4);
}

.custom-dropdown.open .dropdown-trigger {
    border-color: rgba(255, 213, 139, 0.55);
    box-shadow: 0 0 0 2px rgba(255,213,139,0.12), 0 12px 30px rgba(0,0,0,0.28);
}

.dropdown-arrow {
    color: #ffd58b;
    font-size: 18px;
    transition: transform 0.2s ease;
    line-height: 1;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 950;
    border-radius: 16px;
    background: rgba(16, 13, 26, 0.98);
    border: 1px solid rgba(255, 213, 139, 0.18);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,213,139,0.06);
    backdrop-filter: blur(20px);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    max-height: 260px;
    overflow-y: auto;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 14px;
    border-radius: 12px;
    color: #d2c6e7;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-option:hover {
    background: rgba(255, 213, 139, 0.08);
    color: #fff8e6;
}

.dropdown-option.active {
    background: rgba(255, 213, 139, 0.14);
    color: #ffd58b;
    font-weight: 700;
}

.dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 213, 139, 0.2);
    border-radius: 4px;
}

/* MOBILE FIRST RESPONSIVE */
@media (min-width: 768px) {
    .page-container {
        padding: 24px;
    }
}

