:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-purple: #818cf8;
    --accent-green: #4ade80;
    --accent-yellow: #facc15;
    --accent-red: #f87171;
    --border-color: #334155;
    --sidebar-width: 260px;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 3rem;
}

.sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.sidebar nav a:hover,
.sidebar nav li.active a {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
}

/* View Switching Logic */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.search-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-bg.blue {
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
}

.icon-bg.yellow {
    background-color: rgba(250, 204, 21, 0.2);
    color: var(--accent-yellow);
}

.icon-bg.green {
    background-color: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
}

.icon-bg.purple {
    background-color: rgba(129, 140, 248, 0.2);
    color: var(--accent-purple);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Recent Repairs Table */
.recent-repairs,
.table-container {
    background-color: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

td {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.recibido {
    background-color: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.status-badge.en-proceso {
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-blue);
}

.status-badge.reparado {
    background-color: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
}

.status-badge.entregado {
    background-color: rgba(129, 140, 248, 0.2);
    color: var(--accent-purple);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    margin-right: 0.5rem;
}

.action-btn:hover {
    color: var(--accent-blue);
}

.action-btn.whatsapp:hover {
    color: #25D366;
}

.action-btn.delete:hover {
    color: var(--accent-red);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 650px;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform 0.3s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.section-title {
    font-size: 0.95rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

.section-title:first-of-type {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row.three-col .form-group {
    flex: 1;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s;
}

input.readonly-input {
    background-color: #1a1a2e;
    cursor: not-allowed;
    color: var(--accent-yellow);
    font-weight: bold;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-blue);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20000;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent-blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out forwards;
    min-width: 300px;
}

.toast.success {
    border-left-color: var(--accent-green);
}

.toast.error {
    border-left-color: var(--accent-red);
}

.toast.info {
    border-left-color: var(--accent-blue);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--accent-green);
}

.toast.error i {
    color: var(--accent-red);
}

.toast.info i {
    color: var(--accent-blue);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Settings Page */
.settings-container {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.setting-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.setting-card.danger-zone {
    border-color: rgba(248, 113, 113, 0.3);
}

.setting-card.danger-zone h3 {
    color: var(--accent-red);
}

/* Print Styles */
.receipt-hidden {
    display: none;
}

@media print {

    .app-container,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }

    .receipt-hidden {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        background: white;
        color: black;
    }

    @media print {
        @page {
            margin: 1cm;
        }

        body * {
            visibility: hidden;
        }

        #receipt-container,
        #receipt-container * {
            visibility: visible;
        }

        #receipt-container {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            color: #000;
            background: #fff;
            padding: 0;
            font-family: 'Inter', sans-serif;
        }

        .receipt-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 2px solid #000;
            margin-bottom: 20px;
            padding-bottom: 10px;
        }

        .receipt-title-group {
            text-align: right;
        }

        .receipt-title {
            font-size: 24pt;
            font-weight: 800;
            margin: 0;
        }

        .receipt-subtitle {
            font-size: 10pt;
            color: #555;
        }

        .receipt-logo {
            max-height: 60pt;
            max-width: 150pt;
        }

        .receipt-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .receipt-section {
            border: 1px solid #ddd;
            padding: 10px;
            border-radius: 4px;
        }

        .receipt-section h3 {
            font-size: 10pt;
            text-transform: uppercase;
            margin: 0 0 8px 0;
            border-bottom: 1px solid #eee;
            padding-bottom: 4px;
        }

        .receipt-section p {
            margin: 4px 0;
            font-size: 10pt;
        }

        .receipt-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        .receipt-table th {
            background: #f9f9f9;
            text-align: left;
            padding: 8px;
            font-size: 9pt;
            border-bottom: 2px solid #000;
        }

        .receipt-table td {
            padding: 8px;
            font-size: 10pt;
            border-bottom: 1px solid #eee;
        }

        .receipt-summary {
            margin-left: auto;
            width: 40%;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 4px 0;
            font-size: 10pt;
        }

        .summary-row.total {
            border-top: 2px solid #000;
            margin-top: 8px;
            padding-top: 8px;
            font-weight: 800;
            font-size: 12pt;
        }

        .receipt-footer {
            margin-top: 40px;
            font-size: 8pt;
            color: #666;
            text-align: center;
        }

        .signature-area {
            margin-top: 60px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 100px;
            text-align: center;
        }

        .sig-line {
            border-top: 1px solid #000;
            padding-top: 5px;
            font-size: 9pt;
        }

        .pattern-preview-receipt {
            margin: 20px auto;
            border: 1px dashed #ccc;
            width: 120px;
            height: 120px;
            position: relative;
        }
    }
}

/* Pattern Lock Styles */
.pattern-lock-container {
    width: 200px;
    height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
    user-select: none;
    touch-action: none;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    padding: 20px;
    gap: 20px;
}

.dot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.dot::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s;
}

.dot.active::after {
    background-color: var(--accent-blue);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--accent-blue);
}

.pattern-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.pattern-lines line {
    stroke: var(--accent-blue);
    stroke-width: 3;
    stroke-linecap: round;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Login Screen */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-overlay.hidden {
    display: none !important;
}

.login-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.login-logo {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-card h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-card .btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.login-card .btn-primary[style*="accent-purple"]:hover {
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: toast-in 0.3s ease-out;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- SaaS Landing Styles v5.0 --- */
.landing-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.landing-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.hero-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
    animation: fadeInDown 1s ease-out;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.feature-tile {
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.feature-tile:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #38bdf8;
}

.feature-tile h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-tile p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.5);
    transition: all 0.3s;
}

.landing-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.7);
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.1) 0, transparent 40%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.1) 0, transparent 40%),
        radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.1) 0, transparent 40%);
    pointer-events: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* =======================
   MODAL SYSTEM
   ======================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.modal.large-modal {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-header button,
.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-header button:hover,
.close-modal:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.section-title {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.readonly-input {
    background-color: rgba(56, 189, 248, 0.05) !important;
    cursor: not-allowed;
}

/* Pattern Lock */
.pattern-lock-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.dot:hover {
    background-color: var(--accent-blue);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.pattern-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* =======================
   PRINT STYLES (v6.0)
   Optimized for A4 / Thermal / Laser
   ======================= */
@media print {

    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the receipt container */
    #receipt-container,
    #receipt-container * {
        visibility: visible;
    }

    #receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white !important;
        color: black !important;
        font-family: 'Inter', 'Roboto', sans-serif;
    }

    /* Reset background colors for printing */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .invoice-container {
        max-width: 210mm;
        /* A4 Width */
        margin: 0 auto;
        padding: 10mm;
        background: white;
    }

    /* Header Section */
    .invoice-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #334155;
    }

    .header-left {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .receipt-logo {
        max-width: 60px;
        max-height: 60px;
        object-fit: contain;
    }

    .receipt-logo-icon {
        font-size: 32pt;
        color: #2563eb;
    }

    .shop-info h1 {
        font-size: 20pt;
        margin: 0;
        line-height: 1.1;
    }

    .shop-subtitle {
        font-size: 10pt;
        color: #64748b;
        margin: 2px 0 5px 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .shop-contact {
        font-size: 9pt;
        margin: 2px 0;
        color: #334155;
    }

    .shop-contact i {
        width: 15px;
        color: #2563eb;
    }

    .header-right {
        text-align: right;
    }

    .invoice-badge {
        background: #334155;
        color: white !important;
        padding: 4px 12px;
        font-size: 10pt;
        font-weight: 700;
        border-radius: 4px;
        display: inline-block;
        margin-bottom: 5px;
    }

    .invoice-number {
        font-size: 18pt;
        font-weight: 800;
        color: #1e293b;
    }

    .invoice-date {
        font-size: 10pt;
        color: #64748b;
    }

    /* Info Grid (Client & Device) */
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .info-box {
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }

    .info-box h3 {
        font-size: 9pt;
        color: #64748b;
        margin-bottom: 5px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 3px;
    }

    .info-box p {
        font-size: 11pt;
        margin: 2px 0;
    }

    .info-box p.small {
        font-size: 9pt;
        color: #475569;
    }

    .status-text {
        font-weight: 700;
        color: #2563eb;
    }

    /* Problem Section */
    .problem-section {
        margin-bottom: 20px;
        padding: 12px;
        background: #f8fafc;
        border-radius: 8px;
        border-left: 4px solid #334155;
    }

    .problem-section h3 {
        font-size: 9pt;
        color: #64748b;
        margin-bottom: 5px;
    }

    .problem-section p {
        font-size: 11pt;
    }

    /* Payment Summary */
    .payment-summary {
        margin-bottom: 25px;
        border: 1px solid #334155;
        border-radius: 12px;
        overflow: hidden;
    }

    .payment-summary h3 {
        background: #334155;
        color: white !important;
        padding: 8px 15px;
        font-size: 10pt;
        margin: 0;
    }

    .payment-table {
        width: 100%;
        border-collapse: collapse;
    }

    .payment-table td {
        padding: 10px 15px;
        font-size: 11pt;
        border-bottom: 1px solid #f1f5f9;
    }

    .payment-table .amount {
        text-align: right;
        font-family: 'Courier New', monospace;
        /* Good for amounts */
    }

    .total-row {
        background: #f1f5f9;
    }

    .total-row td {
        border-bottom: none;
        font-size: 13pt;
    }

    /* Tracking (QR) */
    .tracking-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .qr-box {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .qr-code {
        width: 80px;
        height: 80px;
        padding: 5px;
        border: 1px solid #e2e8f0;
    }

    .qr-label {
        font-size: 8pt;
        color: #64748b;
        max-width: 120px;
    }

    .pattern-box {
        text-align: right;
    }

    .pattern-label {
        font-size: 9pt;
        color: #64748b;
        margin-bottom: 2px;
    }

    .pattern-code {
        font-size: 14pt;
        font-weight: 700;
        letter-spacing: 2px;
        font-family: monospace;
    }

    /* Terms */
    .terms-section {
        font-size: 8pt;
        color: #64748b;
        margin-bottom: 40px;
        padding-top: 10px;
        border-top: 1px dotted #cbd5e1;
    }

    .terms-section ul {
        margin-top: 5px;
        padding-left: 20px;
    }

    /* Signature Area */
    .signature-section {
        display: flex;
        justify-content: space-around;
        gap: 40px;
    }

    .sig-box {
        flex: 1;
        text-align: center;
    }

    .sig-line {
        border-top: 1px solid #334155;
        margin-bottom: 5px;
    }

    .sig-box p {
        font-size: 9pt;
        color: #475569;
        font-weight: 600;
    }
}

/* Plan Badge Styles */
.plan-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    width: 100%;
    margin-top: 10px;
}

.plan-badge.premium {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.0) 100%);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-badge.free {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(56, 189, 248, 0.0) 100%);
}

.plan-badge.limit-reached {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.05) 0%, rgba(248, 113, 113, 0.0) 100%);
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.plan-name {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.plan-usage {
    color: var(--text-primary);
    font-weight: 700;
}

.plan-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.plan-progress-bar {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.limit-reached .plan-progress-bar {
    background: var(--accent-red);
}

.plan-status-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: right;
}

.limit-reached .plan-status-text {
    color: var(--accent-red);
}

/* TG Manager Pro Logo Styles - Replaced by SVG */
.app-logo {
    display: block;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05);
}

/* --- PRO DASHBOARD STYLES --- */

/* Glass Panel Effect */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Enhanced Stats Grid (Overrides) */
.stat-card.glass-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.stat-icon-wrapper.blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.stat-icon-wrapper.blue::after {
    background: currentColor;
}

.stat-icon-wrapper.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.stat-icon-wrapper.yellow::after {
    background: currentColor;
}

.stat-icon-wrapper.green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.stat-icon-wrapper.green::after {
    background: currentColor;
}

.stat-icon-wrapper.purple {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.stat-icon-wrapper.purple::after {
    background: currentColor;
}

.stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-content .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive {
    color: var(--accent-green);
}

.stat-trend.neutral {
    color: var(--text-secondary);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Charts */
.chart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.chart-container.mini {
    min-height: 250px;
}

.card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.canvas-wrapper.doughnut {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Activity Feed */
.activity-feed {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.activity-list {
    list-style: none;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 5px;
}

/* Custom Scrollbar for feed */
.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.activity-icon.info {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.activity-icon.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.activity-icon.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.activity-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: auto;
    white-space: nowrap;
}

/* --- PRO DASHBOARD STYLES --- */

/* Glass Panel Effect */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Enhanced Stats Grid (Overrides) */
.stat-card.glass-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.stat-icon-wrapper.blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.stat-icon-wrapper.blue::after {
    background: currentColor;
}

.stat-icon-wrapper.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.stat-icon-wrapper.yellow::after {
    background: currentColor;
}

.stat-icon-wrapper.green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.stat-icon-wrapper.green::after {
    background: currentColor;
}

.stat-icon-wrapper.purple {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.stat-icon-wrapper.purple::after {
    background: currentColor;
}

.stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-content .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive {
    color: var(--accent-green);
}

.stat-trend.neutral {
    color: var(--text-secondary);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Charts */
.chart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.chart-container.mini {
    min-height: 250px;
}

.card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.canvas-wrapper.doughnut {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Activity Feed */
.activity-feed {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.activity-list {
    list-style: none;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 5px;
}

/* Custom Scrollbar for feed */
.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.activity-icon.info {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.activity-icon.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.activity-icon.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
}

.activity-details h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: auto;
    white-space: nowrap;
}

/* ======================
   FINANCE MODULE STYLES
   ====================== */
#view-finance .tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

#view-finance .tab-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

#view-finance .tab-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#view-finance .tab-link.active {
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.1);
    font-weight: 600;
}

#view-finance .tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

#view-finance .tab-content.active {
    display: block;
}

.cash-status-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-red);
    /*Default closed*/
}

.cash-status-box.open {
    border-left-color: var(--accent-green);
}

.cash-status-box h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cash-status-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-success {
    background: var(--accent-green);
    color: #0d1218;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover {
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
    transform: translateY(-1px);
}

/* Modal specific tweaks */
.modal-body select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.modal-body select:focus {
    border-color: var(--accent-color);
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-icon.blue {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.activity-icon.green {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
}

.activity-icon.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: var(--accent-yellow);
}

.activity-icon.red {
    background: rgba(248, 113, 113, 0.1);
    color: var(--accent-red);
}

.activity-icon.purple {
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-purple);
}

.activity-info {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* =============================
   LANDING PAGE v8.0 STYLES
   ============================= */
.landing-nav {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.nav-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .nav-links a {
        display: block;
    }
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-login-nav {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-login-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section New */
.hero-section-new {
    padding-top: 120px;
    padding-bottom: 80px;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.badge-new {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-primary-lg {
    background: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.pulsate {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.btn-whatsapp-lg {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-whatsapp-lg:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.hero-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Mockup */


.nav-logo img {
    height: 60px !important;
    /* Increased from 40px */
    transition: transform 0.3s;
}

.nav-logo:hover img {
    transform: scale(1.1);
}

/* ... */





.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

.badge-1 i {
    color: var(--accent-green);
}

.badge-2 i {
    color: var(--accent-yellow);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.social-proof p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0.8;
}

/* Benefits */
.benefits-section {
    padding: 6rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.blue {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.icon-box.green {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-green);
}

.icon-box.purple {
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-purple);
}

.icon-box.yellow {
    background: rgba(250, 204, 21, 0.1);
    color: var(--accent-yellow);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Story Section */
.story-section {
    padding: 6rem 2rem;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1591196153041-34d49a609d13?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.story-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
}

/* Steps Section */
.steps-section {
    padding: 6rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.steps-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.step-item {
    position: relative;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.step-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-item p {
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.final-cta .small-text {
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.final-cta a {
    color: var(--accent-blue);
    text-decoration: none;
}

.landing-footer-new {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1,
.hero-content p,
.hero-buttons,
.hero-disclaimer {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content .hero-sub {
    animation-delay: 0.3s;
}

.hero-buttons {
    animation-delay: 0.5s;
}

.hero-disclaimer {
    animation-delay: 0.7s;
}

.benefit-card {
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    align-items: center;
    /* Align cards vertically */
}

.pricing-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.popular {
    background: rgba(56, 189, 248, 0.05);
    /* Very subtle tint */
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card .plan-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--accent-blue);
    font-size: 1rem;
}

.full-width {
    width: 100%;
}

/* Login/Register Modal Extensions */
.login-card {
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 90vh;
}

.input-group {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 0.8rem;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.input-group input {
    border: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    box-shadow: none !important;
    height: 48px;
}

.input-group input:focus {
    box-shadow: none !important;
}

.full-width {
    width: 100%;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem !important;
        width: 95% !important;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 1rem;
    background: linear-gradient(0deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-container {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 2rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    /* Simple enter animation */
}

/* Decorative glow behind */
.contact-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #fff;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.whatsapp-badge {
    width: 80px;
    height: 80px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
    animation: float 3s ease-in-out infinite;
}

.contact-content span {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 500;
}

.btn-whatsapp-glow {
    background: #25D366;
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.8);
    background: #22c35e;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .landing-nav {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.8rem 0;
        /* Compact nav */
    }

    .nav-logo img {
        height: 32px !important;
        /* Smaller logo */
    }

    /* HERO MOBILE OPTIMIZATIONS (CRITICAL COMPACT MODE) */
    .hero-section-new {
        display: flex;
        flex-direction: column !important;
        padding-top: 60px !important;
        /* Minimal top padding to clear nav */
        padding-bottom: 12px !important;
        /* Reduced to 12px */
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 0.5rem;
        /* Minimal gap */
        text-align: center;
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 6px;
        /* Reduced to 6px */
    }

    .hero-content h1 {
        font-size: 28px !important;
        /* Requested 28px */
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-content .hero-sub {
        font-size: 14px !important;
        /* Requested 14px */
        margin-bottom: 12px;
        line-height: 1.4;
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        justify-content: center;
        align-items: center;
        margin-bottom: 6px;
        /* Reduced to 6px */
    }

    .btn-primary-lg,
    .btn-whatsapp-lg {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        padding: 12px !important;
        /* Compact padding */
        font-size: 1rem;
        height: auto;
    }

    /* HERO IMAGE FIXES FOR MOBILE */
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -8px;
        /* Negative margin to pull image up */
        overflow: visible !important;
    }

    .mockup-container {
        width: 100%;
        max-width: 100% !important;
        margin: 0 auto;
        transform: none !important;
        display: flex;
        justify-content: center;
        overflow: visible !important;
    }

    .dashboard-preview {
        width: 100% !important;
        max-width: 300px !important;
        /* Requested 300px */
        height: auto !important;
        transform: none !important;
        object-fit: contain;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .mockup-container:hover .dashboard-preview {
        transform: none !important;
    }

    .badge-1,
    .badge-2 {
        display: none;
    }

    .benefits-section,
    .steps-section,
    .story-section {
        padding: 2.5rem 1rem;
        /* Reduced grouping padding */
    }

    .benefits-grid,
    .steps-grid,
    .pricing-grid {
        gap: 1.5rem;
    }

    /* PRICING MOBILE */
    .pricing-section {
        padding: 3rem 1rem;
    }

    .pricing-card.popular {
        transform: none !important;
        /* Reset desktop scale */
        margin: 1rem 0;
    }

    .pricing-card.popular:hover {
        transform: none !important;
    }
}

/* FIX HERO IMAGE REAL - VISUAL IMPACT */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 900px !important;
    display: flex;
    justify-content: flex-start;
    /* Kept flex-start */
    align-items: center;
    margin-left: auto;
    transform: none !important;
    overflow: visible !important;
}

.dashboard-preview {
    width: 115% !important;
    /* Visual Impact: 115% width */
    max-width: 700px;
    /* Constrained max-width */
    height: auto !important;
    object-fit: contain;

    border-radius: 20px;
    display: block;

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);

    background: #000;

    transform: translateX(40px);
    /* Shift for balance */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-container:hover .dashboard-preview {
    transform: translateX(35px) scale(1.02);
    /* Subtle interaction */
}

/* DESKTOP GRID LAYOUT OVERRIDE */
@media (min-width: 992px) {
    .hero-section-new {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        /* Kept balanced grid */
        align-items: center;
        gap: 60px;
        padding-right: 80px;
        /* Kept padding */
        overflow: visible;
        position: relative;
    }

    .hero-content {
        min-width: 0;
        padding-right: 0;
        position: relative;
        z-index: 10;
    }

    .hero-image {
        justify-content: flex-start;
    }
}