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

:root {
    --bg-main: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --bg-input: #334155;      /* Slate 700 */
    --text-primary: #f8fafc;  /* Slate 50 */
    --text-secondary: #94a3b8;/* Slate 400 */
    --text-muted: #64748b;    /* Slate 500 */
    
    --primary: #10b981;       /* Emerald 500 */
    --primary-light: rgba(16, 185, 129, 0.15);
    --primary-glow: rgba(16, 185, 129, 0.3);
    
    --secondary: #6366f1;     /* Indigo 500 */
    --secondary-light: rgba(99, 102, 241, 0.15);
    
    --danger: #ef4444;        /* Red 500 */
    --danger-light: rgba(239, 68, 68, 0.15);
    
    --warning: #f59e0b;       /* Amber 500 */
    --warning-light: rgba(245, 158, 11, 0.15);
    
    --success: #10b981;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.35);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Outfit', 'Prompt', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #020617; /* Very dark slate for desktop background */
    font-family: var(--font-family);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* App Wrapper for Desktop Mockup */
.app-wrapper {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    min-height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (min-width: 481px) {
    .app-wrapper {
        height: 850px;
        border-radius: var(--radius-lg);
        border: 4px solid var(--bg-card);
    }
}

/* Header */
.app-header {
    padding: 20px 20px 15px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.app-title-group h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.app-title-group p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.header-action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-action-btn:active {
    transform: scale(0.92);
    background: var(--bg-input);
}

/* Main Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px 100px; /* Space for navbar */
    position: relative;
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.app-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.app-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(30, 41, 59, 0.95); /* Slate 800 with transparency */
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 10px; /* padding-bottom for iOS safe area mock */
    z-index: 90;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    flex: 1;
    height: 100%;
    padding-top: 8px;
    border: none;
    background: transparent;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:active {
    transform: scale(0.99);
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-vacant {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-occupied {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.badge-unpaid {
    background-color: var(--danger-light);
    color: var(--danger);
}

.badge-paid {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-partial {
    background-color: var(--warning-light);
    color: var(--warning);
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

.stat-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Dashboard Circle Progress */
.dashboard-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.progress-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.progress-svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2; /* 2 * PI * r (r=40) */
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Section Header */
.section-title-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 12px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.section-action-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

/* List/Grid Layouts */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.room-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
    transition: var(--transition);
    cursor: pointer;
}

.room-card:active {
    transform: scale(0.96);
}

.room-card.occupied {
    border-left: 4px solid var(--secondary);
}

.room-card.vacant {
    border-left: 4px solid var(--primary);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.room-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.room-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.room-tenant {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* List Items (Tenants & Utility Logs) */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tenant-card, .billing-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.tenant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tenant-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.tenant-room-badge {
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.tenant-phone {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tenant-actions, .billing-actions {
    display: flex;
    gap: 8px;
}

.circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.circle-btn:active {
    transform: scale(0.88);
}

.circle-btn.primary {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.1);
}

/* Billing Log Card Layout */
.billing-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.billing-room-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.billing-room-num {
    font-size: 1.1rem;
    font-weight: 700;
}

.billing-month {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.billing-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-val {
    font-weight: 600;
    color: var(--text-primary);
}

.billing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.billing-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.billing-total span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* Floating Action Button (FAB) */
.fab {
    position: absolute;
    bottom: 95px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    border: none;
    cursor: pointer;
    z-index: 85;
    transition: var(--transition);
}

.fab:active {
    transform: scale(0.9) rotate(90deg);
}

.fab-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Bottom Sheet Modal */
.bottom-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    z-index: 101;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85%;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    margin: 8px auto 0;
}

.sheet-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.sheet-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.btn {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-primary:active {
    background: #0d9668;
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.1);
}

.btn-danger:active {
    background: rgba(239, 68, 68, 0.25);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: none;
}

.btn-secondary:active {
    background: #4f46e5;
}

/* Tabs & Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Bill Invoice View */
.invoice-view {
    background: #0f172a;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    font-family: monospace;
    color: #38bdf8; /* Light blue tech text */
}

.invoice-header {
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.invoice-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.invoice-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.invoice-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
}

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

.invoice-row.total {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary);
}

.invoice-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.empty-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Search bar */
.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 16px 12px 40px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    stroke-width: 2;
    fill: none;
    pointer-events: none;
}

/* View transition wrappers */
.view-panel {
    display: none;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ==========================================================================
   GRAPHIC INVOICE & PAYMENT STYLES
   ========================================================================== */

/* Invoice Tabs styling */
.invoice-tab-btn {
    transition: var(--transition);
}
.invoice-tab-btn:hover {
    color: var(--primary) !important;
}
.invoice-tab-btn.active {
    border-bottom: 2px solid var(--primary) !important;
}

/* Graphic Invoice Card */
.graphic-invoice-card {
    font-family: var(--font-family);
    color: #1e293b;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    position: relative;
}
.graphic-invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.graphic-invoice-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1.2;
}
.graphic-invoice-logo span {
    font-size: 0.75rem;
    display: block;
    color: #64748b;
    font-weight: 500;
}
.graphic-invoice-prop-info {
    text-align: right;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}
.graphic-invoice-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}
.graphic-invoice-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}
.graphic-invoice-meta-item {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.graphic-invoice-meta-label {
    color: #64748b;
}
.graphic-invoice-meta-value {
    font-weight: 600;
    color: #1e293b;
}
.graphic-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.85rem;
}
.graphic-invoice-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #cbd5e1;
}
.graphic-invoice-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}
.graphic-invoice-table tr:last-child td {
    border-bottom: 2px solid #cbd5e1;
}
.graphic-invoice-total-row {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
}
.graphic-invoice-total-row td {
    border-top: 2px solid #cbd5e1;
    border-bottom: 2px solid #10b981 !important;
    color: #10b981;
}
.graphic-invoice-payment-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
    gap: 12px;
}
.graphic-invoice-qr-container {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.graphic-invoice-qr-container img, .graphic-invoice-qr-container canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
}
.graphic-invoice-bank-info {
    flex: 1;
    font-size: 0.8rem;
    text-align: left;
}
.graphic-invoice-bank-title {
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}
.graphic-invoice-bank-details {
    line-height: 1.5;
    color: #334155;
}
.graphic-invoice-paid-badge {
    position: absolute;
    top: 75px;
    right: 25px;
    border: 4px double #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.03);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
    transform: rotate(-12deg);
    opacity: 0.85;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}
.graphic-invoice-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

/* Styles for settings payment section toggles */
.payment-section {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   LOGIN GATE STYLES (Single Login Gate)
   ========================================================================== */
.login-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 32px 24px;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: loginCardFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo-container {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.login-logo svg {
    width: 32px;
    height: 32px;
}

.login-logo-container h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-logo-container p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.login-gate .form-control {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

.login-gate .form-control:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.7);
}
