/* TAKEMI STORE - Main CSS */
/* Color Scheme: Crimson Red + Pure Black */

:root {
    /* Takemi Brand Colors - Attractive Red */
    --takemi-red: #EF4444;
    --takemi-red-dark: #DC2626;
    --takemi-red-light: #F87171;
    
    /* Backgrounds - Proper Gray Tones */
    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --bg-card: #3f3f46;
    --bg-hover: #52525b;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    
    /* Borders */
    --border-primary: rgba(239, 68, 68, 0.3);
    --border-secondary: rgba(255, 255, 255, 0.1);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Transition */
    --theme-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ─── Light Theme ─────────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f4f4f5;
    --bg-secondary: #e4e4e7;
    --bg-card: #ffffff;
    --bg-hover: #d4d4d8;
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --border-primary: rgba(239, 68, 68, 0.3);
    --border-secondary: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
    background-image: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .announcement-bar {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

/* ─── Theme Toggle Button ─────────────────────────────────── */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-secondary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--takemi-red);
    color: var(--takemi-red);
    transform: rotate(20deg);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #16a34a 0%, #059669 100%);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
}

.announcement-content {
    display: flex;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

.announcement-content span {
    padding: 0 4rem;
    font-weight: 600;
    font-size: 0.875rem;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.5));
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(220, 38, 38, 0.15);
    color: var(--takemi-red);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-login,
.btn-profile,
.btn-logout {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover,
.btn-profile:hover,
.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Swap order: image on left, text on right */
.hero-left {
    order: 2;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--takemi-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left h1 .verified {
    color: #3b82f6;
    -webkit-text-fill-color: #3b82f6;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--takemi-red);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--takemi-red);
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-illustration {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.stats-section {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--takemi-red);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--takemi-red);
}

/* Live Transactions */
.transactions-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.last-update {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.transactions-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 1.5rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.transaction-item:last-child {
    margin-bottom: 0;
}

.transaction-item:hover {
    background: rgba(220, 38, 38, 0.05);
}

.transaction-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--takemi-red), var(--takemi-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
}

.transaction-info strong {
    color: var(--text-primary);
}

.transaction-time {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--takemi-red);
    font-size: 1.25rem;
}

/* Order Section */
.order-section {
    padding: 4rem 0;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.method-card {
    background: var(--bg-card);
    border: 2px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.method-card:hover {
    border-color: var(--takemi-red);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
}

.method-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.method-stats {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1rem 0;
}

.packages-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.package-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #252525 100%);
    border: 2px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.package-card:hover,
.package-card.selected {
    border-color: var(--takemi-red);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.package-card.popular {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-card) 100%);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.package-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--takemi-red);
    margin-bottom: 0.5rem;
}

.package-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.package-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--takemi-red);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    margin-bottom: 1rem;
}

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Help Section */
.help-section {
    padding: 4rem 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.help-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-8px);
    border-color: var(--takemi-red);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
}

.help-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.help-card h3 {
    margin-bottom: 0.5rem;
}

.help-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--takemi-red);
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-badge {
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--takemi-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-secondary);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
/* ═══════════════════════════════════════════════
   HAMBURGER MENU
═══════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1001;    /* above drawer overlay */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.hamburger:hover, .hamburger:active { background: rgba(255,255,255,0.12); }
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #f1f5f9;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    touch-action: manipulation;
}
.nav-drawer.open {
    visibility: visible;
    opacity: 1;
}
.nav-drawer-panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-card, #13151c);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0.875rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    -webkit-overflow-scrolling: touch;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-logo {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-primary, rgba(255,255,255,0.08));
    margin-bottom: 0.5rem;
    font-weight: 700; font-size: 1.1rem;
    color: var(--text-primary, #f1f5f9);
    text-decoration: none;
}
.nav-drawer-logo img { height: 32px; }
.nav-drawer-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 10px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    text-decoration: none;
    font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s;
}
.nav-drawer-link:hover, .nav-drawer-link.active {
    background: rgba(220,38,38,0.1);
    color: var(--takemi-red, #ef4444);
}
.nav-drawer-link i { width: 20px; text-align: center; }

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid,
    .method-cards,
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;          /* tinggi tetap agar logo tidak wrap */
        min-height: 60px;
    }
    
    /* Logo: paksa 1 baris, tidak wrap */
    .logo {
        font-size: 1rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .logo img {
        height: 32px !important;
    }
    
    /* nav-actions: tidak wrap, shrink */
    .nav-actions {
        flex-shrink: 0;
        gap: 0.4rem;
    }
    
    /* Theme button lebih kecil */
    .theme-toggle-btn {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
    }
    
    /* btn-login lebih compact */
    .btn-login {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.8rem !important;
        gap: 0.3rem !important;
    }
}

@media (max-width: 380px) {
    /* Sangat sempit: sembunyikan label "Masuk", hanya ikon */
    .btn-login span, .btn-login-text { display: none; }
    .btn-login { padding: 0.45rem 0.6rem !important; }
    .logo span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
}

/* FAQ Section */
.faq-item { margin-bottom: 1rem; background: var(--bg-card); border-radius: 12px; overflow: hidden; }
.faq-question { width: 100%; padding: 1.5rem; background: none; border: none; color: var(--text-primary); font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.faq-question:hover { background: rgba(239, 68, 68, 0.1); }
.faq-question i { transition: transform 0.3s; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.show { max-height: 500px; }
.faq-answer p { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.8; }

/* Modern FAQ Styling */
.faq-item-modern { display: flex; gap: 1.5rem; background: var(--bg-card); border-radius: 16px; padding: 1.5rem; transition: all 0.3s; }
.faq-item-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.faq-icon-wrapper { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.75rem; flex-shrink: 0; }
.faq-content-wrapper { flex: 1; }
.faq-question-modern { width: 100%; padding: 0; background: none; border: none; color: var(--text-primary); font-size: 1.125rem; font-weight: 700; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question-modern i { transition: transform 0.3s; color: var(--takemi-red); }
.faq-question-modern.active i { transform: rotate(180deg); }
.faq-answer-modern { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; margin-top: 0; }
.faq-answer-modern.show { max-height: 2000px; margin-top: 1.5rem; }

/* Clickable Announcement Items */
.announcement-item { display: inline-block; color: white; text-decoration: none; margin: 0 2rem; transition: all 0.3s; position: relative; }
.announcement-item:hover { color: #fbbf24; transform: scale(1.05); }
.announcement-item:hover::after { content: '→'; margin-left: 0.5rem; }