:root {
    --primary: #0D1B2A;
    --primary-light: #1a3a5c;
    --accent: #FFB627;
    --accent-dark: #e6a020;
    --light: #F8F9FA;
    --text: #2d3748;
    --muted: #6c757d;
    --border: #e2e8f0;
    --success: #38a169;
    --danger: #e53e3e;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ── Navbar ── */
.navbar-main {
    background: var(--primary);
    padding: 0.9rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-main .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent) !important;
    letter-spacing: -0.3px;
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.9rem !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--accent) !important;
    background: rgba(255,182,39,0.08);
}

.navbar-toggler-icon { background-color: rgba(255,255,255,0.8); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #1a3a5c 60%, #0f2d4a 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 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.03'%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") repeat;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    margin-bottom: 1.2rem;
}

.hero h1 .accent { color: var(--accent); }

.hero .lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,182,39,0.15);
    color: var(--accent);
    border: 1px solid rgba(255,182,39,0.3);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-float {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
}

.hero-stat { text-align: center; }
.hero-stat .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.hero-stat .lbl {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

/* ── Buttons ── */
.btn-accent {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 0.72rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 0.95rem;
    transition: all 0.28s;
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,182,39,0.45);
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    transition: all 0.28s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ── Section ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }

.section-label {
    display: inline-block;
    background: rgba(13,27,42,0.06);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

.section-title .accent { color: var(--accent); }

.divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

.divider-center { margin: 1rem auto 1.5rem; }

/* ── Feature Cards ── */
.feature-card {
    border: none;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.feature-icon i {
    color: var(--accent);
    font-size: 1.4rem;
}

.feature-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Testimonials ── */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars { color: var(--accent); font-size: 0.9rem; }

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 0;
    color: #fff;
}

/* ── Footer ── */
footer {
    background: #060e17;
    color: rgba(255,255,255,0.72);
    padding: 4rem 0 1.5rem;
}

footer .footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
}

footer h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    transition: all 0.2s;
    text-decoration: none;
    margin-right: 0.5rem;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ── About Page ── */
.team-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-4px); }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--accent);
}

/* ── Contact ── */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(13,27,42,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.form-control {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,27,42,0.08);
}

/* ── Toko ── */
.toko-navbar {
    background: #fff;
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0.75rem 0;
}

.toko-navbar .brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    text-decoration: none;
}

.toko-navbar .brand span { color: var(--accent); }

.search-bar {
    display: flex;
    flex: 1;
    max-width: 480px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover { background: var(--primary-light); }

.cart-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0.4rem;
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.toko-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 1rem;
    margin-top: 5rem;
}

.toko-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.toko-footer a:hover { color: var(--accent); }

/* ── Product Cards ── */
.product-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.28s, box-shadow 0.28s;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
    text-decoration: none;
    color: inherit;
}

.product-thumb {
    height: 185px;
    background: linear-gradient(135deg, #1a3a5c 0%, #0D1B2A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: rgba(255,182,39,0.65);
}

.product-body { padding: 1.2rem; }

.cat-badge {
    background: #e8f0fe;
    color: #1a56db;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.product-price {
    color: #c0392b;
    font-weight: 700;
    font-size: 1.15rem;
}

.product-stock { font-size: 0.8rem; color: var(--muted); }

/* ── Category Pills ── */
.cat-pill {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    margin: 0.2rem;
    background: #fff;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* ── Cart ── */
.cart-table th {
    background: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    border: none;
    padding: 0.9rem 1rem;
}

.cart-table td {
    vertical-align: middle;
    padding: 1rem;
    border-color: var(--border);
}

.cart-product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* ── Checkout ── */
.checkout-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.order-item-row:last-child { border-bottom: none; }

/* ── Success ── */
.success-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #f0fff4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--success);
}

/* ── Admin ── */
.admin-wrap { display: flex; min-height: 100vh; background: #f0f2f5; }

.admin-sidebar {
    width: 240px;
    background: var(--primary);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.admin-sidebar .sidebar-brand .name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
    line-height: 1.3;
}

.admin-sidebar .sidebar-brand .role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-sidebar nav { padding: 1rem 0; flex: 1; }

.admin-sidebar .nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-sidebar .nav-item a:hover,
.admin-sidebar .nav-item a.active {
    background: rgba(255,182,39,0.1);
    color: var(--accent);
}

.admin-sidebar .nav-item a i { width: 18px; text-align: center; font-size: 0.9rem; }

.admin-sidebar .nav-section {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    margin-top: 0.5rem;
}

.admin-content {
    margin-left: 240px;
    padding: 2rem;
    flex: 1;
}

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

.admin-topbar h1 {
    font-size: 1.4rem;
    color: var(--primary);
}

.stat-card {
    border-radius: 14px;
    padding: 1.5rem;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.stat-card .num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-card .lbl { font-size: 0.85rem; opacity: 0.85; }
.stat-card .icon { font-size: 2rem; opacity: 0.35; }

.stat-blue { background: linear-gradient(135deg, #1565c0, #1976d2); }
.stat-green { background: linear-gradient(135deg, #2e7d32, #388e3c); }
.stat-purple { background: linear-gradient(135deg, #6a1b9a, #7b1fa2); }

.admin-table th {
    background: #f8f9fa;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    border: none;
    padding: 0.85rem 1rem;
    font-family: 'Poppins', sans-serif;
}

.admin-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    border-color: #f0f0f0;
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-done { background: #d1e7dd; color: #0a3622; }

.ping-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.ping-output {
    background: #1a1a2e;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 180px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ── Admin Login ── */
.admin-login-wrap {
    min-height: 100vh;
    background: linear-gradient(135deg, #0D1B2A 0%, #1a3a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.admin-login-card .logo-area {
    text-align: center;
    margin-bottom: 1.8rem;
}

.admin-login-card .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
    font-size: 1.8rem;
}

.admin-login-card h4 {
    color: var(--primary);
    font-size: 1.2rem;
}

.btn-primary-dark {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    font-size: 0.95rem;
    transition: background 0.2s;
    cursor: pointer;
}

.btn-primary-dark:hover { background: var(--primary-light); }

/* ── Breadcrumb ── */
.toko-breadcrumb {
    background: var(--light);
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.toko-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.toko-breadcrumb a:hover { color: var(--accent); }

/* ── Misc ── */
.text-price { color: #c0392b; font-weight: 700; }
.page-header {
    background: var(--light);
    padding: 3rem 0;
    margin-bottom: 3rem;
}
.page-header h1 { color: var(--primary); }

.alert-success-custom {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0a3622;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.referer-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .hero h1 { font-size: 2rem; }
    .hero-float { margin-top: 2rem; }
    .search-bar { max-width: 100%; }
}
