/* =============================================
   KASIR PINTAR - Design System & Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   CSS Variables - Design Tokens
   ============================================= */
:root {
    --primary: #00C896;
    --primary-dark: #00A87A;
    --primary-light: #E6FBF5;
    --secondary: #1A1A2E;
    --accent: #FF6B35;
    --accent-dark: #E55A24;
    --purple: #7C3AED;
    --blue: #3B82F6;
    --yellow: #F59E0B;
    --red: #EF4444;

    --bg-main: #F0F4F8;
    --bg-card: #FFFFFF;
    --bg-sidebar: #0F172A;
    --bg-sidebar-hover: #1E293B;

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;

    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --sidebar-width: 250px;
    --header-height: 64px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

input, button, select, textarea {
    font-family: inherit;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-md { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.text-white { color: white; }
.text-center { text-align: center; }

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover::after { opacity: 0.08; }
.btn:active::after { opacity: 0.15; }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 200, 150, 0.4);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-accent:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-main);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.green::before { background: linear-gradient(90deg, var(--primary), #00F5A0); }
.stat-card.orange::before { background: linear-gradient(90deg, var(--accent), #FF9A72); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--purple), #A78BFA); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--blue), #60A5FA); }

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.green { background: var(--primary-light); color: var(--primary); }
.stat-icon.orange { background: #FFF0EB; color: var(--accent); }
.stat-icon.purple { background: #F5F3FF; color: var(--purple); }
.stat-icon.blue { background: #EFF6FF; color: var(--blue); }

.stat-content .label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.stat-content .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-content .change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.stat-content .change.up { color: var(--primary); }
.stat-content .change.down { color: var(--red); }

/* =============================================
   Forms
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

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

.input-group {
    position: relative;
    display: flex;
}

.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 42px;
}

.input-group-right .input-icon {
    left: auto;
    right: 14px;
}

.input-group-right .form-control {
    padding-left: 16px;
    padding-right: 42px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
}

/* =============================================
   Tables
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

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

.table tbody tr {
    transition: background 0.15s;
}

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

/* =============================================
   Badges
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--primary-light); color: var(--primary-dark); }
.badge-warning { background: #FFF7ED; color: #D97706; }
.badge-danger { background: #FEF2F2; color: #DC2626; }
.badge-info { background: #EFF6FF; color: #2563EB; }
.badge-purple { background: #F5F3FF; color: #7C3AED; }
.badge-gray { background: #F1F5F9; color: #64748B; }

/* =============================================
   Toast Notifications
   ============================================= */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast.success { border-color: var(--primary); }
.toast.error { border-color: var(--red); }
.toast.warning { border-color: var(--yellow); }
.toast.info { border-color: var(--blue); }

.toast .toast-icon { font-size: 18px; }
.toast.success .toast-icon { color: var(--primary); }
.toast.error .toast-icon { color: var(--red); }
.toast.warning .toast-icon { color: var(--yellow); }
.toast.info .toast-icon { color: var(--blue); }

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

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

.toast.hide {
    animation: slideOut 0.3s ease forwards;
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px 28px;
}

.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* =============================================
   Loading Spinner
   ============================================= */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-primary {
    border-color: rgba(0, 200, 150, 0.2);
    border-top-color: var(--primary);
}

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

/* =============================================
   App Layout (Dashboard)
   ============================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-logo {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-logo-text .name {
    font-size: 16px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.sidebar-logo-text .tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    padding: 8px 8px 4px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
}

.nav-item .nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.sidebar-bottom {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-user:hover {
    background: rgba(255,255,255,0.07);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-info .name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.user-info .role {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 17px;
    transition: var(--transition);
    text-decoration: none;
}

.topbar-icon-btn:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.page-content {
    padding: 24px;
    flex: 1;
}

/* =============================================
   Landing Page Styles
   ============================================= */
.landing-body {
    background: #FFFFFF;
}

/* Navbar Landing */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.landing-nav.scrolled {
    box-shadow: var(--shadow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    padding-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0F2027 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 150, 0.15);
    border: 1px solid rgba(0, 200, 150, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), #00F5A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}

.hero-stat .number {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.hero-stat .label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-phone-mockup {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero-phone-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.05), transparent);
    pointer-events: none;
}

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

.mock-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.mock-date {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mock-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 14px;
}

.mock-stat-card .m-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.mock-stat-card .m-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.mock-stat-card .m-value.green { color: var(--primary); }
.mock-stat-card .m-value.orange { color: var(--accent); }

.mock-chart-area {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}

.mock-chart-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}

.mock-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.mock-bar {
    flex: 1;
    border-radius: 4px;
    background: rgba(0, 200, 150, 0.3);
    transition: var(--transition);
}

.mock-bar.active {
    background: linear-gradient(0deg, var(--primary), #00F5A0);
}

.mock-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-tx {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.mock-tx .name {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.mock-tx .amount {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

/* Sections */
.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--primary), #00F5A0); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent), #FF9A72); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--purple), #A78BFA); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, var(--blue), #60A5FA); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, var(--yellow), #FCD34D); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, #EC4899, #F472B6); }

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 2px solid var(--border-light);
    position: relative;
    transition: var(--transition);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(145deg, #FAFFFE, #F0FBF8);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-period {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.pricing-feature .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pricing-feature .check.no {
    background: #F1F5F9;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    color: #F59E0B;
    font-size: 15px;
}

.testi-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.testi-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.testi-business {
    font-size: 12px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
}

/* Footer */
.footer {
    background: #0B1120;
    padding: 60px 40px 30px;
    color: rgba(255,255,255,0.6);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

/* =============================================
   POS / Kasir Layout
   ============================================= */
.kasir-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

/* Product Panel */
.product-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
    background: var(--bg-main);
}

.product-panel-header {
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.category-filter::-webkit-scrollbar { height: 3px; }
.category-filter::-webkit-scrollbar-track { background: transparent; }
.category-filter::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.product-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    align-content: start;
}

.product-grid::-webkit-scrollbar { width: 4px; }
.product-grid::-webkit-scrollbar-track { background: transparent; }
.product-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.product-item {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.12);
}

.product-item:active {
    transform: scale(0.97);
}

.product-item .prod-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.product-item .prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item .prod-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-item .prod-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.product-item .prod-stok {
    font-size: 11px;
    color: var(--text-muted);
}

.product-item .prod-stok.low {
    color: var(--red);
    font-weight: 600;
}

.product-item .add-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.product-item.in-cart .add-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Cart Panel */
.cart-panel {
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

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

.cart-title {
    font-size: 16px;
    font-weight: 700;
}

.cart-count {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    gap: 12px;
}

.cart-empty-icon {
    font-size: 48px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    animation: fadeIn 0.2s ease;
}

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

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

.cart-item-emoji {
    width: 36px;
    height: 36px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-item-subtotal {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: inherit;
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.qty-btn.remove:hover {
    border-color: var(--red);
    color: var(--red);
    background: #FEF2F2;
}

.qty-value {
    font-size: 14px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* Cart Summary */
.cart-summary {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 12px;
    border-top: 1.5px dashed var(--border);
    margin-top: 6px;
}

.summary-row.total .amount {
    color: var(--primary);
}

/* Payment Area */
.payment-area {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.kembalian-display {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kembalian-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.kembalian-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Struk / Receipt */
.struk-modal .modal {
    max-width: 400px;
}

.struk {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

.struk-header {
    text-align: center;
    margin-bottom: 12px;
}

.struk-header .toko-name {
    font-size: 16px;
    font-weight: 700;
}

.struk-divider {
    border: none;
    border-top: 1px dashed #999;
    margin: 10px 0;
}

.struk-row {
    display: flex;
    justify-content: space-between;
}

.struk-row.total {
    font-weight: 700;
    border-top: 1px solid #333;
    margin-top: 4px;
    padding-top: 4px;
}

.struk-footer {
    text-align: center;
    margin-top: 12px;
    color: #666;
    font-size: 11px;
}

/* =============================================
   Auth Pages
   ============================================= */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0B2818 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

.auth-visual h2 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.auth-visual p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 32px;
}

.auth-visual-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.8);
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0, 200, 150, 0.15);
    border: 1px solid rgba(0, 200, 150, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-feature-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.auth-feature-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.auth-form-side {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.auth-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.auth-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.auth-footer-text a {
    color: var(--primary);
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.alert-success {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 200, 150, 0.3);
}

/* =============================================
   Utilities
   ============================================= */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none !important; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kasir-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 0 20px;
    }
    .nav-links { display: none; }
    .hero-title { font-size: 36px; }
    .section { padding: 60px 20px; }
    .section-title { font-size: 28px; }
    .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .auth-page {
        grid-template-columns: 1fr;
    }
    .auth-visual { display: none; }
    .auth-form-side { padding: 40px 24px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .kasir-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    .product-panel { min-height: 0; }
    .cart-panel {
        height: 50vh;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   Animations
   ============================================= */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #00F5A0, var(--blue), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

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

.pulse { animation: pulse 2s ease infinite; }

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

@keyframes skeleton-load {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* =============================================
   Print Styles (Struk)
   ============================================= */
@media print {
    body > *:not(.print-area) { display: none !important; }
    .print-area { display: block !important; }
}

/* =============================================
   FIX SCROLL & LAYOUT TINGGI PENUH
   ============================================= */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-main, #F0F4F8);
}

.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.main-content {
    margin-left: var(--sidebar-width, 250px);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto; /* Memastikan konten bisa di-scroll penuh sampai bawah */
}

.page-content {
    padding: 24px;
    flex: 1;
    padding-bottom: 120px; /* Ruang ekstra bawah agar baris terakhir tidak tertutup */
}

/* =============================================
   RESPONSIVE SIDEBAR & DRAWER (TABLET & HP)
   ============================================= */
.sidebar-toggle-btn {
    display: none; /* Hilang di Laptop / Layar Besar */
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px 8px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
.sidebar-overlay.show {
    display: block !important;
}

@media (max-width: 1024px) {
    /* Munculkan tombol hamburger khusus Tablet & HP */
    .sidebar-toggle-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Sembunyikan sidebar di luar layar secara default */
    .app-layout .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        height: 100vh !important;
        z-index: 999 !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }

    /* Munculkan sidebar saat kelas 'show' ditambahkan via JS */
    .app-layout .sidebar.show {
        left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}