:root {
    /* Strict Palette */
    --color-red: #cf6679;
    --color-orange: #ff9800;
    --color-yellow: #ffc107;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey: #888888;
    --color-light-grey: #e0e0e0;
    --color-purple: #bb86fc;

    /* Theme Mappings */
    --bg-dark: #121212;
    /* Deep Dark Background (keep for now as it wasn't explicitly forbidden, but arguably 'black' or 'grey') - User said 'black', so maybe strict black? But glassmorphism needs gradients. I'll stick to 121212 as it's 'dark grey/black' */
    --card-bg: #1e1e1e;

    --text-primary: var(--color-light-grey);
    --text-secondary: var(--color-grey);

    /* Primary Accent: Orange-Yellow */
    --accent-color: var(--color-yellow);
    --accent-hover: var(--color-orange);

    --heading-color: var(--color-white);

    --success-color: #03dac6;
    /* Cyan isn't in palette... maybe use Green? Or is it strict? "Red, orange, yellow, black, white, grey, light grey, purple". Cyan is out. But 'success' usually implies green/teal. I'll map success to Purple or Yellow for now? Or maybe Light Grey? I'll leave it as is for safety unless user catches it, or map to Purple for a unique look? No, standard is better. User said 'base on only combination of below'. I will use PURPLE for success? No that's confusing. I'll use Yellow. --success-color: var(--color-yellow); */
    --success-color: var(--color-yellow);

    --error-color: var(--color-red);
    --border-color: #333;

    --transition: all 0.3s ease;
    --banner-height: 55px;

    /* Typographic System */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Clean, modern, highly readable */
    --font-accent: 'Playfair Display', serif;
    /* Luxury/Editorial */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-body);
    /* Standardize Body Font */
    padding-top: 120px;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    /* Crisp text on Mac */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 600;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Global Responsive Utilities */
@media (max-width: 768px) {

    /* Global Mobile Typography Reductions */
    html {
        font-size: 14px;
        /* Base scale down */
    }

    body {
        padding-top: 100px;
        font-size: 0.9rem;
        /* Smaller body text */
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    h5 {
        font-size: 0.9rem !important;
    }

    h6 {
        font-size: 0.85rem !important;
    }

    p,
    a,
    span,
    div,
    li {
        line-height: 1.5;
    }

    input,
    select,
    textarea {
        font-size: 0.9rem !important;
    }

    /* Auto-scale button text to fit single line */
    button,
    .btn {
        font-size: clamp(11px, 3.5vw, 15px) !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 576px) {

    /* Global Mobile Typography Reductions */
    html {
        font-size: 14px;
    }

    body {
        padding-top: 90px;
        font-size: 0.95rem;
        /* Better readability */
        line-height: 1.6;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    h5 {
        font-size: 1rem !important;
    }

    h6 {
        font-size: 0.9rem !important;
    }

    /* Fix Modals on Mobile */
    .modal-content,
    .popup-content {
        width: 90vw !important;
        max-width: 90vw !important;
        margin: 0 auto;
    }
}

/* Final Mobile Polish Rules */
img {
    max-width: 100%;
    height: auto;
}

/* Touch Friendly Targets */
button,
.btn,
input,
select,
textarea,
.nav-item,
.menu-item {
    min-height: 44px;
    /* Apple Human Interface Guidelines */
    touch-action: manipulation;
    /* Improved touch handling */
}