﻿

/* ========================================
   FINANCIAL PORTAL - UNIFIED STYLES
   ======================================== */

/* CSS Custom Properties for Theme Colors */
:root {
    --text-muted: rgba(0, 0, 0, 0.6);
    --text-primary: #333;
    --text-secondary: #666;
    --color-success: #16a34a;
    --color-warning: #ea580c;
    --color-danger: #d32f2f;
    --color-cashback: #26c485;
    --color-orange: #f97316;
    --smart-bg: rgba(102, 126, 234, 0.15);
    --smart-border: rgba(102, 126, 234, 0.3);

    /* Brand colors (theme-independent) */
    --clr-primary: #667eea;
    --clr-secondary: #764ba2;
    --clr-primary-rgb: 102, 126, 234;
    --clr-secondary-rgb: 118, 75, 162;
    --grad-brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-brand-90: linear-gradient(90deg, #667eea, #764ba2);

    /* Dark app-page backgrounds */
    --bg-page: #252547;
    --bg-modal: #1e1e3a;
    --bg-dropdown: #2d2d4d;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-input: rgba(255, 255, 255, 0.08);
    --bg-input-subtle: rgba(255, 255, 255, 0.07);

    /* Borders */
    --border-input: rgba(255, 255, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-faint: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(102, 126, 234, 0.3);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transitions */
    --tx-base: 0.2s ease;
    --tx-slow: 0.3s ease;
}

body.dark-mode {
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-primary: #fff;
    --text-secondary: #bbb;
    --color-success: #4ade80;
    --color-warning: #fb923c;
    --smart-bg: rgba(102, 126, 234, 0.25);
    --smart-border: rgba(102, 126, 234, 0.4);
}

/* GLOBAL RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

/* PAGE-SPECIFIC BACKGROUNDS */
body.login-page,
body.pin-page {
    background: linear-gradient(135deg, var(--bg-page) 0%, #1e2d52 50%, #1a4275 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.locked-page {
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SHARED FULL-PAGE CONTAINER */
.login-container,
.locked-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
}

input, select, textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
}

/* ANIMATED BACKGROUND BUBBLES */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    animation: float 20s infinite ease-in-out;
}

.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-duration: 25s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 120px; height: 120px; left: 25%; animation-duration: 30s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 45%; animation-duration: 22s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 100px; height: 100px; left: 65%; animation-duration: 28s; animation-delay: 1s; }
.bubble:nth-child(5) { width: 70px; height: 70px; left: 80%; animation-duration: 26s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 90px; height: 90px; left: 35%; animation-duration: 24s; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    50% { transform: translateY(-20vh) translateX(50px) rotate(180deg); opacity: 0.5; }
    90% { opacity: 0.3; }
}

/* COMMON HEADER */
.header {
    background: var(--grad-brand);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.nav a:active {
    transform: scale(0.95);
}

.nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Download Report Button Styling */
.download-report-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    font-weight: 600 !important;
}

.download-report-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.download-report-btn svg {
    width: 20px;
    height: 20px;
}

/* CONTAINER */
.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { text-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 40px rgba(118, 75, 162, 0.6); }
}

/* SHARED AUTH BOXES */
.login-box,
.locked-box {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102,126,234,0.2);
    padding: 40px 32px 32px 32px;
    max-width: 420px;
    width: 90vw;
    text-align: center;
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    border: 2px solid rgba(102, 126, 234, 0.15);
}

.login-icon {
    display: none;
}

.login-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.25));
    transition: transform 0.3s ease;
}

.login-icon:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.login-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.login-user-badge {
    display: inline-block;
    background: var(--grad-brand);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.login-box h1,
.locked-box h1 {
    font-size: 2.1rem;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-box h1 {
    color: #16213e;
}

.locked-box h1 {
    color: var(--clr-secondary);
}

.login-box p,
.locked-box p {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.info-text {
    color: #666;
    font-size: 0.98rem;
    margin-top: 18px;
    opacity: 0.85;
}

/* COMMON ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes rise {
    0% { bottom: -100px; transform: translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { bottom: 110%; transform: translateX(200px); opacity: 0; }
}

@keyframes moveBackground {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, 5%); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Animation Classes */
.interactive-card {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(30) 0.5s forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce-in {
    animation: bounce-in 0.8s ease;
}

.glow-text {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    animation: glow-pulse 2s ease-in-out infinite;
}

.animated-form {
    animation: fadeIn 0.5s ease;
}

.interactive-input {
    transition: all 0.3s ease;
}

/* ========================================
   PIN PAGE STYLES
   ======================================== */
.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--grad-brand);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.18);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
}


/* ========================================
   LOCKED PAGE STYLES
   ======================================== */
.support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    border-radius: 12px;
    padding: 14px 28px;
    background: var(--grad-brand);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    transition: all 0.3s ease;
}

.support-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.support-link:active {
    transform: scale(0.98);
}

.lock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--grad-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

.lock-icon svg {
    width: 45px;
    height: 45px;
    fill: white;
}

.pin-title {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.pin-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 40px;
}

.pin-input-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px auto;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: visible;
}

.pin-digit {
    width: 55px;
    height: 65px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #16213e;
    border-radius: 16px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    caret-color: transparent;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.pin-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.pin-digit:hover::before {
    left: 100%;
}

.pin-digit:focus {
    border-color: var(--clr-primary);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.3), 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: scale(1.05) translateY(-2px);
}

.pin-digit.filled {
    background: var(--grad-brand);
    color: white;
    border-color: var(--clr-primary);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: scale(1.02);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 0 0;
    justify-items: center;
}

.numpad-btn {
    width: 60px;
    height: 48px;
    font-size: 1.3rem;
    border: none;
    border-radius: 8px;
    background: #e0e7ff;
    color: #16213e;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102,126,234,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.numpad-btn:hover {
    background: #c7d2fe;
    color: var(--clr-secondary);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 20px;
    font-weight: 500;
    animation: shake 0.5s;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--grad-brand);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========================================
   SERVICES PAGE STYLES
   ======================================== */
body.services-page {
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

body.services-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: moveBackground 20s ease-in-out infinite;
    z-index: 0;
}

body.services-page .login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.services-header {
    margin-bottom: 40px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.25));
}

body.services-page .welcome-text {
    color: var(--clr-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    opacity: 0;
    animation: fadeIn 0.4s ease 0.1s forwards;
}

body.services-page h1 {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 0;
    opacity: 0;
    animation: slideIn 0.4s ease 0.2s forwards;
}

body.services-page .subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 0;
    display: block;
    opacity: 0;
    animation: fadeIn 0.4s ease 0.3s forwards;
}

body.services-page .login-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

body.services-page .login-option {
    padding: 25px 20px;
    background: linear-gradient(145deg, #f8faff 0%, #f1f5ff 100%);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideIn 0.4s ease forwards;
}

body.services-page .login-option:nth-child(1) {
    animation-delay: 0.4s;
}

body.services-page .login-option:nth-child(2) {
    animation-delay: 0.5s;
}

body.services-page .login-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

body.services-page .login-option:hover::before {
    left: 100%;
}

body.services-page .login-option:hover {
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--clr-primary);
}

body.services-page .login-option:active {
    transform: translateY(-4px) scale(1.01);
}

body.services-page .option-icon {
    font-size: 42px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
}

body.services-page .login-option h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
    position: relative;
    z-index: 1;
}

body.services-page .login-option p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

body.services-page .option-btn {
    background: var(--grad-brand);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.services-page .option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ========================================
   APP PAGES (Calculator, History, Schema)
   ======================================== */
body.app-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-bottom: 80px;
}

body.app-page.dark {
    background: linear-gradient(135deg, var(--bg-page) 0%, #1e2d52 100%);
    color: white;
}

body.app-page.dark .header {
    background: linear-gradient(135deg, #3a3a5c 0%, var(--bg-dropdown) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.app-page.dark .month-label {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.month-label {
    text-align: center;
    color: var(--clr-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* â”€â”€ Month Navigation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 8px;
}

.month-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.15);
    color: var(--clr-primary);
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.month-nav-arrow:hover {
    background: rgba(102, 126, 234, 0.35);
}

.month-nav-arrow.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.month-nav-label {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    flex: 1;
}

.total-cashback-card {
    background: var(--grad-brand);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.total-cashback-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.total-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.total-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Input Section */
.input-section {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.input-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.card-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.card-button {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-button:hover {
    border-color: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.card-button.selected {
    border-color: var(--clr-primary);
    background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.06) 0%, rgba(var(--clr-secondary-rgb), 0.06) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.card-button img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.card-button .card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Smart Recommendation */
.smart-recommendation {
    background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.08) 0%, rgba(var(--clr-secondary-rgb), 0.08) 100%);
    border: 2px solid var(--clr-primary);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    display: none;
}

.smart-recommendation.show {
    display: block;
}

.smart-recommendation.capped {
    background: linear-gradient(135deg, #ff475715 0%, #ff383815 100%);
    border-color: #ff4757;
}

.smart-recommendation h3 {
    font-size: 16px;
    color: var(--clr-primary);
    margin-bottom: 8px;
}

.smart-recommendation.capped h3 {
    color: #ff4757;
}

.smart-recommendation .card-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}


/* Albaraka stats card */
.alb-for-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}
.alb-metrics {
    display: flex;
    align-items: center;
}
.alb-metric {
    flex: 1;
    text-align: center;
    padding: 4px 0;
}
.alb-metric-divider {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.alb-metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 5px;
}
.alb-metric-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.alb-pts { color: #f0a500; }
.alb-cb { color: #26c485; }

/* Amount Input */
.amount-input-container {
    margin-top: 16px;
}
#saveRow {
    margin-top: 16px;
    padding-top: 4px;
}

#amountAndSave {
    display: none;
}

.amount-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.amount-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.amount-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-primary {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}


.btn-secondary {
    background: white;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-secondary:hover {
    background: var(--clr-primary);
    color: white;
}


/* History Page */
/* ── History page items ── */
.hist-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.hist-summary-bank-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.hist-summary-bank-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 8px 10px;
    flex-shrink: 0;
}
.hist-summary-bank-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}
.hist-summary-item {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}
.hist-summary-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}
.hist-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.hist-summary-cashback { color: #26c485; }

.hist-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hist-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}
.hist-body {
    flex: 1;
    min-width: 0;
}
.hist-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.hist-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hist-amounts {
    text-align: right;
    flex-shrink: 0;
}
.hist-spent {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}
.hist-cashback {
    font-size: 12px;
    font-weight: 600;
    color: #26c485;
    margin-top: 2px;
    white-space: nowrap;
}
.hist-delete-btn {
    background: transparent;
    color: rgba(255,71,87,0.55);
    border: 1px solid rgba(255,71,87,0.25);
    border-radius: 7px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.hist-delete-btn:hover {
    background: rgba(255,71,87,0.15);
    color: #ff4757;
    border-color: rgba(255,71,87,0.5);
}

/* Beyon person picker cards */
.beyon-person-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (max-width: 360px) {
    .beyon-person-grid { grid-template-columns: 1fr; }
}
.beyon-person-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.beyon-person-card.selected {
    border-color: rgba(102,126,234,0.6);
    background: rgba(102,126,234,0.12);
}
.beyon-person-name {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}
.beyon-person-cashback {
    font-size: 15px;
    font-weight: 700;
    color: #26c485;
    min-height: 20px;
    margin-bottom: 2px;
}
.beyon-person-cap {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.beyon-will-cap {
    color: #26c485;
    font-weight: 600;
}

.beyon-cap-reached-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 4px;
    padding: 13px 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    color: #f87171;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Schema Page */
.schema-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    margin: 22px 0 10px;
}
.schema-section-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
}
.schema-section-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.45);
}
.schema-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.schema-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 480px) {
    .schema-cards-grid {
        grid-template-columns: 1fr;
    }
}
.schema-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
}
.schema-card-capped {
    border-color: rgba(255,71,87,0.25);
    background: rgba(255,71,87,0.04);
}
.schema-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.schema-card-name {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2px;
}
.schema-card-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
}
.schema-cap-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255,71,87,0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255,71,87,0.3);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.schema-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
}
.schema-last { border-bottom: none; }
.schema-stat-label { color: rgba(255,255,255,0.4); }
.schema-stat-value {
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.schema-green { color: #26c485; }
.schema-progress {
    margin: 10px 0 2px;
}
.schema-progress-track {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.schema-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0;
}
.schema-progress-fill.capped {
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
}
.schema-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255,255,255,0.28);
}


.delete-btn {
    background: transparent;
    color: #ff4757;
    border: 1.5px solid rgba(255, 71, 87, 0.45);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.delete-btn:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    transform: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}



/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad-brand);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.float-back {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad-brand);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.float-back.show {
    opacity: 1;
    visibility: visible;
}

/* On mobile, float-back is always visible, smaller, and positioned top-left */
@media (max-width: 768px) {
    .float-back {
        opacity: 1;
        visibility: visible;
        width: 38px;
        height: 38px;
        bottom: 24px;
        top: unset;
        left: 16px;
        font-size: 0.8em;
    }

    /* Hide home/back buttons in top nav on mobile â€” float-back handles navigation */
    .nav a[href="/services"],
    .nav a[href="/calculator"] {
        display: none;
    }
}

.float-back:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
/* ========================================
   DESKTOP STYLES (769px and above)
   ======================================== */
@media (min-width: 769px) {
    /* Login Page Desktop Layout */
    .login-container {
        padding: 0;
        max-width: 480px;
        width: auto;
    }
    
    .login-box {
        max-width: 480px;
        padding: 50px 45px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 25px 80px rgba(102, 126, 234, 0.25);
        position: relative;
        overflow: hidden;
    }
    
    .login-box::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border-radius: 26px;
        z-index: -1;
        animation: glow-border 3s ease-in-out infinite;
    }
    
    @keyframes glow-border {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.6; }
    }
    
    .login-icon {
        display: none;
    }
    
    .login-icon svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.3));
    }
    
    .login-box h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        background: var(--grad-brand);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .login-box p {
        font-size: 1.1rem;
        margin-bottom: 35px;
        color: #64748b;
    }
    
    .pin-input-group {
        gap: 16px;
        margin: 35px 0;
        justify-content: center;
    }
    
    .pin-digit {
        width: 58px;
        height: 68px;
        font-size: 28px;
        border-radius: 16px;
        border: 3px solid rgba(102, 126, 234, 0.2);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .pin-digit:focus {
        border-color: var(--clr-primary);
        background: rgba(102, 126, 234, 0.08);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
        transform: scale(1.05) translateY(-5px);
    }
    
    .pin-digit.filled {
        background: var(--grad-brand);
        color: white;
        border-color: var(--clr-primary);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        transform: scale(1.02);
    }
    
    /* Services Page Desktop Layout */
    body.services-page .login-container {
        padding: 45px 40px;
        max-width: 580px;
        min-height: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .services-header {
        margin-bottom: 40px;
        text-align: center;
        width: 100%;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
    }
    
    body.services-page h1 {
        font-size: 32px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    body.services-page .welcome-text {
        font-size: 18px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    body.services-page .subtitle {
        font-size: 15px;
        margin-bottom: 0;
        text-align: center;
    }
    
    body.services-page .login-options {
        display: flex;
        flex-direction: row;
        gap: 25px;
        margin-top: 35px;
        width: 100%;
        justify-content: space-between;
    }
    
    body.services-page .login-option {
        flex: 1;
        padding: 28px 20px;
        min-height: 200px;
        max-width: 240px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }
    
    body.services-page .option-icon {
        font-size: 42px;
        margin-bottom: 16px;
    }
    
    body.services-page .login-option h3 {
        font-size: 20px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    body.services-page .login-option p {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.4;
    }
    
    body.services-page .option-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
    
    .login-option p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .option-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Locked Page Desktop Layout */
    .locked-box {
        max-width: 500px;
        padding: 50px 40px;
    }
    
    .locked-box h1 {
        font-size: 2.5rem;
    }
    
    .support-link {
        font-size: 18px;
        padding: 12px 24px;
    }
}

/* ========================================
   RESPONSIVE MOBILE STYLES
   ======================================== */

/* Tablet and Mobile (768px and below) */
@media (max-width: 768px) {
    /* Header Adjustments */
    .header {
        padding: 10px 12px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .nav {
        gap: 4px;
    }
    
    .nav a {
        padding: 5px 8px;
        font-size: 11px;
        gap: 3px;
    }
    
    .nav a svg {
        width: 14px;
        height: 14px;
    }
    
    /* Container */
    .container {
        padding: 10px;
    }
    
    /* Month Label */
    .month-label {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    
    /* Total Cashback Card */
    .total-cashback-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .total-label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .total-value {
        font-size: 20px;
    }
    
    /* Input Section */
    .input-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .input-section h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* Card Buttons Grid */
    .card-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .card-button {
        padding: 10px;
    }
    
    .card-button img {
        width: 30px;
        height: 30px;
    }
    
    .card-button .card-name {
        font-size: 11px;
    }
    
    /* Smart Recommendation */
    .smart-recommendation {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .smart-recommendation h3 {
        font-size: 13px;
    }
    
    .smart-recommendation .card-name {
        font-size: 14px;
    }
    
    /* Amount Input */
    .amount-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .amount-input {
        padding: 10px;
        font-size: 16px !important;
        height: 44px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .pin-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .pin-digit {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .pin-input-group {
        gap: 6px;
    }
    
    /* Services Page Mobile - Compact Card with Background Visible */
    body.services-page {
        padding: 15px 12px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    body.services-page .login-container {
        padding: 15px 15px 8px !important;
        max-width: 90%;
        width: 90%;
        text-align: center;
        display: block;
        border-radius: 20px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Welcome - Close to services */
    body.services-page .services-header {
        margin-bottom: 4px !important;
    }
    
    body.services-page .welcome-text {
        font-size: 12px;
        margin-bottom: 0;
        font-weight: 600;
        color: var(--clr-primary);
        opacity: 1;
        animation: none;
    }
    
    body.services-page h1 {
        font-size: 22px;
        margin-bottom: 2px;
        line-height: 1;
        opacity: 1;
        animation: none;
    }
    
    body.services-page .subtitle {
        font-size: 11px;
        margin-bottom: 0;
        line-height: 1.2;
        color: #64748b;
        opacity: 1;
        animation: none;
    }
    
    /* Services - Compact */
    body.services-page .login-options {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    body.services-page .login-option {
        width: 100%;
        padding: 8px 12px;
        background: linear-gradient(145deg, #f8faff 0%, #f1f5ff 100%);
        border-radius: 12px;
        border: 1px solid rgba(102, 126, 234, 0.1);
        text-align: center;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
        opacity: 1;
        animation: none;
    }
    
    body.services-page .login-option:active {
        transform: scale(0.98);
    }
    
    body.services-page .option-icon {
        font-size: 22px;
        margin-bottom: 2px;
        display: block;
        line-height: 1;
    }
    
    body.services-page .login-option h3 {
        font-size: 14px;
        margin-bottom: 2px;
        font-weight: 700;
        color: #2d3748;
    }
    
    body.services-page .login-option p {
        font-size: 10px;
        margin-bottom: 6px;
        line-height: 1.2;
        color: #64748b;
    }
    
    body.services-page .option-btn {
        padding: 6px 16px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
    }
    
    /* Logout - Close to services */
    body.services-page .logout-section {
        margin-top: 4px;
        padding-top: 4px;
        padding-bottom: 0;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        opacity: 1;
        animation: none;
        width: 100%;
        text-align: center;
    }
    
    body.services-page .logout-link {
        color: #64748b;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        padding: 6px 10px;
        display: inline-block;
    }
    
    .login-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .login-option {
        padding: 14px 12px;
    }
    
    .option-icon {
        font-size: 30px;
        margin-bottom: 8px;
    }
    
    .login-option h3 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .login-option p {
        font-size: 11px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .form-row {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .btn-save {
        padding: 12px;
        font-size: 14px;
        margin-top: 6px;
    }
    
    /* Timeline */
    .timeline-section {
        padding: 12px;
    }
    
    .timeline-section h2 {
        font-size: 14px;
    }
    
    .timeline-card {
        padding: 10px;
    }
    
    .month-header {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .month-info {
        gap: 8px;
    }
    
    .month-name {
        font-size: 14px;
    }
    
    .month-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .month-arrow {
        font-size: 12px;
    }
    
    .deposit-item {
        padding: 8px;
        font-size: 11px;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        right: 12px;
        bottom: 12px;
    }
}

/* Small Mobile (428px and below) */
@media (max-width: 428px) {
    .header h1 {
        font-size: 14px;
    }
    
    .nav a span {
        display: none;
    }
    
    .card-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .card-button {
        padding: 8px;
    }
    
    .total-value {
        font-size: 18px;
    }
    
    .pin-digit {
        width: 38px;
        height: 48px;
        font-size: 18px;
    }
    
    .container {
        padding: 8px;
    }
}

/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
    .header h1 {
        font-size: 13px;
    }
    
    .nav a {
        padding: 5px 6px;
        font-size: 10px;
    }
    
    .total-value {
        font-size: 16px;
    }
    
    .login-container {
        padding: 18px 14px;
    }
    
    h1 {
        font-size: 16px;
    }
    
    .option-icon {
        font-size: 26px;
    }
    
    .card-button img {
        width: 26px;
        height: 26px;
    }
    
    .card-button .card-name {
        font-size: 10px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 12px 16px;
    }
    
    .login-container {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .subtitle {
        margin-bottom: 16px;
    }
    
    .login-options {
        flex-direction: row;
    }
    
    .login-option {
        padding: 16px 12px;
    }
    
    .option-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .login-option p {
        display: none;
    }
}


/* ========================================
   DANGER AREA SECTION
   ======================================== */

/* Danger Area Container */
.danger-area {
    margin-top: 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(139, 0, 0, 0.12) 100%);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 20px;
    text-align: center;
}

/* Danger Header with Icon */
.danger-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #dc3545;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.danger-header svg {
    fill: #dc3545;
    width: 28px;
    height: 28px;
}

/* Danger Sections Grid */
.danger-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Danger Section */
.danger-section {
    width: 100%;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(220, 53, 69, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.danger-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
}

/* Danger Section Header */
.danger-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.danger-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #8b0000;
    text-align: center;
}

.danger-section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: center;
}

/* Danger Action Button */
.btn-danger-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hard lock style so mobile browsers do not gray-out this button */
.settings-modal .danger-area .btn-danger-action,
body.dark-mode .settings-modal .danger-area .btn-danger-action {
    background-color: #dc3545 !important;
    background-image: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.45) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.settings-modal .danger-area .btn-danger-action:hover,
body.dark-mode .settings-modal .danger-area .btn-danger-action:hover,
.settings-modal .danger-area .btn-danger-action:focus,
body.dark-mode .settings-modal .danger-area .btn-danger-action:focus,
.settings-modal .danger-area .btn-danger-action:active,
body.dark-mode .settings-modal .danger-area .btn-danger-action:active {
    background-color: #c23340 !important;
    background-image: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
}

.btn-danger-action:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 28px rgba(220, 53, 69, 0.5);
}

.btn-danger-action:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .danger-area {
        padding: 24px 20px;
    }
    
    .danger-header {
        font-size: 18px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }
    
    .danger-header svg {
        width: 24px;
        height: 24px;
    }
    
    .danger-section {
        padding: 20px;
    }
    
    .danger-section-title {
        font-size: 17px;
    }
    
    .btn-danger-action {
        padding: 14px 24px;
        font-size: 14px;
        background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
        background-color: #dc3545;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4);
        -webkit-appearance: none;
        appearance: none;
    }
}

@media (max-width: 400px) {
    .danger-area {
        padding: 20px 16px;
    }
    
    .danger-header {
        font-size: 16px;
    }
    
    .danger-section {
        padding: 16px;
    }
    
    .danger-section-title {
        font-size: 16px;
    }
    
    .btn-danger-action {
        padding: 12px 20px;
        font-size: 13px;
        background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
        background-color: #dc3545;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4);
        -webkit-appearance: none;
        appearance: none;
    }
}

/* ========================================
   SETTINGS MODAL
   ======================================== */

/* Settings Icon in Header */
.settings-icon svg {
    fill: rgba(255, 255, 255, 0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-icon:hover svg {
    fill: #ffffff;
    transform: rotate(90deg);
}

/* Settings Overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Settings Modal */
.settings-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-overlay.show .settings-modal {
    transform: scale(1) translateY(0);
}

/* Settings Header */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.12);
}

.settings-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Close Button */
.settings-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.settings-close:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    transform: rotate(90deg);
}

/* Settings Content */
.settings-content {
    padding: 28px;
}

.settings-content .danger-area {
    margin-top: 0;
}

/* Settings Sections */
.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* Setting Item */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: rgba(102, 126, 234, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.12);
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Setting Label */
.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.setting-label svg {
    fill: var(--clr-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--grad-brand);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Mobile Responsive Styles for Settings Modal */
@media (max-width: 480px) {
    /* Bottom sheet on mobile */
    .settings-overlay {
        align-items: flex-end;
    }

    .settings-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(30px);
        padding-bottom: env(safe-area-inset-bottom, 12px);
    }

    .settings-overlay.show .settings-modal {
        transform: translateY(0);
    }

    /* Drag handle hint */
    .settings-modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        margin: 12px auto 0;
    }

    .settings-header {
        padding: 16px 20px;
    }

    .settings-header h2 {
        font-size: 18px;
    }

    .settings-close {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .settings-content {
        padding: 16px 20px 20px;
    }

    .settings-section {
        margin-bottom: 18px;
    }

    .setting-item {
        padding: 13px;
    }

    .setting-label {
        font-size: 14px;
    }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

body.dark-mode {
    background: var(--bg-page);
}

body.dark-mode .animated-bg {
    background: linear-gradient(135deg, var(--bg-page) 0%, #1e2d52 50%, #1a4275 100%);
}

body.dark-mode .header {
    background: linear-gradient(135deg, #3a3a5c 0%, var(--bg-dropdown) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .container {
    background: rgba(50, 50, 75, 0.95);
}

body.dark-mode .month-label {
    background: rgba(102, 126, 234, 0.2);
    color: #a8b4ff;
}

body.dark-mode .total-cashback-card {
    background: linear-gradient(135deg, #3a3a5c 0%, var(--bg-dropdown) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .total-label {
    color: #bbb;
}

body.dark-mode .breakdown-card {
    background: linear-gradient(145deg, #373758 0%, var(--bg-dropdown) 100%);
    border-color: rgba(102, 126, 234, 0.15);
}

body.dark-mode .breakdown-label {
    color: #aaa;
}

body.dark-mode .input-section {
    background: linear-gradient(145deg, #373758 0%, var(--bg-dropdown) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .input-section h2 {
    color: #fff;
}

body.dark-mode .card-button {
    background: linear-gradient(145deg, #3a3a5c 0%, #323258 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .card-button .card-name {
    color: #ddd;
}

body.dark-mode .card-button.selected {
    border-color: var(--clr-primary);
    background: linear-gradient(145deg, #4d4d70 0%, #3a3a5c 100%);
}

body.dark-mode .smart-recommendation {
    background: linear-gradient(145deg, #3a3a5c 0%, #323258 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .smart-recommendation .card-name {
    color: #fff;
}

body.dark-mode .smart-recommendation h3 {
    color: #a8b4ff;
}

body.dark-mode .smart-recommendation.capped {
    background: linear-gradient(145deg, #4d3d48 0%, #3d3545 100%);
    border-color: rgba(255, 71, 87, 0.4);
}

body.dark-mode .smart-recommendation.capped h3,
body.dark-mode .smart-recommendation.capped div {
    color: #ff8a94 !important;
}

body.dark-mode .amount-label {
    color: #ddd;
}

body.dark-mode .amount-input {
    background: var(--bg-page);
    border-color: rgba(102, 126, 234, 0.3);
    color: #fff;
}

body.dark-mode .amount-input::placeholder {
    color: #777;
}

body.dark-mode .amount-input:focus {
    border-color: var(--clr-primary);
}

body.dark-mode .btn-save {
    background: var(--grad-brand);
}

/* Settings Modal Dark Mode */
body.dark-mode .settings-modal {
    background: linear-gradient(145deg, #373758 0%, var(--bg-dropdown) 100%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

body.dark-mode .settings-header {
    border-color: rgba(102, 126, 234, 0.25);
}

body.dark-mode .settings-header h2 {
    color: #fff;
    font-weight: 700;
}

body.dark-mode .settings-close {
    background: rgba(102, 126, 234, 0.2);
    color: #ddd;
}

body.dark-mode .settings-close:hover {
    background: rgba(220, 53, 69, 0.25);
    color: #ff6b6b;
    transform: rotate(90deg);
}

body.dark-mode .settings-section-title {
    color: #aaa;
}

body.dark-mode .setting-item {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .setting-label {
    color: #e0e0e0;
}

/* Locked Page Dark Mode */
body.dark-mode.locked-page {
    background: linear-gradient(135deg, #1a1740 0%, #3d3878 50%, #313158 100%);
}

body.dark-mode .locked-box {
    background: linear-gradient(145deg, #373758 0%, var(--bg-dropdown) 100%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

body.dark-mode .locked-box h1 {
    color: #b794f6;
}

body.dark-mode .locked-box p {
    color: #d0d0e0;
}

body.dark-mode .locked-box strong {
    color: #ffffff;
}

body.dark-mode .lock-icon {
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

body.dark-mode .support-link {
    background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-primary) 100%);
    box-shadow: 0 6px 25px rgba(118, 75, 162, 0.5);
}

body.dark-mode .support-link:hover {
    background: linear-gradient(135deg, #8b5fc5 0%, #7a8fef 100%);
    box-shadow: 0 8px 30px rgba(118, 75, 162, 0.6);
}

body.dark-mode .glow-text {
    animation: glow-pulse-dark 2s ease-in-out infinite;
}

@keyframes glow-pulse-dark {
    0%, 100% { 
        text-shadow: 0 0 25px rgba(183, 148, 246, 0.6), 0 0 35px rgba(118, 75, 162, 0.4); 
    }
    50% { 
        text-shadow: 0 0 35px rgba(183, 148, 246, 0.9), 0 0 45px rgba(118, 75, 162, 0.7), 0 0 55px rgba(102, 126, 234, 0.5); 
    }
}

/* Danger Area Dark Mode */
body.dark-mode .danger-area {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(139, 0, 0, 0.25) 100%);
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.15);
}

body.dark-mode .danger-header {
    color: #ff6b6b;
}

body.dark-mode .danger-header svg {
    fill: #ff6b6b;
}

body.dark-mode .danger-section {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
}

body.dark-mode .danger-section:hover {
    border-color: rgba(220, 53, 69, 0.6);
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.25);
}

body.dark-mode .danger-section-title {
    color: #ff9999;
}

body.dark-mode .danger-section-desc {
    color: #bbb;
}

body.dark-mode .btn-danger-action {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

body.dark-mode .btn-danger-action:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    box-shadow: 0 10px 35px rgba(220, 53, 69, 0.6);
}

body.dark-mode .card-name {
    color: #ddd;
}

/* History page dark mode */
body.dark-mode .history-item {
    background: linear-gradient(145deg, #373758 0%, var(--bg-dropdown) 100%);
    border-color: rgba(102, 126, 234, 0.15);
}

body.dark-mode .history-card-name {
    color: #ddd;
}

body.dark-mode .history-date {
    color: #aaa;
}


body.dark-mode .empty-state {
    color: #aaa;
}

body.dark-mode .empty-state h2 {
    color: #bbb;
}

/* Footer dark mode */
body.dark-mode .site-footer {
    background: linear-gradient(135deg, #3a3a5c 0%, var(--bg-dropdown) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .footer-brand {
    color: #a8b4ff;
}

body.dark-mode .footer-copy {
    color: #aaa;
}

body.dark-mode .footer-divider {
    color: #777;
}

/* Services page dark mode */
body.dark-mode.services-page {
    background: var(--bg-page);
}

body.dark-mode.services-page::before {
    background: linear-gradient(135deg, var(--bg-page) 0%, #1e2d52 50%, #1a4275 100%);
}

body.dark-mode.services-page .login-container {
    background: linear-gradient(145deg, #373758 0%, var(--bg-dropdown) 100%);
}

body.dark-mode.services-page .welcome-text,
body.dark-mode.services-page h1 {
    color: #fff;
}

body.dark-mode.services-page .subtitle {
    color: #bbb;
}

body.dark-mode.services-page .login-option {
    background: linear-gradient(145deg, #3a3a5c 0%, #323258 100%);
}

body.dark-mode.services-page .login-option h3 {
    color: #fff;
}

body.dark-mode.services-page .login-option p {
    color: #aaa;
}

/* ========================================
   CASHBACK BREAKDOWN CARDS
   ======================================== */

.cashback-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.breakdown-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.breakdown-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.breakdown-label {
    font-size: 10px;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.breakdown-value {
    font-size: 15px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile adjustments for breakdown cards */
@media (max-width: 480px) {
    .cashback-breakdown {
        gap: 8px;
    }
    
    .breakdown-card {
        padding: 10px 8px;
        border-radius: 10px;
    }
    
    .breakdown-label {
        font-size: 9px;
    }
    
    .breakdown-value {
        font-size: 13px;
    }
}


/* ========================================
   PAYMENT CONFIRMATION MODAL
   ======================================== */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: linear-gradient(145deg, #373758, var(--bg-dropdown));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    width: 88%;
    max-width: 340px;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s ease;
}

.confirm-overlay.show .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.confirm-body {
    margin-bottom: 20px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.confirm-row:last-child { border-bottom: none; }

.confirm-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.confirm-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.confirm-cashback { color: #4ade80; }

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-btn-cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tx-base);
}

.confirm-btn-cancel:hover { background: rgba(255, 255, 255, 0.12); }

.confirm-btn-confirm {
    flex: 2;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tx-base);
}

.confirm-btn-confirm:hover { opacity: 0.88; }

/* ========================================
   PENDING NAV BUTTON
   ======================================== */

.pending-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.pending-nav-btn-lg {
    background: rgba(251, 146, 60, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 8px;
    padding: 5px 10px !important;
    color: #fb923c !important;
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
}

.pending-nav-btn-lg svg {
    fill: #fb923c;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.pending-nav-btn-lg:hover {
    background: rgba(251, 146, 60, 0.28);
}

.pending-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #fb923c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ========================================
   OUTSTANDING PAYMENTS
   ======================================== */

.outstanding-balance-card {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.outstanding-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.outstanding-balance-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.outstanding-balance-meta-used {
    font-size: 11px;
    font-weight: 600;
    color: #fb923c;
}

.outstanding-balance-meta-limit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.outstanding-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.outstanding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.outstanding-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.outstanding-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fb923c;
    white-space: nowrap;
    flex-shrink: 0;
}

.outstanding-title svg { fill: #fb923c; }

.outstanding-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.outstanding-total {
    font-size: 17px;
    font-weight: 800;
    color: #fb923c;
    letter-spacing: -0.3px;
}

.outstanding-clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 6px;
    color: #fb923c;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--tx-base);
}

.outstanding-clear-btn:hover {
    background: rgba(251, 146, 60, 0.25);
}

.outstanding-list {
    margin-bottom: 14px;
}

.outstanding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
}

.outstanding-item:last-child { border-bottom: none; }

.outstanding-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.outstanding-item-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.outstanding-item-amount {
    font-size: 14px;
    font-weight: 700;
    color: #fb923c;
    white-space: nowrap;
}

.outstanding-tick-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(251, 146, 60, 0.3);
    background: transparent;
    color: rgba(251, 146, 60, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--tx-base);
}

.outstanding-tick-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: #4ade80;
    color: #4ade80;
}

.outstanding-tick-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.outstanding-empty {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 18px 0 8px;
    letter-spacing: 0.2px;
}

.outstanding-balance {
    padding: 10px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 12px;
}

.outstanding-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 7px;
}

.outstanding-balance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
}

.outstanding-balance-value {
    font-size: 22px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: -0.5px;
}

.outstanding-balance-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.outstanding-balance-fill {
    height: 100%;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    border-radius: 99px;
    width: 0;
    transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.outstanding-add-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 12px;
}

.outstanding-input {
    flex: 1;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    padding: 0 12px;
    font-size: 14px;
    min-width: 0;
    transition: border-color 0.2s;
}

.outstanding-input:focus {
    outline: none;
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.outstanding-input-amount {
    flex: 0 0 100px;
    max-width: 100px;
}

.outstanding-input[type="number"]::-webkit-outer-spin-button,
.outstanding-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.outstanding-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.outstanding-add-btn {
    height: 42px;
    background: rgba(251, 146, 60, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 10px;
    color: #fb923c;
    font-size: 14px;
    font-weight: 700;
    padding: 0 18px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--tx-base);
}

.outstanding-add-btn:hover {
    background: rgba(251, 146, 60, 0.32);
}

.outstanding-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--tx-base);
}

.outstanding-copy-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

/* Checked — Must Pay Now card */
.checked-card {
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.checked-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.checked-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4ade80;
    white-space: nowrap;
}

.checked-title svg { fill: #4ade80; }

.checked-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checked-total {
    font-size: 18px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: -0.3px;
    margin-right: 4px;
}

.checked-paid-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 8px;
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--tx-base);
}

.checked-paid-btn:hover {
    background: rgba(74, 222, 128, 0.28);
}

.checked-undo-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--tx-base);
}

.checked-undo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .outstanding-input:not(.outstanding-input-amount) {
        flex: 1 1 100%;
    }
    .outstanding-input-amount {
        flex: 1;
        max-width: none;
    }
    .checked-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .checked-header-right {
        width: 100%;
        justify-content: space-between;
    }
}

.checked-item {
    padding: 7px 0;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.checked-item:last-child { border-bottom: none; }

.checked-item-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.checked-item-name {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checked-item-amount {
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .outstanding-add-form {
        flex-wrap: wrap;
    }

    .outstanding-input-amount {
        max-width: none;
        flex: 1;
    }
}

/* ========================================
   SITE FOOTER
   ======================================== */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 14px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.footer-divider {
    color: rgba(102, 126, 234, 0.5);
    font-size: 10px;
}

.footer-copy {
    font-size: 12px;
    color: rgba(100, 100, 120, 0.8);
    font-weight: 500;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #16a34a;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-error {
    background: #dc2626;
}

.toast.toast-success {
    background: #16a34a;
}


/* ===== SUBSCRIPTIONS PAGE ===== */

.sub-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sub-summary-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 20px;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.sub-summary-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.sub-summary-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.sub-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.sub-form-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.sub-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-form-row {
    display: flex;
    gap: 10px;
}

.sub-form-row-split {
    display: flex;
    gap: 10px;
}

.sub-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sub-input:focus {
    border-color: var(--clr-primary);
}

.sub-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.sub-input-amount {
    flex: 2;
}

.sub-input-short {
    flex: 0 0 110px;
}

.sub-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    flex: 0 0 90px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.sub-select option {
    background: var(--bg-dropdown);
    color: #fff;
    padding: 8px;
    font-size: 14px;
}

.sub-select option:checked {
    background: var(--clr-primary);
    color: #fff;
}

.sub-select option:hover {
    background: #424270;
    color: #fff;
}

.sub-select-card {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

.sub-select-card:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.sub-select-card option {
    background: var(--bg-dropdown);
    color: #fff;
    padding: 8px;
    font-size: 14px;
}

.sub-select-card option:checked {
    background: var(--clr-primary);
    color: #fff;
}

.sub-select-card option:hover {
    background: #424270;
    color: #fff;
}

.sub-submit-btn {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.sub-submit-btn:active {
    transform: scale(0.98);
}

/* --- Subscription list items (compact row layout) --- */
.sub-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 14px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-item-body {
    flex: 1;
    min-width: 0;
}

.sub-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.sub-meta-paid {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
}

.sub-meta-renewal {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.sub-item-price {
    text-align: right;
    flex-shrink: 0;
}

.sub-price-main {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.sub-price-currency {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.65;
}

.sub-price-bhd {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    text-align: right;
    margin-top: 1px;
}

/* Who badge — fixed width so names always align */
.sub-who-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 0;
    width: 58px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-who-me      { background: rgba(102, 126, 234, 0.2); color: #667eea; }
.sub-who-father  { background: rgba(245, 166, 35,  0.18); color: #f5a623; }
.sub-who-mother  { background: rgba(255, 107, 157, 0.18); color: #ff6b9d; }
.sub-who-khawla  { background: rgba(38,  196, 133, 0.18); color: #26c485; }
.sub-who-maryah  { background: rgba(0,   188, 212, 0.18); color: #00bcd4; }
.sub-who-arwa    { background: rgba(176, 106, 255, 0.18); color: #b06aff; }

/* Inline who label — used in meta row, aligns with text */
.sub-who-inline {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-who-inline.sub-who-me      { background: rgba(102,126,234,0.2); color: #667eea; }
.sub-who-inline.sub-who-father  { background: rgba(245,166,35, 0.18); color: #f5a623; }
.sub-who-inline.sub-who-mother  { background: rgba(255,107,157,0.18); color: #ff6b9d; }
.sub-who-inline.sub-who-khawla  { background: rgba(38,196,133, 0.18); color: #26c485; }
.sub-who-inline.sub-who-maryah  { background: rgba(0,188,212,  0.18); color: #00bcd4; }
.sub-who-inline.sub-who-arwa    { background: rgba(176,106,255, 0.18); color: #b06aff; }
.sub-who-inline.sub-who-partner { background: rgba(102,126,234,0.2); color: #667eea; }
.sub-who-inline.sub-who-family  { background: rgba(245,166,35, 0.18); color: #f5a623; }

.sub-section-annual-block {
    border-color: rgba(255, 255, 255, 0.08);
}
.sub-section-annual-block .sub-section-title {
    color: #ffffff;
}

.sub-delete-form {
    flex-shrink: 0;
}

.sub-delete-btn {
    background: transparent;
    color: rgba(255, 71, 87, 0.55);
    border: 1px solid rgba(255, 71, 87, 0.25);
    border-radius: 7px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-section {
    margin-bottom: 20px;
}

.sub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 7px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 9px;
}

.sub-section-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sub-section-count {
    background: var(--clr-primary) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 3px 11px;
    border-radius: 20px;
    white-space: nowrap;
    text-align: center;
}

.billing-cycle-toggle {
    display: flex;
    gap: 0;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-input);
}

.cycle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cycle-btn.active {
    background: var(--grad-brand);
    color: #fff;
}

.cycle-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
}

.sub-delete-btn:hover {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.5);
}

.sub-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.sub-empty p {
    margin-top: 12px;
    font-size: 14px;
}

/* ========================================
   SAVINGS HUB
   ======================================== */

.savings-create-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.savings-create-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px 0;
}

.savings-create-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.savings-create-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.savings-create-prefix {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    padding: 0 12px;
    white-space: nowrap;
}

.savings-create-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.savings-create-row .savings-create-amount {
    background: transparent;
    border: none;
    border-radius: 0;
}

.savings-create-input::placeholder { color: rgba(255,255,255,0.35); }
.savings-create-input:focus { border-color: rgba(102, 126, 234, 0.6); }

.savings-create-btn {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.savings-create-btn:hover { opacity: 0.88; }

.savings-goals-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.savings-goal-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    overflow: hidden;
}
.savings-goal-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* The clickable link area fills the card */
.savings-goal-link {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    text-decoration: none;
}

.savings-goal-name {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.savings-goal-progress-bar-wrap {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.savings-goal-progress-bar {
    height: 100%;
    background: var(--grad-brand);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.savings-goal-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.savings-goal-amounts {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
}

.savings-goal-saved {
    font-size: 18px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.savings-goal-target {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.savings-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
}

.saving-goal-delete-btn {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.saving-goal-delete-btn:hover { background: rgba(220, 53, 69, 0.3); }

/* Savings goal row (card + star button wrapper) */
.savings-goal-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.savings-goal-row .savings-goal-card {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Focus badge on starred card */
.savings-focus-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

/* Starred card highlight */
.savings-goal-starred {
    border-color: rgba(255, 215, 0, 0.35) !important;
    background: rgba(255, 215, 0, 0.05) !important;
}

/* Star toggle button â€” sits inside the card on the right */
.savings-star-form { display: flex; align-items: stretch; }
.savings-star-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    width: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.savings-star-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}
.savings-star-active {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #ffd700 !important;
    border-left-color: rgba(255, 215, 0, 0.25) !important;
}

/* Deposit delete confirm modal */
.sg-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.sg-confirm-overlay.show {
    display: flex;
}
.sg-confirm-modal {
    background: var(--bg-modal);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 260px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.sg-confirm-text {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px 0;
    text-align: center;
}
.sg-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}



/* Goal delete trigger (header) */
.goal-delete-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: rgba(255, 107, 107, 0.75);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    background: rgba(220, 53, 69, 0.08);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.goal-delete-trigger:hover {
    background: rgba(220, 53, 69, 0.18);
    color: #ff6b6b;
}

.goal-delete-confirm {
    display: none;
    align-items: center;
    gap: 8px;
}

.goal-delete-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.goal-delete-yes {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.goal-delete-yes:hover { opacity: 0.85; }

.goal-delete-no {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.goal-delete-no:hover { background: rgba(255, 255, 255, 0.14); }

.rolex-source-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.rolex-source-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}

.rolex-source-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.rolex-source-amount {
    font-size: 15px;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rolex-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='rgba(255,255,255,0.5)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.rolex-select option {
    background: var(--bg-dropdown);
    color: #fff;
    padding: 8px;
    font-size: 14px;
}

.rolex-select option:checked {
    background: var(--clr-primary);
    color: #fff;
}

.rolex-select option:hover {
    background: #424270;
    color: #fff;
}

.rolex-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.rolex-form-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.rolex-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rolex-form-row {
    display: flex;
    gap: 10px;
}

.rolex-input {
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.rolex-input:focus {
    border-color: var(--clr-primary);
}

.rolex-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.rolex-amount-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.rolex-amount-wrapper:focus-within {
    border-color: var(--clr-primary);
}

.rolex-amount-prefix {
    padding: 12px 0 12px 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}

.rolex-input-amount {
    background: none;
    border: none;
    padding-left: 8px;
}

.rolex-input-amount:focus {
    border: none;
}

.rolex-submit-btn {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    width: 100%;
    display: block;
}

.rolex-submit-btn:active {
    transform: scale(0.98);
}

.rolex-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.rolex-timeline-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.rolex-timeline-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.rolex-timeline {
    position: relative;
    padding-left: 24px;
}

.rolex-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--clr-primary), rgba(102, 126, 234, 0.15));
    border-radius: 2px;
}

.rolex-month-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.rolex-month-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.rolex-month-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-primary);
}

.rolex-month-card-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rolex-month-card-total {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(102, 126, 234, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
}

.rolex-month-card .rolex-timeline {
    padding-left: 24px;
}

.rolex-timeline-item {
    position: relative;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rolex-timeline-dot {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--clr-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-page);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    z-index: 1;
}

.rolex-timeline-content {
    flex: 1;
    min-width: 0;
}

.rolex-timeline-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rolex-timeline-source {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.rolex-timeline-location {
    margin-top: 3px;
}

.rolex-location-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rolex-location-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.rolex-timeline-amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-primary);
}

.rolex-timeline-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.rolex-delete-form {
    flex-shrink: 0;
}

.rolex-delete-btn {
    background: rgba(255, 71, 87, 0.10);
    color: #ff4757;
    border: 1.5px solid rgba(255, 71, 87, 0.6);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rolex-delete-btn:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    transform: none;
}

.rolex-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.rolex-empty p {
    margin-top: 12px;
    font-size: 14px;
}


/* ===== SUBSCRIPTIONS & ROLEX RESPONSIVE ===== */

/* ===== SERVICES HUB PAGE ===== */

/* Services Hero */
.services-hero {
    text-align: center;
    padding: 32px 0 24px;
}

.services-hero-greeting {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.services-hero-name {
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, var(--clr-primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.services-hero-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
}

.page-date {
    text-align: center;
    padding: 10px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.03em;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 10px;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card:active {
    transform: translateY(0);
}

.service-card .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    margin: 0;
}

.service-card .service-icon svg {
    width: 36px;
    height: 36px;
    filter: none;
}

.service-icon-cashback {
    background: var(--grad-brand);
}

.service-icon-subs {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-icon-savings {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
}

.service-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
}

.svc-outstanding-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 8px 12px;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 12px;
    color: #fb923c;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.svc-outstanding-btn:hover {
    background: rgba(251, 146, 60, 0.22);
}

.svc-desc-short { display: none; }

@media (max-width: 600px) {
    .svc-outstanding-label { display: none; }
    .svc-outstanding-btn { padding: 8px 10px; }
    .svc-desc-long { display: none; }
    .svc-desc-short { display: inline; }
}

.outstanding-dot {
    width: 6px;
    height: 6px;
    background: #fb923c;
    border-radius: 50%;
    flex-shrink: 0;
}

.outstanding-count-badge {
    background: #fb923c;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}

.service-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.2s, transform 0.2s;
}

.service-card:hover .service-arrow {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .sub-form-row-split {
        flex-direction: column;
    }

    .sub-input-short {
        flex: 1;
    }
}

@media (max-width: 428px) {
    .service-card {
        padding: 18px 16px;
        gap: 12px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .service-title {
        font-size: 15px;
    }

    .service-desc {
        font-size: 12px;
    }

    .sub-summary {
        gap: 8px;
    }

    .sub-summary-item {
        padding: 10px 14px;
        min-width: 80px;
    }

    .sub-summary-value {
        font-size: 18px;
    }

}


/* ========================================
   SAVINGS TRACKER (income / expense)
   ======================================== */

/* Goal card */
.sv-goal-card {
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 18px 20px 14px;
    margin-bottom: 16px;
    position: relative;
}

.sv-goal-card.sv-goal-reached {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
}

.sv-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sv-goal-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sv-goal-reached-badge {
    background: rgba(74, 222, 128, 0.2);
    color: var(--color-success);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
}

.sv-goal-target {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    padding-left: 8px;
}

.sv-goal-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sv-goal-bar-fill {
    height: 100%;
    background: var(--grad-brand-90);
    border-radius: 99px;
    width: 0;
    transition: width 0.6s ease;
}

.sv-goal-card.sv-goal-reached .sv-goal-bar-fill {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.sv-goal-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.sv-goal-stat { display: flex; flex-direction: column; gap: 2px; }
.sv-goal-stat-right { text-align: right; }

.sv-goal-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-goal-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.sv-goal-pct {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 11px;
    color: var(--text-muted);
    display: none;
}

.sv-positive { color: var(--color-success) !important; }
.sv-negative { color: var(--color-warning) !important; }

/* No-goal placeholder */
.sv-goal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Month summary */
.sv-summary-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.sv-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.sv-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.sv-summary-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-summary-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Income / Expense sections */
.sv-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.sv-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sv-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sv-income-header .sv-section-title svg { color: var(--color-success); }
.sv-expense-header .sv-section-title svg { color: var(--color-warning); }

.sv-section-total {
    font-size: 15px;
    font-weight: 700;
}

/* Entries list */
.sv-entries { margin-bottom: 14px; }

.sv-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sv-entry:last-child { border-bottom: none; }

.sv-entry-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.sv-entry-amount {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sv-delete-form { margin: 0; display: flex; }

.sv-delete-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.sv-delete-btn:hover { color: #f87171; }

.sv-entries-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0 14px;
}

/* Add entry form */
.sv-add-form { margin-top: 4px; }

.sv-add-select {
    width: 100%;
}

.sv-add-text {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.sv-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.sv-add-prefix {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.sv-add-amount {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.sv-add-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.sv-add-btn:hover { opacity: 0.85; }

.sv-add-btn-income {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.sv-add-btn-expense {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
}

/* Settings modal: current goal info */
.sv-current-goal-info {
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.sv-cg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.sv-cg-label { font-size: 12px; color: var(--text-muted); }
.sv-cg-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

.sv-settings-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.sv-goal-form { display: flex; flex-direction: column; gap: 10px; }

.sv-goal-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 11px 14px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.sv-goal-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0 12px;
}

.sv-goal-amount-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 11px 6px;
    font-size: 14px;
    outline: none;
}

.sv-goal-month-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: -4px;
}

.sv-goal-submit-btn {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.sv-goal-submit-btn:hover { opacity: 0.88; }

.sv-settings-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 18px 0 14px;
}

.sv-settings-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

/* ========================================
   SAVINGS TRACKER — MOBILE
   ======================================== */

@media (max-width: 480px) {
    /* Tighten section padding */
    .sv-section {
        padding: 14px 12px;
    }

    .sv-goal-card {
        padding: 14px 14px 12px;
    }

    /* Summary card: protect values from overflow */
    .sv-summary-value {
        font-size: 13px;
        word-break: break-all;
    }

    .sv-summary-label {
        font-size: 10px;
    }

    /* Stat values in goal card */
    .sv-goal-stat-value {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 130px;
    }

    /* Add row: keep button a comfortable size */
    .sv-add-row {
        gap: 6px;
    }

    .sv-add-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 52px;
    }

    /* Goal form inputs */
    .sv-goal-input,
    .sv-goal-amount-row {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .sv-goal-amount-input {
        font-size: 16px;
    }

    /* Current goal info: wrap long values */
    .sv-cg-row {
        align-items: flex-start;
        gap: 4px;
    }

    .sv-cg-value {
        text-align: right;
        padding-left: 8px;
        word-break: break-word;
        min-width: 0;
        flex: 1;
    }

    /* Month input iOS */
    .sv-goal-input[type="month"] {
        -webkit-appearance: none;
        appearance: none;
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    /* Very small phones: stack goal header */
    .sv-goal-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .sv-goal-target {
        padding-left: 0;
        font-size: 12px;
    }

    /* Summary row: let values wrap */
    .sv-summary-item {
        min-width: 0;
    }

    .sv-summary-value {
        font-size: 12px;
    }

    /* Entries */
    .sv-entry-label,
    .sv-entry-amount {
        font-size: 13px;
    }

    /* Section total */
    .sv-section-total {
        font-size: 13px;
    }
}


/* ========================================
   GYM SCHEDULE
   ======================================== */

/* Service icon */
.service-icon-gym {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Header save button */
.gym-autosave-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
    transition: opacity var(--tx-base);
}

.gym-header-save-btn {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--tx-base);
}
.gym-header-save-btn:disabled { opacity: 0.5; }
.gym-header-save-btn.gym-save-done { background: linear-gradient(135deg, #4ade80, #22c55e); }

/* ── Today hero card ── */
.gym-today-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: background var(--tx-base);
}
.gym-today-workout { border-color: rgba(102, 126, 234, 0.35); background: rgba(102, 126, 234, 0.1); }
.gym-today-rest    { border-color: rgba(255, 255, 255, 0.08); }
.gym-today-done    { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.07); }

.gym-today-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.gym-today-weekday {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
.gym-today-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
}
.gym-badge-workout { background: rgba(102,126,234,0.2); color: var(--clr-primary); }
.gym-badge-rest    { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.gym-badge-done    { background: rgba(74,222,128,0.15); color: #4ade80; }
.gym-badge-partial { background: rgba(251,146,60,0.15); color: #fb923c; }

.gym-today-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.gym-today-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.gym-today-done-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
}

/* ── Week strip ── */
.gym-week-strip {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.gym-week-strip::-webkit-scrollbar { display: none; }

.gym-week-day {
    flex: 1;
    min-width: 42px;
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--border-faint);
    background: var(--bg-card);
    transition: background var(--tx-base);
    cursor: pointer;
}
.gym-week-workout { border-color: rgba(102,126,234,0.25); background: rgba(102,126,234,0.08); }
.gym-week-rest    { opacity: 0.55; }
.gym-week-today   { border-color: var(--clr-primary) !important; background: rgba(102,126,234,0.18) !important; opacity: 1 !important; }
.gym-week-actual-today { border-color: #f97316 !important; background: rgba(249,115,22,0.15) !important; box-shadow: 0 0 0 2px rgba(249,115,22,0.3) !important; opacity: 1 !important; }

.gym-week-day-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.gym-week-day-type {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Section title ── */
.gym-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.gym-section-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--clr-primary);
}

/* ── Exercise list (dashboard) ── */
.gym-exercise-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.gym-exercise-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: all var(--tx-base);
}
.gym-ex-done {
    opacity: 0.6;
    border-color: rgba(74,222,128,0.2);
    background: rgba(74,222,128,0.05);
}

.gym-ex-check { position: relative; flex-shrink: 0; }
.gym-ex-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.gym-ex-checkmark {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all var(--tx-base);
    position: relative;
}
.gym-ex-check input:checked ~ .gym-ex-checkmark {
    background: #4ade80;
    border-color: #4ade80;
}
.gym-ex-check input:checked ~ .gym-ex-checkmark::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 6px; height: 10px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

.gym-ex-body { flex: 1; min-width: 0; }
.gym-ex-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gym-ex-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}
.gym-ex-notes { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-style: italic; }

.gym-ex-weight {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.gym-weight-input {
    width: 56px;
    padding: 5px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.gym-weight-unit { font-size: 11px; color: var(--text-muted); }

/* ── Per-set weight inputs ── */
.gym-ex-sets-weights {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.gym-set-weight-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gym-set-num {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 20px;
    text-align: right;
}

/* ── Preview value (read-only other-day view) ── */
.gym-ex-preview-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
    min-width: 40px;
    line-height: 1.4;
}
.gym-ex-preview-val small { font-size: 10px; font-weight: 400; }

/* ── Log row ── */
.gym-log-row { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.gym-notes-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 60px;
}
.gym-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 13px;
    background: var(--grad-brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--tx-base);
}
.gym-save-btn:disabled { opacity: 0.5; }
.gym-save-btn.gym-save-done { background: linear-gradient(135deg, #4ade80, #22c55e); }

/* ── Rest block ── */
.gym-rest-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    gap: 8px;
}
.gym-rest-label { font-size: 18px; font-weight: 700; color: var(--text-muted); }
.gym-rest-note { font-size: 13px; color: var(--text-muted); }
.gym-rest-sub { font-size: 12px; color: var(--text-muted); text-align: center; max-width: 260px; }
.gym-done-rest-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: rgba(102,126,234,0.15);
    border: 1.5px solid rgba(102,126,234,0.4);
    border-radius: 20px;
    color: var(--clr-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.gym-done-rest-btn:hover { background: rgba(102,126,234,0.25); }
.gym-skip-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.gym-skip-btn:hover { background: rgba(255,255,255,0.04); }
.gym-today-logged-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0 4px;
}
.gym-today-logged-note a { color: var(--clr-primary); }
.gym-rest-today-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}
.gym-rest-today-card:hover { background: rgba(255,255,255,0.04); }
.gym-rest-today-q { font-size: 13px; color: var(--text-muted); }
.gym-rest-today-btn { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ── Stats row ── */
.gym-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 12px;
}
.gym-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}
.gym-stat-value { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.gym-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-top: 2px; }

/* ── Sequence strip ── */
.gym-seq-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gym-seq-strip::-webkit-scrollbar { display: none; }
.gym-seq-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 50px;
    padding: 8px 6px;
    border-radius: 10px;
    border: 1.5px solid var(--border-subtle);
}
.gym-seq-label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.gym-seq-sub   { font-size: 9px; color: var(--text-muted); opacity: 0.75; }
.gym-seq-icon  { font-size: 10px; font-weight: 700; }
.gym-seq-current {
    border-color: #f97316 !important;
    background: rgba(249,115,22,0.12) !important;
}
.gym-seq-current .gym-seq-label { color: #f97316; font-size: 12px; }
.gym-seq-current .gym-seq-sub   { color: #f97316; opacity: 0.8; }
.gym-seq-done {
    border-color: rgba(74,222,128,0.4);
    background: rgba(74,222,128,0.07);
}
.gym-seq-done .gym-seq-label { color: #4ade80; }
.gym-seq-done .gym-seq-icon  { color: #4ade80; }
.gym-seq-missed {
    border-color: rgba(239,68,68,0.25);
    background: rgba(239,68,68,0.05);
    opacity: 0.7;
}
.gym-seq-missed .gym-seq-icon { color: #ef4444; }
.gym-seq-future { opacity: 0.35; }
.gym-seq-rest-cell .gym-seq-label { font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; }

/* ── Cycle editor ── */
.gym-cycle-add-btn {
    padding: 9px 16px;
    background: rgba(102,126,234,0.1);
    border: 1.5px solid rgba(102,126,234,0.25);
    border-radius: var(--radius-md);
    color: var(--clr-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.gym-cycle-add-btn:hover { background: rgba(102,126,234,0.2); }
.gym-rest-step-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 0;
}

/* ── Empty state ── */
.gym-empty-exercises {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}
.gym-empty-exercises a { color: var(--clr-primary); }

/* ── Schedule editor ── */
.gym-day-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 14px;
}
.gym-day-tabs::-webkit-scrollbar { display: none; }

.gym-day-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-faint);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tx-base);
}
.gym-day-tab.active {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
}
.gym-day-tab.rest { opacity: 0.55; }
.gym-day-tab.rest.active { opacity: 1; }

.gym-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gym-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gym-panel-day-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }

.gym-type-toggle {
    display: flex;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    overflow: hidden;
}
.gym-type-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--tx-base);
}
.gym-type-btn.active { background: var(--grad-brand); color: #fff; }

.gym-panel-section { display: flex; flex-direction: column; gap: 6px; }
.gym-field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

.gym-select {
    width: 100%;
    padding: 10px 12px;
    background: #2d2d4d;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
}
.gym-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    min-width: 0;
}
.gym-modal-input::placeholder { color: var(--text-muted); }
.gym-modal-input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.gym-ex-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gym-add-ex-btn {
    padding: 5px 12px;
    background: rgba(102,126,234,0.15);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 8px;
    color: var(--clr-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--tx-base);
}
.gym-add-ex-btn:hover { background: rgba(102,126,234,0.25); }

.gym-ex-editor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-input-subtle);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
}
.gym-ex-editor-body { flex: 1; min-width: 0; }
.gym-ex-editor-actions { display: flex; gap: 4px; flex-shrink: 0; }

.gym-ex-reorder-btn {
    width: 28px; height: 28px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}
.gym-ex-reorder-btn:disabled { opacity: 0.3; cursor: default; }

.gym-ex-edit-btn {
    padding: 4px 10px;
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 6px;
    background: rgba(102,126,234,0.1);
    color: var(--clr-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.gym-ex-del-btn {
    width: 28px; height: 28px;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 6px;
    background: rgba(239,68,68,0.08);
    color: #f87171;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* ── Danger zone ── */
.gym-danger-zone { text-align: center; padding: 16px 0 4px; }
.gym-danger-btn {
    padding: 10px 20px;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    background: rgba(239,68,68,0.07);
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--tx-base);
}
.gym-danger-btn:hover { background: rgba(239,68,68,0.15); }

/* ── History ── */
.gym-volume-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(102,126,234,0.08);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
}
.gym-volume-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.gym-volume-value { font-size: 18px; font-weight: 700; color: var(--clr-primary); }

.gym-consistency-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.gym-grid-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
}
.gym-grid-done    { background: #4ade80; opacity: 0.85; }
.gym-grid-partial { background: #fb923c; opacity: 0.7; }
.gym-grid-today   { outline: 2px solid var(--clr-primary); outline-offset: 1px; }

.gym-consistency-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.gym-legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 2px;
}
.gym-legend-done   { background: #4ade80; opacity: 0.85; }
.gym-legend-missed { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }

.gym-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.gym-hist-done { border-color: rgba(74,222,128,0.2); }
.gym-hist-date { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.gym-hist-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.gym-hist-notes { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-style: italic; }
.gym-hist-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.gym-hist-ex-count { font-size: 11px; color: var(--text-muted); }

/* ── Group headers & tags ── */
.gym-ex-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 12px 0 6px;
}
.gym-ex-group-header:first-child { margin-top: 0; }
.gym-ex-group-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-faint);
}
.gym-ex-group-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(102,126,234,0.12);
    color: var(--clr-primary);
    margin-top: 2px;
}
.gym-ex-cardio-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(251,146,60,0.12);
    color: #fb923c;
    margin-top: 2px;
}

/* ── Cardio inputs (dashboard) ── */
.gym-cardio-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.gym-cardio-input {
    width: 54px;
    padding: 5px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.gym-cardio-unit { font-size: 10px; color: var(--text-muted); }

/* Remove number spinners on all gym inputs */
.gym-modal-input[type="number"]::-webkit-outer-spin-button,
.gym-modal-input[type="number"]::-webkit-inner-spin-button,
.gym-cardio-input::-webkit-outer-spin-button,
.gym-cardio-input::-webkit-inner-spin-button,
.gym-weight-input::-webkit-outer-spin-button,
.gym-weight-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gym-modal-input[type="number"],
.gym-cardio-input,
.gym-weight-input { -moz-appearance: textfield; }

/* ========================================
   UTILITY CLASSES (extracted from inline styles)
   ======================================== */

/* Demo banner — used across gym, savings, subscriptions, calories pages */
.demo-banner {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(12,12,22,0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 6px 8px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.demo-banner-tag {
    background: var(--clr-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 100px;
}
.demo-banner-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.15);
}
.demo-banner-link {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding-right: 6px;
    white-space: nowrap;
}

/* Section label — small uppercase muted heading used in many cards */
.section-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Stat card — generic dark card with border */
.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 14px 16px;
}

/* Two-column responsive grid */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 400px) {
    .grid-2col { grid-template-columns: 1fr; }
}

/* Gradient action button */
.btn-gradient {
    background: var(--grad-brand);
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    width: 100%;
}

/* Muted pill badge (e.g. date display) */
.pill-muted {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.06em;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;
    padding: 5px 16px;
    background: rgba(255,255,255,0.03);
}

/* Success/error inline message */
.msg-success { font-size: 12px; color: var(--color-success); margin-top: 6px; }
.msg-error   { font-size: 12px; color: var(--color-danger);  margin-top: 6px; }

/* ========================================
   PAGE TABS (combined service pages)
   ======================================== */
.page-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.page-tab {
    flex: 1;
    padding: 9px 4px;
    border-radius: 8px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.page-tab.active {
    background: rgba(102,126,234,0.18);
    color: #fff;
}
.page-tab:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
}
@media (max-width: 400px) {
    .page-tab { font-size: 11px; padding: 8px 2px; }
}

/* ========================================
   COMPONENT & UTILITY CLASSES
   (extracted from template inline styles)
   ======================================== */

/* ─ Typography ─────────────────────────── */
.text-xs  { font-size: 10px; }
.text-sm  { font-size: 11px; }
.text-13  { font-size: 13px; }
.text-md  { font-size: 14px; }
.text-15  { font-size: 15px; }
.text-lg  { font-size: 16px; }
.text-xl  { font-size: 18px; }
.text-2xl { font-size: 20px; }
.text-3xl { font-size: 22px; }
.text-4xl { font-size: 26px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-white  { color: #fff; }
.text-green  { color: #4ade80; }
.text-blue   { color: var(--clr-primary); }
.text-orange { color: var(--color-orange); }
.text-danger { color: var(--color-danger); }
.text-muted-2 { color: rgba(255,255,255,0.2); }
.text-muted-3 { color: rgba(255,255,255,0.3); }
.text-muted-35 { color: rgba(255,255,255,0.35); }
.text-muted-4 { color: rgba(255,255,255,0.4); }
.text-muted-45 { color: rgba(255,255,255,0.45); }
.text-muted-5 { color: rgba(255,255,255,0.5); }
.text-muted-55 { color: rgba(255,255,255,0.55); }
.text-muted-6 { color: rgba(255,255,255,0.6); }
.text-muted-65 { color: rgba(255,255,255,0.65); }
.text-muted-7 { color: rgba(255,255,255,0.7); }
.text-muted-75 { color: rgba(255,255,255,0.75); }
.text-muted-85 { color: rgba(255,255,255,0.85); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.italic      { font-style: italic; }
.mono        { font-family: monospace; }
.nowrap      { white-space: nowrap; }
.word-break  { word-break: break-all; }
.uppercase   { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.08em; }
.tracking-wider { letter-spacing: 0.15em; }
.line-height-1  { line-height: 1; }
.line-height-13 { line-height: 1.3; }
.line-height-2  { line-height: 2; }

/* ─ Label (tiny uppercase muted) ────────── */
.label-upper {
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px;
}

/* ─ Spacing ────────────────────────────── */
.mb-0  { margin-bottom: 0; }   .mt-0  { margin-top: 0; }
.mb-2  { margin-bottom: 2px; } .mt-2  { margin-top: 2px; }
.mb-3  { margin-bottom: 3px; } .mt-3  { margin-top: 3px; }
.mb-4  { margin-bottom: 4px; } .mt-4  { margin-top: 4px; }
.mb-6  { margin-bottom: 6px; } .mt-6  { margin-top: 6px; }
.mb-8  { margin-bottom: 8px; } .mt-8  { margin-top: 8px; }
.mb-10 { margin-bottom: 10px;} .mt-10 { margin-top: 10px;}
.mb-12 { margin-bottom: 12px;} .mt-12 { margin-top: 12px;}
.mb-14 { margin-bottom: 14px;} .mt-14 { margin-top: 14px;}
.mb-16 { margin-bottom: 16px;} .mt-16 { margin-top: 16px;}
.mb-20 { margin-bottom: 20px;} .mt-20 { margin-top: 20px;}
.mb-22 { margin-bottom: 22px;} .mt-22 { margin-top: 22px;}
.mb-24 { margin-bottom: 24px;} .mt-24 { margin-top: 24px;}
.pl-18 { padding-left: 18px; }
.pl-6  { padding-left: 6px; }
.pr-6  { padding-right: 6px; }
.p-0   { padding: 0; }

/* ─ Layout / Flex ───────────────────────── */
.d-none   { display: none; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.flex-col { flex-direction: column; }
.items-center   { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start    { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.flex-1      { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap   { flex-wrap: wrap; }
.min-w-0     { min-width: 0; }
.w-full      { width: 100%; }
.inset-0     { inset: 0; }
.gap-4  { gap: 4px; }   .gap-5  { gap: 5px; }  .gap-6  { gap: 6px; }
.gap-7  { gap: 7px; }   .gap-8  { gap: 8px; }  .gap-9  { gap: 9px; }
.gap-10 { gap: 10px; }  .gap-12 { gap: 12px; } .gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }  .gap-24 { gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.overflow-auto   { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }
.pos-relative { position: relative; }
.pos-absolute { position: absolute; }
.pos-fixed    { position: fixed; }
.z-100 { z-index: 100; }

/* ─ Sizing ──────────────────────────────── */
.w-28h-28 { width: 28px; height: 28px; }
.w-32h-32 { width: 32px; height: 32px; }
.w-40h-40 { width: 40px; height: 40px; }
.w-70  { width: 70px; }
.w-90  { width: 90px; }
.w-110 { width: 110px; height: 110px; }
.min-w-50 { min-width: 50px; }
.max-w-320 { max-width: 320px; }
.max-w-380 { max-width: 380px; }
.max-w-420 { max-width: 420px; }
.max-w-480 { max-width: 480px; }

/* ─ Borders / Radius ───────────────────── */
.rounded-8  { border-radius: 8px; }
.rounded-10 { border-radius: 10px; }
.rounded-12 { border-radius: 12px; }
.rounded-14 { border-radius: 14px; }
.rounded-16 { border-radius: 16px; }
.rounded-20 { border-radius: 20px; }
.rounded-full { border-radius: 100px; }
.border-t { border-top: 1px solid rgba(255,255,255,0.07); }
.border-t-faint { border-top: 1px solid rgba(255,255,255,0.06); }
.border-t-muted { border-top: 1px solid rgba(255,255,255,0.1); }

/* ─ Backgrounds ─────────────────────────── */
.bg-card       { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.bg-card-hover { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.bg-input-sm   { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.bg-success-subtle { background: rgba(74,222,128,0.07); border: 1px solid rgba(74,222,128,0.2); }
.bg-gradient-brand { background: var(--grad-brand); }

/* ─ Summary banner ──────────────────────── */
.summary-banner {
    background: linear-gradient(135deg,rgba(102,126,234,0.15),rgba(118,75,162,0.15));
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 16px; padding: 16px 20px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.summary-total-big   { font-size: 26px; font-weight: 800; color: #4ade80; }
.summary-total-small { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.75); }

/* ─ Bank mini-card header ───────────────── */
.bank-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bank-logo   {
    width: 28px; height: 28px; border-radius: 7px;
    object-fit: contain; background: rgba(255,255,255,0.06); padding: 3px;
}
.bank-name   { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); }
.bank-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.35); }
.bank-stat-val { font-size: 15px; font-weight: 700; color: #fff; }
.bank-stat-val-green { font-size: 15px; font-weight: 700; color: #4ade80; }
.bank-stat-unit { font-size: 10px; color: rgba(255,255,255,0.4); }

/* ─ Albaraka quick-log ──────────────────── */
.alb-log-row {
    display: flex; gap: 8px; align-items: center;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07);
}
.alb-log-input {
    flex: 1; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 10px 12px; font-size: 14px; color: #fff; outline: none;
    -moz-appearance: textfield; appearance: textfield;
}
.alb-log-input::-webkit-inner-spin-button,
.alb-log-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.alb-log-btn {
    width: 40px; height: 40px; border-radius: 10px; border: none;
    background: var(--grad-brand); color: #fff; font-size: 22px; font-weight: 300;
    cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alb-preview { display: none; flex-direction: row; align-items: center; gap: 6px; margin-top: 8px; }
.alb-msg     { display: none; font-size: 12px; color: #4ade80; margin-top: 6px; }

/* ─ Outstanding tab ─────────────────────── */
.ost-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ost-pay-link {
    display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
    padding: 6px 10px; text-decoration: none;
}

/* ─ Calorie tracker ─────────────────────── */
.cal-summary-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 24px 20px 20px; margin-bottom: 20px;
}
.cal-ring-wrap { flex-shrink: 0; position: relative; width: 110px; height: 110px; }
.cal-ring-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cal-ring-kcal { font-size: 20px; font-weight: 800; color: #fff; }
.cal-ring-unit { font-size: 10px; color: rgba(255,255,255,0.4); }
.cal-target-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.cal-target-value { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.cal-log-btn {
    width: 100%; margin-top: 8px;
    background: linear-gradient(135deg,rgba(102,126,234,0.15),rgba(118,75,162,0.15));
    border: 1.5px dashed rgba(102,126,234,0.4); border-radius: 14px;
    padding: 14px; font-size: 14px; font-weight: 600; color: #667eea; cursor: pointer;
}
.cal-preview { text-align: center; font-size: 22px; font-weight: 800; color: var(--clr-primary); padding: 6px 0; }
.fav-cal-preview { text-align: center; font-size: 18px; font-weight: 800; color: var(--clr-primary); }
.meal-name-wrap { position: relative; }
.meal-suggestions {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #1e1e30; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; margin-top: 4px; z-index: 100;
    overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.meal-save-label {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); cursor: pointer;
}
.macro-slider-row { display: flex; align-items: center; gap: 10px; }
.macro-slider-lbl { font-size: 13px; color: rgba(255,255,255,0.6); width: 70px; }
.macro-slider-val { font-size: 13px; font-weight: 700; color: #fff; width: 36px; text-align: right; }
.macro-gram-grid  { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; }
.macro-gram-p { background:rgba(102,126,234,0.1);border:1px solid rgba(102,126,234,0.2);border-radius:10px;padding:8px 4px; }
.macro-gram-c { background:rgba(74,222,128,0.1);border:1px solid rgba(74,222,128,0.2);border-radius:10px;padding:8px 4px; }
.macro-gram-f { background:rgba(251,146,60,0.1);border:1px solid rgba(251,146,60,0.2);border-radius:10px;padding:8px 4px; }
.macro-gram-val-p { font-size:16px;font-weight:800;color:#667eea; }
.macro-gram-val-c { font-size:16px;font-weight:800;color:#4ade80; }
.macro-gram-val-f { font-size:16px;font-weight:800;color:#fb923c; }
.macro-gram-lbl   { font-size:10px;color:rgba(255,255,255,0.4);margin-top:2px; }
.macro-warning    { font-size:12px;color:#ef4444;margin-top:6px;display:none; }

/* ─ Favorites modal ─────────────────────── */
.fav-modal-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px; }
.fav-modal-close  { background:none;border:none;color:rgba(255,255,255,0.4);font-size:22px;cursor:pointer;line-height:1;padding:0; }
.fav-list-wrap    { overflow-y:auto;flex:1;min-height:0; }
.fav-list         { display:flex;flex-direction:column;gap:8px; }
.fav-add-sep      { margin-top:14px;border-top:1px solid rgba(255,255,255,0.07);padding-top:14px; }
.fav-add-form     { display:none;flex-direction:column;gap:8px;margin-bottom:10px; }
.fav-btn-row      { display:flex;gap:8px; }
.fav-btn-cancel   { flex:1;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);border-radius:10px;padding:10px;font-size:13px;color:rgba(255,255,255,0.5);cursor:pointer; }
.fav-btn-save     { flex:1;background:var(--grad-brand);border:none;border-radius:10px;padding:10px;font-size:13px;font-weight:700;color:#fff;cursor:pointer; }
.fav-add-btn      { width:100%;background:none;border:1.5px dashed rgba(102,126,234,0.4);border-radius:12px;padding:11px;font-size:13px;font-weight:600;color:#667eea;cursor:pointer; }
.fav-macro-lbl    { font-size:10px;color:rgba(255,255,255,0.35);text-align:center;margin-top:3px; }

/* ─ Gym volume cards ────────────────────── */
.gym-vol-flex { display:flex;gap:10px; }
.gym-vol-kg   { flex:1;background:rgba(102,126,234,0.08);border:1px solid rgba(102,126,234,0.15);border-radius:10px;padding:10px 14px;text-align:center; }
.gym-vol-lbs  { flex:1;background:rgba(251,146,60,0.08);border:1px solid rgba(251,146,60,0.15);border-radius:10px;padding:10px 14px;text-align:center; }
.gym-vol-num-kg  { font-size:20px;font-weight:800;color:#667eea; }
.gym-vol-num-lbs { font-size:20px;font-weight:800;color:#fb923c; }
.gym-vol-unit    { font-size:11px;color:rgba(255,255,255,0.4);margin-top:2px; }
.gym-muscle-row  { display:flex;align-items:center;gap:10px; }
.gym-muscle-lbl  { font-size:13px;font-weight:600;color:rgba(255,255,255,0.7);width:90px;flex-shrink:0; }
.gym-muscle-track{ flex:1;height:6px;background:rgba(255,255,255,0.07);border-radius:3px;overflow:hidden; }
.gym-muscle-sets { font-size:12px;font-weight:700;color:#667eea;min-width:50px;text-align:right; }

/* ─ TOTP setup page ─────────────────────── */
.totp-setup-card { background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:24px;max-width:480px;margin:0 auto; }
.totp-setup-title { font-size:15px;font-weight:700;color:#fff;margin-bottom:6px; }
.totp-setup-desc  { font-size:13px;color:rgba(255,255,255,0.45);margin-bottom:24px; }
.totp-key-box { font-family:monospace;font-size:18px;font-weight:800;color:#667eea;background:rgba(102,126,234,0.1);border:1px solid rgba(102,126,234,0.2);border-radius:10px;padding:14px 16px;letter-spacing:0.15em;word-break:break-all; }
.totp-uri-box { font-size:11px;color:rgba(255,255,255,0.3);word-break:break-all;font-family:monospace;background:rgba(255,255,255,0.04);border-radius:8px;padding:10px; }
.totp-steps-list { font-size:13px;color:rgba(255,255,255,0.6);line-height:2;padding-left:18px;margin:0; }
.totp-done-btn { display:block;text-align:center;background:var(--grad-brand);border-radius:12px;padding:13px;font-size:14px;font-weight:700;color:#fff;text-decoration:none; }

/* ─ Modal internals ─────────────────────── */
.modal-label  { font-size:12px;color:rgba(255,255,255,0.5);display:block;margin-bottom:6px; }
.modal-label-sm { font-size:12px;color:rgba(255,255,255,0.5);display:block;margin-bottom:8px; }
.modal-pad-sm { padding:4px 0 8px; }
.modal-form-col { display:flex;flex-direction:column;gap:10px;padding:4px 0; }
.modal-form-col-lg { display:flex;flex-direction:column;gap:14px;padding:4px 0; }
.modal-actions-mt { margin-top:16px; }
.modal-actions-mt20 { margin-top:20px; }
.modal-total-sep { border-top:1px solid rgba(255,255,255,0.1);margin-top:4px; }
.btn-success { background:linear-gradient(135deg,#4ade80,#22c55e); }
.modal-flex-col { max-height:80vh;display:flex;flex-direction:column; }
