/* EmasDigital.ID Custom CSS - Professional UX Design */
/* Compatible with: Chrome, Firefox, Safari, Edge, iOS Safari, Android Chrome */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Colors - Mandiri-Inspired Clean Palette */
    --primary-color: #C9A227;
    --primary-light: #E5C55A;
    --primary-dark: #A88A1F;
    --primary-gradient: linear-gradient(135deg, #C9A227 0%, #A88A1F 100%);
    --secondary-color: #003D79;
    --secondary-light: #0052A3;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-blue: #003D79;
    
    /* Text - Softer, more readable */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-light: #6B7280;
    --text-inverse: #FFFFFF; 
    
    /* Background - Clean white foundation */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFBFC;
    --bg-tertiary: #F3F4F6;
    --bg-dark: #003D79;
    
    /* Borders & Shadows - Subtle and clean */
    --border-color: #E5E7EB;
    --border-radius-sm: 6px;
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 20px 50px rgba(201, 162, 39, 0.2);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-loader: 900;
}

/* Dark mode support - disabled for light theme design */
/* 
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0A1628;
        --bg-secondary: #112240;
        --text-primary: #FFFFFF;
        --text-secondary: #D1D5DB;
    }
}
*/

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.fix {
    overflow: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(1.5rem, 4vw, var(--font-size-4xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: white;
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tp-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: white;
}

.tp-btn:hover::before {
    left: 100%;
}

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

.tp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tp-btn-border {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.tp-btn-border:hover {
    background: white;
    color: var(--secondary-color);
}

.tp-btn-white {
    background: white;
    color: var(--secondary-color);
}

.tp-btn-white:hover {
    background: var(--bg-tertiary);
    color: var(--secondary-color);
}

.tp-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.tp-btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.tp-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tp-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.tp-btn-lg {
    padding: 18px 36px;
    font-size: var(--font-size-lg);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* ============================================
   Header
   ============================================ */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 16px 0;
    background: transparent;
    transition: all var(--transition-base);
}

.header-area.scrolled,
.header-sticky {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.logo img {
    max-height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.02);
}

/* Brand lockup: icon + wordmark */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    max-width: 100%;
    min-width: 0;
}
.brand-lockup:hover { text-decoration: none; color: inherit; }
.brand-icon {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.brand-lockup:hover .brand-icon { transform: scale(1.05); }
.brand-wordmark {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.brand-accent { color: var(--primary-color); }

@media (max-width: 991px) {
    .brand-icon { width: 34px; height: 34px; }
    .brand-wordmark { font-size: 1.1rem; }
    .brand-lockup { gap: 8px; }
}
@media (max-width: 575px) {
    .brand-icon { width: 30px; height: 30px; }
    .brand-wordmark { font-size: 0.95rem; }
    .brand-lockup { gap: 6px; }
}
@media (max-width: 360px) {
    .brand-wordmark { display: none; }
}

.main-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.main-menu ul li > a:hover,
.main-menu ul li.active > a {
    color: var(--primary-color);
    background: rgba(201, 162, 39, 0.08);
}

.main-menu ul li.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.main-menu ul li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    padding: 12px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    display: block;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.main-menu ul li.has-dropdown:hover .sub-menu,
.main-menu ul li.has-dropdown:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.sub-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 20px;
}

/* Mega Menu (Produk) */
.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    width: 640px;
    max-width: 90vw;
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-modal);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.main-menu ul li.has-mega-menu:hover .mega-menu,
.main-menu ul li.has-mega-menu:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.mega-menu-col ul {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0;
}

.mega-menu-col li {
    margin: 0;
}

.mega-menu-col li a {
    display: block;
    padding: 8px 10px;
    margin: 0 -10px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.mega-menu-col li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Mobile Produk submenu group labels */
.mobile-submenu-label {
    padding: 12px 16px 4px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.tp-menu-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tp-menu-bar:hover {
    background: var(--primary-color);
    color: white;
}

.tp-menu-bar i {
    font-size: 20px;
}

/* ============================================
   Mobile Offcanvas Menu
   ============================================ */
.offcanvas-area {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: var(--z-modal);
    transition: right var(--transition-slow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-area.show {
    right: 0;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.offcanvas-overlay.show {
    opacity: 1;
    visibility: visible;
}

.offcanvas-wrapper {
    padding: 20px;
}

.offcanvas-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.offcanvas-close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.offcanvas-close-icon:hover {
    background: var(--primary-color);
    color: white;
}

.offcanvas-logo {
    margin-bottom: 30px;
}

.offcanvas-logo img {
    max-height: 36px;
}

.mobile-menu-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-area ul li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-area ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-submenu {
    display: none;
    list-style: none;
    background: var(--bg-secondary);
    margin: 4px 12px 8px;
    padding: 6px 0;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.mobile-submenu.show {
    display: block;
}

.mobile-menu-area ul .mobile-submenu li {
    border-bottom: none;
}

.mobile-menu-area ul .mobile-submenu li a {
    display: block;
    padding: 10px 16px 10px 24px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   Sections
   ============================================ */
.section-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(201, 162, 39, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-area {
    position: relative;
    background: var(--primary-gradient);
    overflow: hidden;
}

.breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.breadcrumb-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    font-size: var(--font-size-sm);
}

.breadcrumb-item a {
    color: var(--primary-light);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.5);
    padding: 0 8px;
}

/* ============================================
   Clean Page Header (White Background)
   ============================================ */
.page-header-clean {
    background: linear-gradient(135deg, #fefefe 0%, #f8f6f3 100%);
    position: relative;
    overflow: hidden;
}

/* ============================================
   Inner Page Components (About / Contact / Articles / Berita)
   ============================================ */
.section-bg-light {
    background: var(--bg-secondary);
}

.card-white {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-white-lg {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-15 {
    border-radius: 15px;
}

/* About */
.vm-card {
    height: 100%;
}

.vm-icon i {
    font-size: 50px;
    color: var(--primary-color);
}

.vm-list {
    padding-left: 20px;
}

.feature-item i {
    font-size: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.stats-area {
    background: var(--primary-gradient);
}

.stats-area .stat-number {
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.stats-area .stat-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact */
.contact-item {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.contact-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* Articles / Berita */
.article-card,
.berita-card {
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-date {
    color: var(--primary-color);
    font-size: 12px;
}

.berita-img {
    min-width: 200px;
}

.berita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-clean .container {
    position: relative;
    z-index: 2;
}

.page-header-clean .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.page-header-clean .breadcrumb-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.page-header-clean .breadcrumb-item a {
    color: var(--primary-color);
}

.page-header-clean .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.page-header-clean .breadcrumb-item.active {
    color: var(--text-muted);
}

.page-header-clean .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    padding: 0 8px;
}

.page-title-clean {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-desc-clean {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: var(--space-lg);
}

.feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition-base);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    margin: 0 auto var(--space-lg);
    font-size: 32px;
    color: white;
}

.feature-card h4 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Price Cards */
.price-card {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.price-card .price-label {
    color: rgba(255,255,255,0.8);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
}

.price-card .price-value {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.price-card .price-unit {
    color: rgba(255,255,255,0.8);
}

.price-card .price-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    color: white;
    font-size: var(--font-size-xs);
    margin-top: var(--space-md);
}

.price-card .price-badge.up {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.price-card .price-badge.down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-img {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    text-align: center;
}

.product-card .product-img img {
    max-height: 150px;
    margin: 0 auto;
}

.product-card .product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: 50px;
}

.product-card .product-content {
    padding: var(--space-lg);
}

.product-card .product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.product-card .product-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.product-card .product-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background-color: var(--bg-secondary);
    cursor: not-allowed;
}

.form-control.error {
    border-color: var(--accent-red);
}

.form-error {
    color: var(--accent-red);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Range Slider */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast);
}

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

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10.28 2.28L4 8.56 1.72 6.28a1 1 0 00-1.44 1.44l3 3a1 1 0 001.44 0l7-7a1 1 0 00-1.44-1.44z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
}

/* ============================================
   Calculator Components
   ============================================ */
.calculator-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.calculator-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.calculator-header h3 {
    margin-bottom: var(--space-sm);
}

.calculator-header p {
    color: var(--text-secondary);
}

.calculator-result {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    text-align: center;
    margin-top: var(--space-xl);
}

.calculator-result .result-label {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.calculator-result .result-value {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
}

.calculator-result .result-note {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-top: var(--space-sm);
}

.quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.quick-select-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-select-btn:hover,
.quick-select-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Tables
   ============================================ */
.table-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-card .table-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-dark);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */
.footer-area {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget {
    margin-bottom: var(--space-xl);
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: var(--space-lg);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-title {
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-link {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link li {
    margin-bottom: var(--space-sm);
}

.footer-link li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-link li a:hover {
    color: var(--primary-color);
    padding-left: var(--space-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-bottom-link {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-end;
}

.footer-bottom-link a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.footer-bottom-link a:hover {
    color: var(--primary-color);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    padding: var(--space-xl) 0;
    background: white;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
}

.trust-badge img {
    max-height: 50px;
    margin-bottom: var(--space-sm);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.trust-badge:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.trust-badge span {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Scroll to Top
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-md);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   Shopping Cart Sidebar
   ============================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    transition: right var(--transition-slow);
}

.cart-sidebar.show {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    margin: 0;
}

.cart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cart-close:hover {
    background: var(--accent-red);
    color: white;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: var(--space-lg);
}

.cart-empty p {
    margin-bottom: var(--space-lg);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
}

.cart-total strong {
    color: var(--primary-color);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 360px;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.toast.warning {
    border-left: 4px solid var(--primary-color);
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon { color: var(--accent-green); }
.toast.error .toast-icon { color: var(--accent-red); }
.toast.warning .toast-icon { color: var(--primary-color); }

.toast-message {
    flex: 1;
    font-size: var(--font-size-sm);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Loading & Skeleton States
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-image {
    width: 100%;
    height: 200px;
}

.skeleton-card {
    padding: var(--space-lg);
    background: white;
    border-radius: var(--border-radius);
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-dropdown);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-content {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.testimonial-info h5 {
    margin: 0 0 4px 0;
    font-size: var(--font-size-base);
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.testimonial-rating {
    color: var(--primary-color);
    margin-top: var(--space-sm);
}

/* ============================================
   FAQ / Accordion
   ============================================ */
.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg);
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question i {
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question {
    background: var(--primary-color);
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Hero Sections
   ============================================ */
.hero-area {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    background: var(--primary-gradient);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: 50px;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-lg);
}

.hero-title span {
    color: var(--bg-dark);
}

.hero-text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-btn {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero-img {
    position: relative;
    z-index: 1;
}

.hero-img img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

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

/* ============================================
   Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

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

.pulse {
    animation: pulse 2s infinite;
}

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

/* Animate on scroll */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* ============================================
   Utilities
   ============================================ */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: white !important; }
.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }

.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--bg-secondary) !important; }
.bg-dark { background: var(--bg-dark) !important; }
.bg-gradient { background: var(--primary-gradient) !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-full { border-radius: 9999px !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }

/* Spacing */
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.pt-80 { padding-top: 80px; }
.pb-80 { padding-bottom: 80px; }
.pt-60 { padding-top: 60px; }
.pb-60 { padding-bottom: 60px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }
.pt-150 { padding-top: 150px; }
.pt-175 { padding-top: 175px; }
.pt-200 { padding-top: 200px; }
.pb-200 { padding-bottom: 200px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-80 { margin-bottom: 80px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.ml-15 { margin-left: 15px; }
.ml-20 { margin-left: 20px; }
.p-25 { padding: 25px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }
.pt-70 { padding-top: 70px; }
.pb-70 { padding-bottom: 70px; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .main-menu {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb-title {
        font-size: 2rem;
    }
    
    .pt-175 {
        padding-top: 120px;
    }
    
    .pt-200 {
        padding-top: 150px;
    }
    
    .pb-200 {
        padding-bottom: 100px;
    }
    
    .hero-area {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-img {
        margin-top: 40px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-link {
        justify-content: center;
        margin-top: var(--space-md);
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .breadcrumb-title {
        font-size: 1.75rem;
    }
    
    .pt-100 {
        padding-top: 60px;
    }
    
    .pb-100 {
        padding-bottom: 60px;
    }
    
    .pt-80, .pb-80 {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .p-40 {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-btn {
        flex-direction: column;
    }
    
    .hero-btn .tp-btn {
        width: 100%;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }
    
    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
    }
    
    .toast {
        max-width: 100%;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .tp-btn {
        padding: 12px 24px;
        font-size: var(--font-size-sm);
    }
    
    .calculator-card {
        padding: var(--space-lg);
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: var(--font-size-sm);
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .trust-badges {
        gap: var(--space-md);
    }
    
    .trust-badge img {
        max-height: 35px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header-area,
    .footer-area,
    .whatsapp-float,
    .scroll-top,
    .cart-sidebar,
    .cart-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #e09000;
        --text-primary: #000;
        --text-secondary: #333;
        --border-color: #000;
    }
    
    .tp-btn {
        border: 2px solid currentColor;
    }
}

/* ============================================
   HOME PAGE STYLES - Professional UX
   ============================================ */

/* Hero Section */
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #fefefe 0%, #f8f6f3 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.min-vh-80 {
    min-height: 80vh;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    bottom: 10%;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    top: 40%;
    right: 20%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 162, 39, 0.1);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.text-gold {
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--secondary-color);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    border-radius: 32px;
    padding: 50px 18px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.app-logo {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-color);
}

.app-balance {
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.app-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.app-action i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.app-action span {
    font-size: 0.625rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.app-price-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    margin-bottom: 12px;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.price-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-change.positive {
    color: #4ade80;
}

.price-change.negative {
    color: #f87171;
}

/* App Chart Card (mini sparkline) */
.app-chart-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chart-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.chart-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chart-badge.positive {
    background: rgba(74, 222, 128, 0.15);
    color: #16a34a;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    height: 40px;
}

.chart-bars span {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--primary-color), rgba(201, 162, 39, 0.35));
    border-radius: 3px 3px 0 0;
    animation: barGrow 1.2s ease-out backwards;
}

.chart-bars span:nth-child(1) { animation-delay: 0.05s; }
.chart-bars span:nth-child(2) { animation-delay: 0.15s; }
.chart-bars span:nth-child(3) { animation-delay: 0.25s; }
.chart-bars span:nth-child(4) { animation-delay: 0.35s; }
.chart-bars span:nth-child(5) { animation-delay: 0.45s; }
.chart-bars span:nth-child(6) { animation-delay: 0.55s; }
.chart-bars span:nth-child(7) { animation-delay: 0.65s; }

@keyframes barGrow {
    from { height: 0; opacity: 0; }
    to { height: var(--h, 50%); opacity: 1; }
}

/* App Bottom Nav */
.app-bottom-nav {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px 4px 14px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    margin-left: -18px;
    margin-right: -18px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
}

.nav-item i {
    font-size: 0.95rem;
}

.nav-item span {
    font-size: 0.6rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 20%;
    left: 0;
}

.floating-badge.badge-2 {
    bottom: 20%;
    right: 0;
    animation-delay: -3s;
}

/* Trust Bar */
.trust-bar {
    background: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 28px 0;
}

.trust-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 700;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-logos img {
    height: 42px;
    opacity: 1;
    transition: transform var(--transition-base);
}

.trust-logos img:hover {
    transform: translateY(-2px);
}

/* Section Styles */
.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.1);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

/* Gold Price Section */
.gold-price-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.price-cards-wrapper {
    margin-bottom: 24px;
}

.price-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.price-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card-header {
    margin-bottom: 16px;
}

.price-type {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-weight {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-card-body {
    margin-bottom: 20px;
}

.price-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.price-update-info {
    margin-top: 24px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    color: inherit;
    border: 1px solid transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bg-gold-light { background: rgba(201, 162, 39, 0.1); }
.bg-green-light { background: rgba(34, 197, 94, 0.1); }
.bg-blue-light { background: rgba(59, 130, 246, 0.1); }
.bg-silver-light { background: rgba(148, 163, 184, 0.1); }
.bg-orange-light { background: rgba(249, 115, 22, 0.1); }
.bg-purple-light { background: rgba(139, 92, 246, 0.1); }

.text-purple { color: #8b5cf6; }

.service-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.service-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.service-arrow {
    margin-left: auto;
    color: var(--text-muted);
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.steps-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 24px;
}

.step-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
}

.step-content h4 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: rgba(201, 162, 39, 0.3);
    margin-top: 80px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-top: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-rating {
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-info strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--secondary-color);
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-header {
    position: sticky;
    top: 100px;
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--secondary-color);
    background: #fff;
    padding: 20px 24px;
    font-size: 1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--bg-secondary);
    color: var(--primary-dark);
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    background-size: 1rem;
}

.faq-accordion .accordion-body {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: var(--secondary-color);
}

.cta-card {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-xl);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Button Styles */
.btn-gold {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #c08519 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-outline-gold:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .home-hero {
        padding: 100px 0 60px;
    }
    
    .min-vh-80 {
        min-height: auto;
    }
    
    .hero-visual {
        margin-top: 40px;
        padding: 20px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .floating-badge {
        display: none;
    }
    
    .step-connector {
        display: none;
    }
    
    .steps-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .step-item {
        max-width: 100%;
    }
    
    .faq-header {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding: 80px 0 40px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-divider {
        height: 30px;
    }
    
    .trust-logos {
        gap: 16px;
    }
    
    .trust-logos img {
        height: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================
   Harga Emas — Chart & Calculator additions
   ========================================================== */

/* Delta pill next to price */
.price-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    vertical-align: middle;
}
.price-delta.up   { background: rgba(34,197,94,0.14); color: #16a34a; }
.price-delta.down { background: rgba(239,68,68,0.14); color: #dc2626; }

/* Sparkline inside buy/sell card */
.price-sparkline {
    padding: 8px 20px 4px;
    height: 60px;
}
.price-sparkline canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Main chart wrapper */
.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 340px;
}
.chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Stats strip above chart */
.chart-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 18px;
}
.chart-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.chart-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.chart-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chart-stat-delta {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 1.05rem;
    font-weight: 700;
}
.chart-stat-delta small { font-weight: 500; font-size: 0.75rem; opacity: 0.75; }
.chart-stat-delta.up   { color: #16a34a; }
.chart-stat-delta.down { color: #dc2626; }

/* Chart help details */
.chart-help {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.chart-help summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    list-style: none;
}
.chart-help summary::-webkit-details-marker { display: none; }
.chart-help[open] summary { margin-bottom: 6px; }
.chart-help ul { padding-left: 20px; }
.chart-help ul li + li { margin-top: 4px; }

@media (max-width: 576px) {
    .chart-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .chart-stat-value { font-size: 0.95rem; }
}

/* ==========================================================
   FAQ Page — Toolbar, Accordion, CTA
   ========================================================== */
.faq-toolbar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.faq-search {
    position: relative;
    margin-bottom: 14px;
}
.faq-search i.fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.faq-search input {
    width: 100%;
    padding: 14px 46px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8f9fa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
    background: #fff;
}
.faq-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
}
.faq-search-clear:hover { background: var(--bg-secondary); color: var(--secondary-color); }

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.faq-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.faq-cat-pill:hover {
    background: var(--bg-secondary);
    color: var(--secondary-color);
}
.faq-cat-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.faq-cat-pill i { font-size: 0.8rem; }

/* Accordion items */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover { border-color: rgba(201,162,39,0.4); }
.faq-item .accordion-button {
    padding: 18px 22px;
    font-weight: 600;
    color: var(--secondary-color);
    background: #fff;
    box-shadow: none;
    font-size: 1rem;
}
.faq-item .accordion-button:not(.collapsed) {
    background: rgba(201,162,39,0.06);
    color: var(--primary-color);
}
.faq-item .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
    border-color: var(--primary-color);
}
.faq-item .accordion-body {
    padding: 4px 22px 22px;
    color: var(--text-secondary);
    line-height: 1.65;
}
.faq-item .accordion-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}
.faq-empty i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

/* Bottom CTA */
.faq-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 20px;
    flex-wrap: wrap;
}
.faq-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.faq-cta-body { flex: 1; min-width: 220px; }
.faq-cta-body h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: var(--secondary-color);
}
.faq-cta-body p { color: var(--text-secondary); }
.faq-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mt-70 { margin-top: 70px; }
.mb-40 { margin-bottom: 40px; }
.mb-10 { margin-bottom: 10px; }

@media (max-width: 576px) {
    .faq-cta { padding: 22px; text-align: center; flex-direction: column; }
    .faq-cta-body { text-align: center; }
    .faq-cta-actions { justify-content: center; width: 100%; }
    .faq-cta-actions .tp-btn,
    .faq-cta-actions .tp-btn-secondary { flex: 1; }
}


/* Range & mode toggles */
.chart-range-toggle .btn,
.calc-toggle .btn {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.chart-range-toggle .btn.active,
.calc-toggle .btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Legend / dataset toggles under the chart */
.chart-legend-toggle {
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}
.chart-toggle-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.chart-toggle-item input {
    accent-color: var(--primary-color);
}
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Quick calculator card */
.calc-card .calc-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}
.calc-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
    background: #fff;
}
.calc-input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 0;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input[type=number] { -moz-appearance: textfield; }
.calc-prefix, .calc-suffix {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.calc-prefix { margin-right: 8px; }
.calc-suffix { margin-left: 8px; }
.calc-swap i {
    background: var(--bg-secondary);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
}
.mt-15 { margin-top: 15px; }
.my-10 { margin-top: 10px; margin-bottom: 10px; }
.mt-10 { margin-top: 10px; }
.mb-15 { margin-bottom: 15px; }
.p-20  { padding: 20px; }

@media (max-width: 768px) {
    .chart-canvas-wrap { height: 260px; }
    .price-sparkline { height: 48px; }
}

/* ==========================================================
   Kalkulator Zakat Emas
   ========================================================== */
.zakat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.05);
}

.zakat-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffdf5 100%);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: 14px;
    margin-bottom: 24px;
}
.zakat-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    border-right: 1px solid rgba(201,162,39,0.15);
}
.zakat-info-item:last-child { border-right: 0; }
.zakat-info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.zakat-info-label i { color: var(--primary-color); margin-right: 4px; }
.zakat-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.zakat-form .form-label { font-weight: 600; color: var(--secondary-color); }
.zakat-form .input-group-lg .form-control { font-weight: 600; font-size: 1.05rem; }
.zakat-form .input-group-text { background: var(--bg-secondary); font-weight: 600; }
.zakat-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34,197,94,0.12);
    color: #16a34a;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-left: 4px;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

#gold-price-lock { border-color: var(--border-color); color: var(--text-muted); }
#gold-price-lock:hover { color: var(--primary-color); border-color: var(--primary-color); }

.zakat-form-actions { display: flex; justify-content: flex-end; }
.btn-reset {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
}
.btn-reset:hover { color: var(--primary-color); }

/* Result area */
.zakat-result {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px dashed var(--border-color);
}

.nisab-meter {
    margin-bottom: 20px;
}
.nisab-meter-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.nisab-meter-label { font-weight: 600; color: var(--secondary-color); font-size: 0.9rem; }
.nisab-meter-percent {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}
.nisab-meter-bar {
    position: relative;
    height: 14px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
}
.nisab-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, var(--primary-color) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.nisab-meter-fill.is-ok {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}
.nisab-meter-tick {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.15);
}
.nisab-meter-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.nisab-meter-foot i { color: var(--primary-color); margin-right: 3px; }

/* Status banner */
.zakat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.zakat-status i { font-size: 1.1rem; flex-shrink: 0; }
.zakat-status[data-status="idle"] {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
.zakat-status[data-status="warn"] {
    background: rgba(245,158,11,0.08);
    color: #b45309;
    border-color: rgba(245,158,11,0.25);
}
.zakat-status[data-status="ok"] {
    background: rgba(34,197,94,0.08);
    color: #15803d;
    border-color: rgba(34,197,94,0.25);
}

.zakat-breakdown {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
}
.zakat-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.92rem;
    color: var(--text-secondary);
    gap: 12px;
}
.zakat-breakdown-row:last-child { border-bottom: 0; }
.zakat-breakdown-row strong {
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.zakat-breakdown-formula strong { color: var(--primary-color); font-size: 0.9rem; }

.zakat-final {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8901f 100%);
    border-radius: 14px;
    color: #fff;
    margin-bottom: 18px;
}
.zakat-final-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.zakat-final-amount {
    display: block;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.zakat-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.zakat-cta-primary { flex: 1; min-width: 220px; text-align: center; }

/* Asnaf grid */
.asnaf-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}
.asnaf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.asnaf-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.asnaf-item:hover {
    transform: translateY(-3px);
    border-color: rgba(201,162,39,0.4);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.asnaf-icon {
    width: 48px; height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(201,162,39,0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.asnaf-item h6 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.asnaf-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* Syarat cards */
.syarat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.syarat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.syarat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.syarat-card h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 8px;
}
.syarat-card p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }

.mt-60 { margin-top: 60px; }
.mb-30 { margin-bottom: 30px; }

/* Responsive */
@media (max-width: 991px) {
    .asnaf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .zakat-card { padding: 22px; }
    .zakat-info-strip { grid-template-columns: 1fr; padding: 12px; }
    .zakat-info-item { border-right: 0; border-bottom: 1px solid rgba(201,162,39,0.15); padding-bottom: 8px; }
    .zakat-info-item:last-child { border-bottom: 0; padding-bottom: 6px; }
    .asnaf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .zakat-actions { flex-direction: column; }
    .zakat-cta-primary { width: 100%; }
    .zakat-actions .tp-btn-secondary { width: 100%; }
}

/* ==========================================================
   Kalkulator Waris (Faraid)
   ========================================================== */
.waris-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    color: #92400e;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.waris-disclaimer i { color: #d97706; font-size: 1.1rem; margin-top: 2px; }

.waris-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.05);
}

.waris-section {
    padding: 22px 0;
    border-bottom: 1px dashed var(--border-color);
}
.waris-section:last-of-type { border-bottom: 0; }
.waris-section:first-of-type { padding-top: 4px; }

.waris-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.waris-section-head h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}
.waris-step {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.waris-net-preview {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.waris-net-preview strong {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.waris-form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Gender selection */
.waris-gender {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.waris-gender-opt {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all 0.15s ease;
    background: #fff;
}
.waris-gender-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.waris-gender-opt span {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}
.waris-gender-opt span i { margin-right: 6px; color: var(--primary-color); }
.waris-gender-opt small { color: var(--text-muted); }
.waris-gender-opt:hover { border-color: rgba(201,162,39,0.4); }
.waris-gender-opt:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(201,162,39,0.06);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

/* Heir checkboxes */
.waris-heirs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.waris-heir-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s ease;
    user-select: none;
}
.waris-heir-check input { width: 18px; height: 18px; accent-color: var(--primary-color); cursor: pointer; }
.waris-heir-name { font-weight: 600; color: var(--secondary-color); font-size: 0.92rem; }
.waris-heir-name i { color: var(--primary-color); margin-right: 4px; }
.waris-heir-check:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(201,162,39,0.05);
}

/* Result */
.waris-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--primary-color);
}
.waris-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.waris-result-head h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}
.waris-result-head h4 i { color: var(--primary-color); margin-right: 6px; }
.waris-net-badge {
    background: var(--primary-gradient);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.waris-net-badge strong { font-variant-numeric: tabular-nums; font-size: 0.95rem; }

.waris-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.waris-status i { font-size: 1.1rem; flex-shrink: 0; }
.waris-status[data-status="idle"] { background: var(--bg-secondary); color: var(--text-secondary); }
.waris-status[data-status="warn"] { background: rgba(245,158,11,0.08); color: #b45309; border-color: rgba(245,158,11,0.25); }
.waris-status[data-status="ok"]   { background: rgba(34,197,94,0.08); color: #15803d; border-color: rgba(34,197,94,0.25); }
.waris-status[data-status="error"] { background: rgba(239,68,68,0.08); color: #b91c1c; border-color: rgba(239,68,68,0.25); }

/* Proportion bar */
.waris-bar {
    display: flex;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px var(--border-color);
    background: var(--bg-secondary);
}
.waris-bar-seg {
    height: 100%;
    transition: width 0.4s ease;
    min-width: 2px;
}

/* Table */
.waris-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
}
.waris-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.waris-table thead th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.waris-table tbody td {
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.waris-table tbody td:first-child { color: var(--secondary-color); font-weight: 600; }
.waris-table tbody tr:hover { background: rgba(201,162,39,0.04); }
.waris-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.waris-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 10px;
    color: #1e40af;
    font-size: 0.85rem;
    line-height: 1.5;
}
.waris-note i { color: #3b82f6; margin-right: 4px; }

.waris-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.waris-actions .tp-btn { flex: 1; min-width: 240px; text-align: center; }

/* Glossary */
.waris-glossary details {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
}
.waris-glossary summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    list-style: none;
}
.waris-glossary summary::-webkit-details-marker { display: none; }
.waris-glossary summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}
.waris-glossary details[open] summary::after { transform: rotate(180deg); }
.waris-glossary-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.waris-glossary-body strong { color: var(--primary-color); }

/* Responsive */
@media (max-width: 768px) {
    .waris-card { padding: 22px; }
    .waris-heirs { grid-template-columns: 1fr; }
    .waris-gender { grid-template-columns: 1fr; }
    .waris-table thead th,
    .waris-table tbody td { padding: 10px 8px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .waris-actions .tp-btn,
    .waris-actions .tp-btn-secondary { width: 100%; }
    .waris-net-badge { align-self: flex-start; }
}

/* ==========================================================
   Simulasi Deposito Emas
   ========================================================== */
.depo-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.depo-tier {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.depo-tier:hover {
    transform: translateY(-2px);
    border-color: rgba(201,162,39,0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.depo-tier-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.depo-tier-rate {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.depo-tier-rate span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 4px;
}
.depo-tier-best {
    background: linear-gradient(135deg, #fff9e6 0%, #fffdf5 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(201,162,39,0.15);
}
.depo-tier-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.depo-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.05);
}
.depo-card .form-label { font-weight: 600; color: var(--secondary-color); }
.depo-card .input-group-lg .form-control,
.depo-card .form-select-lg { font-weight: 600; font-size: 1.05rem; }
.depo-card .form-control:focus,
.depo-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.depo-form-actions { display: flex; justify-content: flex-end; }

.depo-result {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px dashed var(--border-color);
}

.depo-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.depo-summary-item {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    border: 1px solid transparent;
}
.depo-summary-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.depo-summary-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.depo-summary-rp {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.depo-summary-bonus {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.25);
}
.depo-summary-bonus .depo-summary-value { color: #16a34a; }
.depo-summary-bonus .depo-summary-label i { color: #16a34a; }
.depo-summary-total {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8901f 100%);
    color: #fff;
    border: 0;
}
.depo-summary-total .depo-summary-label { color: rgba(255,255,255,0.85); }
.depo-summary-total .depo-summary-value { color: #fff; }
.depo-summary-total .depo-summary-rp { color: rgba(255,255,255,0.85); }

.depo-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    border: 1px solid transparent;
}
.depo-status i { font-size: 1.1rem; flex-shrink: 0; }
.depo-status[data-status="ok"]   { background: rgba(34,197,94,0.08); color: #15803d; border-color: rgba(34,197,94,0.25); }
.depo-status[data-status="warn"] { background: rgba(245,158,11,0.08); color: #b45309; border-color: rgba(245,158,11,0.25); }

.depo-chart-wrap {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
}
.depo-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}
.depo-chart-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.depo-chart-head h5 i { color: var(--primary-color); }

.depo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.depo-actions .tp-btn { flex: 1; min-width: 240px; text-align: center; }

.mt-40 { margin-top: 40px; }

@media (max-width: 768px) {
    .depo-tiers { grid-template-columns: 1fr; }
    .depo-summary { grid-template-columns: 1fr; }
    .depo-card { padding: 22px; }
    .depo-tier-rate { font-size: 2rem; }
}
@media (max-width: 480px) {
    .depo-actions .tp-btn,
    .depo-actions .tp-btn-secondary { width: 100%; }
}

/* ==========================================================
   Harga Emas Fisik — Clean & Professional
   ========================================================== */

/* Trust badges strip under page header */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.trust-badge i { color: var(--primary-color); font-size: 0.8rem; }

/* Toolbar */
.fisik-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.fisik-brand-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 5px;
}
.fisik-brand-pill {
    padding: 8px 18px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}
.fisik-brand-pill:hover { color: var(--secondary-color); background: var(--bg-secondary); }
.fisik-brand-pill.active {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fisik-toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.fisik-search {
    position: relative;
    min-width: 200px;
}
.fisik-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.fisik-search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fisik-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.fisik-sort-select {
    padding: 9px 32px 9px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.fisik-sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

/* Group */
.fisik-group {
    margin-bottom: 36px;
}
.fisik-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.fisik-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.fisik-brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
    letter-spacing: -0.02em;
}
.fisik-group-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
}
.fisik-group-sub {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 2px;
}
.fisik-group-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 999px;
    white-space: nowrap;
}

/* Table */
.fisik-table-wrap {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.fisik-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.92rem;
}
/* Column widths: Berat | Harga | Aksi */
.fisik-table col.col-berat    { width: 32%; }
.fisik-table col.col-harga    { width: 42%; }
.fisik-table col.col-aksi     { width: 26%; }
.fisik-table th.text-end,
.fisik-table td.text-end { text-align: right; }
.fisik-table th.text-center,
.fisik-table td.text-center { text-align: center; }
.fisik-table thead th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}
.fisik-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.fisik-table thead th.sortable:hover {
    background: rgba(201,162,39,0.08);
    color: var(--secondary-color);
}
.fisik-sort-ind {
    display: inline-block;
    width: 10px;
    margin-left: 6px;
    opacity: 0.4;
    font-size: 0.7rem;
    vertical-align: middle;
}
.fisik-sort-ind::before { content: '⇅'; }
.fisik-table thead th[aria-sort="ascending"] .fisik-sort-ind {
    opacity: 1;
    color: var(--primary-color);
}
.fisik-table thead th[aria-sort="ascending"] .fisik-sort-ind::before { content: '▲'; }
.fisik-table thead th[aria-sort="descending"] .fisik-sort-ind {
    opacity: 1;
    color: var(--primary-color);
}
.fisik-table thead th[aria-sort="descending"] .fisik-sort-ind::before { content: '▼'; }

.fisik-table tbody td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
.fisik-table tbody tr {
    transition: background 0.12s ease;
}
.fisik-table tbody tr:hover {
    background: rgba(201,162,39,0.04);
}

.fisik-td-weight strong {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.fisik-td-price {
    color: var(--secondary-color) !important;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.fisik-td-permgram {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
}
.fisik-td-karat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(201,162,39,0.1);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}
.fisik-td-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.fisik-td-cta i { font-size: 0.7rem; transition: transform 0.15s ease; }
.fisik-td-cta:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.fisik-td-cta:hover i { transform: translateX(3px); }

/* States */
.fisik-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}
.fisik-empty i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}
.fisik-error {
    text-align: center;
    padding: 60px 20px;
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 16px;
    color: #b91c1c;
}
.fisik-error i { font-size: 2rem; margin-bottom: 12px; display: block; }

/* Responsive */
@media (max-width: 768px) {
    .fisik-toolbar { flex-direction: column; align-items: stretch; }
    .fisik-toolbar-right { justify-content: space-between; }
    .fisik-search { flex: 1; min-width: 0; }
    .fisik-group-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fisik-brand-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .fisik-brand-pill { white-space: nowrap; }
    .fisik-table thead th,
    .fisik-table tbody td { padding: 12px 14px; }
    .fisik-table thead th { font-size: 0.72rem; }
    .fisik-td-price { font-size: 0.95rem; }
    .fisik-td-cta { padding: 6px 12px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .fisik-table thead th,
    .fisik-table tbody td { padding: 10px 10px; }
    .fisik-brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
}





