/* ==========================================================================
   SHARED DESIGN SYSTEM - HARGA EMAS (RUMREN ECOSYSTEM)
   ========================================================================== */

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-darker: #b45309;
    --primary-light: #fbbf24;
    --primary-subtle: rgba(245, 158, 11, 0.1);
    --primary-glow: rgba(245, 158, 11, 0.35);

    --bg-page: #f8fafc;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
    --card-bg-subtle: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-subtle: #f1f5f9;
    --border-card: rgba(226, 232, 240, 0.8);
    --border-glass: rgba(255, 255, 255, 0.6);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 32px rgba(15, 23, 42, 0.08);
    --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

/* Base Reset & Global Typography (Harmonized with Member & Monifi) */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Apply Outfit to all elements EXCEPT FontAwesome & Lucide icons */
*:not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-thin):not(.fa-duotone):not([data-lucide]):not(.lucide) {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 15px;
    text-rendering: optimizeLegibility;
}

/* Prevent text overflow and clipping across all screen sizes */
p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
a,
button,
input,
select,
textarea {
    overflow-wrap: break-word;
}

body,
button,
input,
select,
textarea {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-size: 0.9375rem;
    /* 15px */
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.text-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-section-title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-badge-caps {
    font-size: 0.6875rem;
    /* 11px */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-body-meta {
    font-size: 0.8125rem;
    /* 13px */
    font-weight: 600;
    color: var(--text-muted);
}

/* App Shell (Mobile First) */
.app-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
}

/* Sticky Nav (Mobile First) */
.sticky-nav {
    position: sticky;
    top: 12px;
    margin: 0 12px;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.4s ease,
        box-shadow 0.4s ease,
        border-radius 0.4s ease;
    will-change: transform, background;
    transform-origin: center top;
}

.sticky-nav.scrolled {
    transform: scale(0.96) translateY(-4px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 22px;
}

/* Cards & Glass Containers */
.card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Detail Page Layout & Spacing (Compact) */
.detail-grid-desktop {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-col-main,
.detail-col-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.gold-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-md);
}

/* Buttons & Interactive Elements */
.gold-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.4);
}

.gold-btn:active {
    transform: scale(0.98);
}

.header-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #475569;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
    background: #ffffff;
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.header-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes bell-ring {

    0%,
    100% {
        transform: rotate(0);
    }

    20%,
    60% {
        transform: rotate(15deg);
    }

    40%,
    80% {
        transform: rotate(-15deg);
    }
}

.bell-active {
    animation: bell-ring 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Form Select Dark Mode Support */
select option {
    background-color: #0f172a;
    color: #ffffff;
}

select:focus option:checked {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}