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

/* Color Variables - Premium Slate & Electric Cyan Theme */
:root {
    --bg-main: #080c14;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.55);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --color-primary: #0ea5e9;
    --color-primary-glow: rgba(14, 165, 233, 0.4);
    --color-accent: #10b981;
    --color-accent-glow: rgba(16, 185, 129, 0.4);
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --grad-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-glow: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.25);
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --color-primary: #0284c7;
    --color-primary-glow: rgba(2, 132, 199, 0.25);
    --color-accent: #059669;
    --color-accent-glow: rgba(5, 150, 105, 0.25);
    --grad-primary: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    --grad-accent: linear-gradient(135deg, #059669 0%, #047857 100%);
    --grad-glow: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.12);
}

/* Reset and Scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
}

.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation Header */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    border-top: none;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-size: 2rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.7px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    opacity: 0.95;
}

.btn-accent {
    background: var(--grad-accent);
    color: white;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    opacity: 0.95;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-icon {
    padding: 12px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    justify-content: center;
}

/* Marketing Hero Section */
.hero-section {
    padding: 60px 45px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin: 0 0 35px 0;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 45px rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(1200px) rotateY(-12deg) rotateX(4deg);
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 55px rgba(14, 165, 233, 0.35);
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 30px;
        gap: 40px;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        transform: none;
        max-width: 80%;
    }
    .hero-image:hover {
        transform: scale(1.02);
    }
}

/* Feature Grid Showcase */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.feature-card {
    padding: 30px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.feature-icon {
    font-size: 2.2rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* INTERACTIVE APP SIMULATOR */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

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

.simulator-outer {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    border: 4px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.simulator-frame {
    display: grid;
    grid-template-columns: 3fr 2.5fr;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0b0f19;
}

/* Simulator Items List */
.sim-catalog {
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #1e293b;
    background-color: #0f172a;
}

.sim-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e293b;
}

.sim-catalog-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.sim-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.sim-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sim-item-btn:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--color-primary);
    transform: scale(1.03);
}

.sim-item-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.sim-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.sim-item-price {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 4px;
}

/* Simulator POS Billing Screen */
.sim-billing {
    display: flex;
    flex-direction: column;
    background: #090d16;
    padding: 20px;
}

.sim-bill-header {
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
}

.sim-bill-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.02);
    padding: 6px 10px;
    border-radius: 6px;
}

.sim-bill-totals {
    border-top: 1px solid #1e293b;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
}

.sim-total-line {
    display: flex;
    justify-content: space-between;
}

.sim-grand-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Receipt Roll Down Animation */
.sim-receipt-container {
    position: relative;
    width: 100%;
}

.receipt-paper {
    background: white;
    color: #0f172a;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
}

.receipt-paper.roll-down {
    max-height: 500px;
    border-top: 2px dashed #94a3b8;
}

.receipt-line {
    border-bottom: 1px dashed #64748b;
    margin: 8px 0;
}

/* INTERACTIVE PRICING ROI CALCULATOR */
.calculator-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    padding: 35px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-header-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.calc-val {
    color: var(--color-primary);
    font-size: 1.15rem;
}

.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #1e293b;
    outline: none;
    transition: background 450ms ease-in;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-primary-glow);
    transition: var(--transition-smooth);
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.calc-result-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.calc-result-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
}

/* Modals & Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 520px;
    padding: 35px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* Leads Management Panel (admin.html) */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-card-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    padding: 15px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
}

.admin-card-info h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.admin-card-info p {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.admin-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.status-select option {
    background: #0f172a;
    color: white;
}

/* Toast Banners */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    min-width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    background: var(--grad-accent);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Responsive elements */
@media (max-width: 768px) {
    .navbar .btn span {
        display: none;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .simulator-frame {
        grid-template-columns: 1fr;
        height: auto;
    }
    .sim-catalog {
        border-right: none;
        border-bottom: 1px solid #1e293b;
        height: 250px;
    }
    .sim-billing {
        height: 350px;
    }
    .calculator-container {
        grid-template-columns: 1fr;
    }
}
