/* ==========================================================================
   LOTESA DESIGN SYSTEM & VARIABLES (ETHEREAL TECH STYLE)
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Ethereal Tech Color Palette */
    --bg-base: #f7faf9;                /* Soft light warm-teal background */
    --bg-sidebar: #eceeee;             /* Muted light gray-teal sidebar */
    --bg-surface: #ffffff;             /* Pure white for cards and surfaces */
    --bg-surface-hover: #e6e9e8;       /* Subtle hover background */
    --bg-card: #ffffff;
    
    /* Glowing & Main Accents */
    --accent-cyan: #006162;            /* Deep professional teal */
    --accent-cyan-rgb: 0, 97, 98;
    --accent-purple: #336668;          /* Secondary dark teal */
    --accent-purple-rgb: 51, 102, 104;
    
    /* System Colors */
    --color-success: #2e7d32;          /* Green */
    --color-danger: #c62828;           /* Red */
    --color-warning: #f57f17;          /* Amber */
    --color-gray: #7f8c8d;
    
    /* Text Colors */
    --text-primary: #181c1c;           /* Dark slate-charcoal text */
    --text-secondary: #3f4948;         /* Medium slate text */
    --text-muted: #6f7979;             /* Muted outline text */
    
    /* Layout Tokens */
    --sidebar-width: 260px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    
    /* Borders & Shadows */
    --border-glow: 1px solid #bec9c8;  /* Subtle outline variant border */
    --border-glow-purple: 1px solid #bec9c8;
    --shadow-soft: 0 4px 12px rgba(24, 28, 28, 0.04);
    --shadow-hover: 0 6px 18px rgba(0, 97, 98, 0.06);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #bec9c8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6f7979;
}

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid #bec9c8;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem 1.25rem;
    height: 100%;
    z-index: 10;
}

.sidebar-brand {
    margin-bottom: 2.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent-cyan);
}

.text-accent {
    color: var(--accent-cyan);
    font-weight: 800;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Sidebar Menu List */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.15rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.menu-item i {
    font-size: 1rem;
    width: 20px;
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.menu-item:hover {
    color: var(--accent-cyan);
    background-color: var(--bg-surface-hover);
    transform: translateX(3px);
}

.menu-item:hover i {
    color: var(--accent-cyan);
}

.menu-item.active {
    color: var(--accent-cyan);
    background-color: rgba(0, 97, 98, 0.08);
    border-left: 3px solid var(--accent-cyan);
    padding-left: calc(1.15rem - 3px);
    font-weight: 600;
}

.menu-item.active i {
    color: var(--accent-cyan);
}

/* Sidebar Footer Badge */
.sidebar-footer {
    border-top: 1px solid #bec9c8;
    padding-top: 1.25rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.65rem 0.85rem;
    border-radius: var(--border-radius-md);
    border: 1px solid #bec9c8;
}

.user-avatar {
    font-size: 2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.logout-btn {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.2rem;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    color: var(--color-danger);
    transform: scale(1.1);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background-color: var(--bg-base);
}

.content-header {
    height: 72px;
    padding: 0 2.5rem;
    border-bottom: 1px solid #bec9c8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background-color: var(--bg-surface);
}

.header-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: var(--bg-base);
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    border: 1px solid #bec9c8;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online .status-dot {
    background-color: var(--color-success);
}

.scroll-content {
    flex-grow: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

/* SPA Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-panel.active {
    display: block;
}

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

/* ==========================================================================
   WIDGETS & UI COMPONENTS
   ========================================================================== */

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(0, 97, 98, 0.05) 0%, rgba(51, 102, 104, 0.03) 100%);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(0, 97, 98, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--accent-cyan);
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 580px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.purple {
    background-color: rgba(51, 102, 104, 0.08);
    color: var(--accent-purple);
}

.stat-icon.blue {
    background-color: rgba(0, 97, 98, 0.08);
    color: var(--accent-cyan);
}

.stat-icon.green {
    background-color: rgba(46, 125, 50, 0.08);
    color: var(--color-success);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Info Cards Layout */
.dashboard-grid {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.info-card {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: var(--accent-cyan);
}

.flex-2 { flex: 2 1 400px; }
.flex-1 { flex: 1 1 300px; }

.card-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #bec9c8;
    background-color: #f1f4f3;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent-cyan);
}

.card-body {
    padding: 1.25rem;
}

/* License Info Rows */
.license-info-table {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6e9e8;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.info-val {
    font-weight: 600;
    font-size: 0.92rem;
}

.code-block {
    font-family: monospace;
    background-color: #f1f4f3;
    padding: 0.3rem 0.65rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid #bec9c8;
    color: var(--accent-cyan);
    font-size: 0.82rem;
}

.text-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Security Checklist */
.security-checklist {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.security-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.security-item i {
    font-size: 1.05rem;
    margin-top: 0.15rem;
}

.security-item.checked i {
    color: var(--color-success);
}

.security-item strong {
    font-size: 0.92rem;
    display: block;
    margin-bottom: 0.15rem;
}

.security-item p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   BUY LICENSE / PRICING VIEW
   ========================================================================== */
.section-intro {
    margin-bottom: 1.75rem;
    text-align: center;
}

.section-intro h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--accent-cyan);
}

.section-intro p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Admin Pricing Config Bar */
.admin-simulator-bar {
    background-color: rgba(51, 102, 104, 0.05);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-md);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.simulator-header {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.simulator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.control-group label {
    color: var(--text-secondary);
}

.control-group input {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    color: var(--text-primary);
    padding: 0.3rem 0.55rem;
    border-radius: var(--border-radius-sm);
    width: 90px;
    font-weight: 600;
    outline: none;
    text-align: right;
}

.control-group input:focus {
    border-color: var(--accent-cyan);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border: 2px solid var(--accent-cyan);
    background: linear-gradient(180deg, rgba(0, 97, 98, 0.01) 0%, transparent 100%), var(--bg-surface);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #e6e9e8;
    color: var(--text-secondary);
}

.card-badge.bg-secondary {
    background-color: rgba(0, 97, 98, 0.1);
    color: var(--accent-cyan);
}

.card-badge.bg-purple {
    background-color: rgba(51, 102, 104, 0.1);
    color: var(--accent-purple);
}

.plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.price-amount {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.2rem;
}

.price-compare {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.discount-badge {
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background-color: rgba(198, 40, 40, 0.08);
    color: var(--color-danger);
    font-size: 0.68rem;
    font-weight: 700;
}

.discount-badge.bg-secondary {
    background-color: rgba(0, 97, 98, 0.08);
    color: var(--accent-cyan);
}

.discount-badge.bg-purple {
    background-color: rgba(51, 102, 104, 0.08);
    color: var(--accent-purple);
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 1.75rem;
    line-height: 1.4;
    min-height: 2.5rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.plan-features li i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

/* ==========================================================================
   DEVICE MANAGER VIEW
   ========================================================================== */
.devices-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.25rem;
}

.device-status-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background-color: #f1f4f3;
    border-radius: var(--border-radius-md);
    border: 1px dashed #bec9c8;
}

.device-icon i {
    font-size: 2.2rem;
}

.text-green { color: var(--color-success); }
.text-gray { color: var(--color-gray); }

.device-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.device-details p {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    display: inline-block;
}

.device-date {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--accent-cyan);
}

.help-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.form-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.reset-limit-info {
    background-color: rgba(0, 97, 98, 0.04);
    border: 1px solid rgba(0, 97, 98, 0.08);
    padding: 0.65rem 0.85rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.reset-limit-info.danger-theme {
    background-color: rgba(198, 40, 40, 0.04);
    border-color: rgba(198, 40, 40, 0.1);
    color: var(--color-danger);
}

/* ==========================================================================
   PROFILE VIEW
   ========================================================================== */
.profile-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.25rem;
}

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6e9e8;
}

.profile-field:last-child {
    border-bottom: none;
}

.field-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.field-value {
    font-size: 0.98rem;
    font-weight: 600;
}

.badge-accent {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 700;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.68rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(0, 97, 98, 0.15);
}

.btn-secondary {
    background: var(--accent-purple);
    color: #ffffff;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(51, 102, 104, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #bec9c8;
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--text-muted);
}

.btn-danger {
    background-color: transparent;
    border: 1px solid rgba(198, 40, 40, 0.4);
    color: var(--color-danger);
}

.btn-danger:hover {
    background-color: rgba(198, 40, 40, 0.05);
    border-color: var(--color-danger);
}

/* ==========================================================================
   MODAL DIALOG (CHECKOUT SIMULATOR)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(24, 28, 28, 0.45);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(24, 28, 28, 0.1);
}

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

.modal-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #bec9c8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.close-modal-btn {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.modal-body {
    padding: 1.5rem;
}

.checkout-summary {
    background-color: #f1f4f3;
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
    border: 1px solid #bec9c8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkout-summary p {
    font-size: 0.88rem;
}

.price-val {
    font-size: 1.05rem;
    color: var(--accent-cyan);
}

.payment-methods {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.qr-container {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.qr-box {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius-md);
    border: 1px solid #bec9c8;
    background-color: white;
    padding: 0.4rem;
    position: relative;
    overflow: hidden;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-overlay-scan {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-cyan);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0.2rem 0;
}

.qr-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.payment-details-box {
    flex: 1.5 1 240px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.payment-details-box h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    align-items: center;
}

.detail-row span {
    color: var(--text-secondary);
}

.copyable {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}

.copyable:hover {
    color: var(--accent-cyan);
}

.copyable i {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.copyable:hover i {
    color: var(--accent-cyan);
}

.text-purple {
    color: var(--accent-cyan);
}

.warn-text {
    font-size: 0.68rem;
    color: var(--color-warning);
    line-height: 1.4;
    margin-top: 0.4rem;
}

.modal-footer {
    padding: 1.1rem 1.5rem;
    border-top: 1px solid #bec9c8;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.modal-footer .btn {
    width: auto;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 10000;
}

.toast {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 4px 12px rgba(24, 28, 28, 0.08);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    min-width: 260px;
}

.toast.success {
    border-left: 3px solid var(--color-success);
}

.toast.success i {
    color: var(--color-success);
}

.toast.info {
    border-left: 3px solid var(--accent-cyan);
}

.toast.info i {
    color: var(--accent-cyan);
}

.toast.error {
    border-left: 3px solid var(--color-danger);
}

.toast.error i {
    color: var(--color-danger);
}

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

.toast.fade-out {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.hidden {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 1.25rem;
        border-right: none;
        border-bottom: 1px solid #bec9c8;
    }
    
    .sidebar-brand {
        margin-bottom: 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .brand-subtitle {
        margin-top: 0;
    }
    
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .menu-item {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .menu-item.active {
        border-left: none;
        border-bottom: 2px solid var(--accent-cyan);
        padding-left: 0.9rem;
        padding-bottom: calc(0.6rem - 2px);
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .content-header {
        padding: 0 1.25rem;
        height: 54px;
    }
    
    .scroll-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .sidebar-menu {
        justify-content: space-between;
    }
    
    .menu-item span {
        display: none;
    }
    
    .menu-item {
        padding: 0.7rem;
    }
    
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.15rem;
    }
    
    .welcome-action {
        width: 100%;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   AUTH GATE STYLING (LOGIN & REGISTER)
   ========================================================================== */
.auth-container {
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 97, 98, 0.03) 0%, rgba(247, 250, 249, 1) 90%);
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.auth-container.active {
    display: flex;
}

.auth-card {
    background-color: var(--bg-surface);
    border: 1px solid #bec9c8;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0, 97, 98, 0.05);
    animation: authFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.auth-header .brand-logo {
    justify-content: center;
    margin-bottom: 0.25rem;
}

.auth-header .logo-text {
    font-size: 2rem;
}

.auth-tabs {
    display: flex;
    background-color: var(--bg-sidebar);
    border-radius: var(--border-radius-md);
    padding: 0.35rem;
    margin-bottom: 2rem;
    border: 1px solid #bec9c8;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.auth-tab-btn:hover {
    color: var(--accent-cyan);
}

.auth-tab-btn.active {
    background-color: var(--bg-surface);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-soft);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-form.active {
    display: flex;
}

.form-group label i {
    margin-right: 0.25rem;
    color: var(--accent-cyan);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 2.75rem !important;
}

.toggle-password-btn {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.toggle-password-btn:hover {
    color: var(--accent-cyan);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.remember-me-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.remember-me-checkbox input[type="checkbox"] {
    accent-color: var(--accent-cyan);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.forgot-pass-link {
    color: var(--accent-cyan);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.forgot-pass-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.accent-link {
    color: var(--accent-cyan);
    font-weight: 600;
}

.accent-link:hover {
    text-decoration: underline;
}

