/* ============================================
   CustBook - Premium UI Stylesheet (v5)
   Fintech Corporate Blue Theme
   ============================================ */

:root {
    --bg-body: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-modal: #ffffff;
    --border: rgba(15, 74, 142, 0.15);
    --border-subtle: rgba(15, 74, 142, 0.08);
    --border-focus: #1c64b6;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;

    --accent: #0f4a8e;
    --accent-light: #1c64b6;
    --accent-dark: #0a315d;
    --accent-glow: rgba(15, 74, 142, 0.15);
    --accent-gradient: linear-gradient(135deg, #1c64b6 0%, #0f4a8e 100%);
    --accent-gradient-2: linear-gradient(135deg, #2a81df 0%, #1c64b6 100%);
    --accent-subtle: rgba(15, 74, 142, 0.06);

    --success: #059669;
    --success-glow: rgba(5, 150, 105, 0.12);
    --warning: #d97706;
    --warning-glow: rgba(217, 119, 6, 0.1);
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.1);
    --pending: #d97706;
    --paid: #059669;
    --partial: #2563eb;

    --whatsapp: #16a34a;
    --whatsapp-glow: rgba(22, 163, 74, 0.12);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --shadow-sm: 0 1px 3px rgba(15, 74, 142, 0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 14px rgba(15, 74, 142, 0.06), 0 2px 6px rgba(0,0,0,0.02);
    --shadow-lg: 0 10px 25px rgba(15, 74, 142, 0.08), 0 4px 10px rgba(0,0,0,0.03);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --shadow-card: 0 4px 12px rgba(15, 74, 142, 0.05), 0 0 0 1px rgba(15, 74, 142, 0.03);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; -webkit-text-size-adjust:100%; -webkit-tap-highlight-color:transparent; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    letter-spacing: -0.01em;
}
input, textarea, select, button { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ===== SPLASH ===== */
.splash {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #0f4a8e 0%, #0a315d 100%);
    animation: splashFadeOut 0.6s ease 2.2s forwards;
}
.splash-content { text-align: center; animation: splashEntry 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.splash-icon { margin-bottom: 16px; animation: splashFloat 2s ease-in-out infinite; }
.splash-icon svg { stroke: white; }
.splash-title {
    font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
    color: #ffffff;
}
.splash-subtitle { color: rgba(255,255,255,0.6); font-size: 0.7rem; margin-top: 4px; letter-spacing: 4px; text-transform: uppercase; font-weight: 500; }
.splash-loader { margin: 32px auto 0; width: 120px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.splash-loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #fff, #bfdbfe); border-radius: 4px; animation: splashLoad 2s ease forwards; }
@keyframes splashEntry { from { opacity:0; transform:translateY(20px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes splashFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes splashLoad { 0% { width:0%; } 50% { width:60%; } 100% { width:100%; } }
@keyframes splashFadeOut { to { opacity:0; pointer-events:none; visibility:hidden; } }

/* ===== AUTH CONTAINER ===== */
.auth-container {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #0f4a8e 0%, #0a315d 40%, var(--bg-body) 100%);
}
.auth-step { display: none; width: 100%; max-width: 400px; animation: authSlideIn 0.4s var(--transition-slow) forwards; }
.auth-step.active { display: block; }
@keyframes authSlideIn { from { opacity:0; transform:translateY(16px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }

.auth-card {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 40px 28px 36px;
    position: relative;
    box-shadow: 0 10px 40px rgba(15, 74, 142, 0.2);
}

.auth-brand { text-align: center; margin-bottom: 36px; }
.auth-logo {
    width: 76px; height: 76px; border-radius: 22px;
    background: linear-gradient(135deg, #1c64b6, #0f4a8e);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 74, 142, 0.25);
}
.auth-logo svg { stroke: #ffffff; }
.auth-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.auth-desc { color: var(--text-tertiary); font-size: 0.85rem; margin-top: 8px; }

.auth-buttons { display: flex; flex-direction: column; gap: 12px; }

.btn-google {
    width: 100%; padding: 14px 20px;
    border-radius: var(--radius-md); border: none;
    background: #fff; color: #1f2937;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-google:hover { background: #f8fafc; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-1px); }
.btn-google:active { transform: scale(0.98); }

.btn-phone-auth {
    width: 100%; padding: 14px 20px;
    border-radius: var(--radius-md); border: 2px solid var(--accent);
    background: transparent; color: var(--accent);
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all var(--transition-fast);
}
.btn-phone-auth:hover { background: var(--accent-subtle); }
.btn-phone-auth:active { transform: scale(0.98); }

.auth-divider { display: flex; align-items: center; gap: 16px; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }

.auth-terms { text-align: center; font-size: 0.68rem; color: var(--text-muted); margin-top: 24px; line-height: 1.7; }
.auth-terms a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }

.auth-back {
    position: absolute; top: 16px; left: 16px;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition-fast);
}
.auth-back:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.auth-step-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; margin-top: 10px; letter-spacing: -0.02em; }
.auth-step-desc { font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 28px; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.auth-form .form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.auth-form .form-group input {
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: #f9fafb; color: var(--text-primary); font-size: 0.9rem;
    transition: all var(--transition-fast); outline: none;
}
.auth-form .form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
.auth-error { font-size: 0.8rem; color: #ef4444; text-align: center; margin-top: -8px; padding: 8px; background: #fef2f2; border-radius: var(--radius-sm); }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-tertiary); margin-top: 4px; }
.link-btn { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 0.85rem; padding: 0; text-decoration: underline; }
.link-btn:hover { color: var(--accent-light); }

/* Phone Input */
.phone-input-group {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-card); overflow: hidden;
    transition: all var(--transition-fast);
}
.phone-input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.phone-prefix {
    padding: 15px 14px 15px 18px; font-weight: 600; color: var(--text-tertiary);
    border-right: 1px solid var(--border); background: rgba(255,255,255,0.01);
    font-size: 0.88rem; user-select: none; flex-shrink: 0;
}
.phone-input {
    flex: 1; border: none; background: transparent; color: var(--text-primary);
    padding: 15px; font-size: 1rem; font-weight: 500; outline: none;
    letter-spacing: 2px;
}
.phone-input::placeholder { color: var(--text-muted); letter-spacing: 1px; }

/* PIN Input */
.pin-input-group { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; }
.pin-box {
    width: 56px; height: 64px; text-align: center; font-size: 1.5rem; font-weight: 700;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-primary); outline: none;
    transition: all var(--transition-fast); caret-color: var(--accent);
}
.pin-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--bg-elevated); }
.pin-box.filled { border-color: var(--accent); background: var(--accent-subtle); }

/* OTP Input */
.otp-input-group { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.otp-box {
    width: 46px; height: 58px; text-align: center; font-size: 1.4rem; font-weight: 700;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-primary); outline: none;
    transition: all var(--transition-fast); caret-color: var(--accent);
}
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--bg-elevated); }
.otp-box.filled { border-color: var(--accent); background: var(--accent-subtle); }

/* Button Loader */
.btn-loader {
    width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* OTP Resend */
.otp-resend {
    text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 16px;
}
.link-btn {
    background: none; border: none; color: var(--accent-light);
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:disabled { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }

/* ===== MAIN APP ===== */
.app { min-height: 100vh; min-height: 100dvh; padding-bottom: 80px; }

/* ===== VIEWS ===== */
.view { display: none; animation: viewSlideIn 0.35s var(--transition-slow) forwards; }
.view.active { display: block; }
@keyframes viewSlideIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ===== APP HEADER ===== */
.app-header {
    padding: 20px 20px 16px;
    padding-top: calc(20px + var(--safe-top));
    background: linear-gradient(135deg, #1c64b6 0%, #0f4a8e 50%, #0a315d 100%);
    position: sticky; top: 0; z-index: 50;
}
.header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.header-left { display: flex; flex-direction: column; }
.app-title {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
    color: #ffffff;
}
.app-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.65); margin-top: 2px; letter-spacing: 0.3px; font-weight: 500; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Icon Button */
.icon-btn {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    border: none; background: rgba(255,255,255,0.15);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,0.25); color: white; }
.icon-btn:active { transform: scale(0.92); }
.danger-btn:hover { background: var(--danger-glow); color: var(--danger); }
.back-btn { border: none; background: transparent; }

/* Owner Avatar Display */
.owner-avatar-btn {
    width: 42px; height: 42px; border-radius: var(--radius-full);
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    color: white; font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: default; transition: all var(--transition-fast);
}

/* Search */
.search-container { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; color: rgba(255,255,255,0.5); pointer-events: none; transition: color var(--transition-fast); }
.search-input {
    width: 100%; height: 48px; padding: 0 44px 0 46px;
    border-radius: var(--radius-md); border: none;
    background: rgba(255,255,255,0.15); color: #ffffff;
    font-size: 0.88rem; outline: none; transition: all var(--transition-normal);
    font-weight: 400;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); font-weight: 400; }
.search-input:focus { background: rgba(255,255,255,0.25); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
.search-input:focus ~ .search-icon { color: white; }
.search-clear {
    position: absolute; right: 10px; width: 28px; height: 28px;
    border-radius: var(--radius-xs); border: none;
    background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.65rem; transition: all var(--transition-fast);
}
.search-clear:hover { background: var(--danger); color: white; }

/* ===== STATS ===== */
.stats-panel {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    padding: 0 20px 10px; animation: statsReveal 0.35s ease forwards;
}
@keyframes statsReveal { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    display: flex; flex-direction: column; gap: 4px;
    transition: all var(--transition-fast);
}
.stat-card:hover { border-color: rgba(255,255,255,0.06); background: var(--bg-card-hover); }
.stat-value { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-card:nth-child(1) .stat-value { color: var(--accent-light); }
.stat-card:nth-child(2) .stat-value { color: #67e8f9; }
.stat-card:nth-child(3) .stat-value { color: var(--success); }
.stat-card:nth-child(4) .stat-value { color: var(--warning); }
.stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

/* ===== CUSTOMER LIST ===== */
.customer-list-container { padding: 0 20px; }
.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; margin-top: 10px; }
.list-header h2 { font-size: 0.82rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }
.list-count { font-size: 0.68rem; font-weight: 700; color: var(--accent); background: var(--accent-subtle); padding: 4px 12px; border-radius: 20px; letter-spacing: 0.3px; }
.customer-list { display: flex; flex-direction: column; gap: 8px; }

.customer-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: #ffffff;
    border: 1px solid rgba(15, 74, 142, 0.06); border-radius: var(--radius-md);
    cursor: pointer; transition: all var(--transition-normal);
    animation: itemReveal 0.4s ease forwards; opacity: 0;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.customer-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(15, 74, 142, 0.03) 100%);
    opacity: 0; transition: opacity var(--transition-fast);
}
.customer-item:hover::before { opacity: 1; }
.customer-item:hover { border-color: rgba(15, 74, 142, 0.15); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.customer-item:active { transform: scale(0.985); }
@keyframes itemReveal { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.customer-avatar {
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: white; flex-shrink: 0; text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(15, 74, 142,0.2);
}
.customer-avatar.alt { background: var(--accent-gradient-2); box-shadow: 0 4px 12px rgba(28, 100, 182,0.2); }
.customer-info { flex: 1; min-width: 0; }
.customer-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.customer-phone { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.customer-meta { text-align: right; flex-shrink: 0; }
.customer-txn-count { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
.customer-last-visit { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }
.customer-pending-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 0.62rem; font-weight: 700;
    background: var(--warning-glow); color: var(--warning); margin-top: 4px;
    letter-spacing: 0.2px;
}

/* Quick Remind Button (Customer List) */
.customer-remind-btn {
    width: 34px; height: 34px; border-radius: var(--radius-full);
    border: 1px solid rgba(37, 211, 102, 0.2);
    background: var(--whatsapp-glow);
    color: var(--whatsapp);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition-fast);
    flex-shrink: 0; margin-left: 6px;
}
.customer-remind-btn:hover { background: var(--whatsapp); color: white; border-color: var(--whatsapp); box-shadow: 0 4px 16px rgba(37,211,102,0.3); transform: scale(1.08); }
.customer-remind-btn:active { transform: scale(0.9); }
.customer-remind-btn svg { width: 14px; height: 14px; }

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: -0.01em; }
.empty-state p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.empty-state-small { text-align: center; padding: 32px 20px; }
.empty-state-small p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== FAB ===== */
.fab {
    position: fixed; bottom: 88px; right: 24px;
    bottom: calc(88px + var(--safe-bottom));
    width: 56px; height: 56px; border-radius: 18px;
    border: none; background: var(--accent-gradient); color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 24px rgba(15, 74, 142, 0.3);
    transition: all var(--transition-normal); z-index: 40;
    animation: fabEntry 0.5s var(--transition-spring) 0.3s both;
}
.fab:hover { transform: scale(1.06) translateY(-2px); box-shadow: 0 12px 32px rgba(15, 74, 142, 0.4); }
.fab:active { transform: scale(0.94); }
@keyframes fabEntry { from { opacity:0; transform:scale(0) rotate(-90deg); } to { opacity:1; transform:scale(1) rotate(0deg); } }

/* ===== VIEW HEADER (Profile Detail) ===== */
.view-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; padding-top: calc(16px + var(--safe-top));
    background: linear-gradient(135deg, #1c64b6 0%, #0f4a8e 100%);
    position: sticky; top: 0; z-index: 50;
    color: white;
}
.view-header h2 { flex: 1; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: white; }

/* ===== CUSTOMER PROFILE ===== */
.profile-card {
    text-align: center; padding: 32px 20px 24px;
    background: linear-gradient(180deg, rgba(15, 74, 142, 0.06) 0%, transparent 100%);
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 22px;
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; color: white;
    margin: 0 auto 16px; box-shadow: 0 8px 30px rgba(15, 74, 142,0.2);
}
.profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.profile-phone {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--accent-light);
    padding: 7px 16px; background: var(--accent-subtle);
    border-radius: 20px; margin-bottom: 8px; transition: all var(--transition-fast);
    border: 1px solid rgba(15, 74, 142,0.08);
}
.profile-phone:hover { background: rgba(15, 74, 142,0.1); }
.profile-address, .profile-notes { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.profile-notes { font-style: italic; }
.profile-meta { margin-top: 10px; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500; }

/* Profile Summary */
.profile-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px; margin-bottom: 16px; }
.summary-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 10px; text-align: center;
    transition: all var(--transition-fast);
}
.summary-item:hover { border-color: rgba(255,255,255,0.06); }
.summary-value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--success); letter-spacing: -0.02em; }
.summary-value.pending { color: var(--warning); }
.summary-label { display: block; font-size: 0.58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 5px; font-weight: 600; }

/* ===== PAYMENT REMINDER ===== */
.reminder-section { padding: 0 20px; margin-bottom: 18px; }
.btn-reminder {
    width: 100%; padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 211, 102, 0.2);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(37, 211, 102, 0.03) 100%);
    color: var(--whatsapp); font-size: 0.88rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all var(--transition-normal);
    position: relative; overflow: hidden;
    animation: reminderPulse 3s ease-in-out infinite;
}
.btn-reminder::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.06), transparent);
    transform: translateX(-100%); animation: reminderShimmer 3.5s ease infinite;
}
.btn-reminder:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0.06) 100%);
    border-color: rgba(37, 211, 102, 0.35);
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.15); transform: translateY(-1px);
}
.btn-reminder:active { transform: scale(0.98); }
.reminder-amount {
    font-size: 0.7rem; font-weight: 700;
    background: rgba(37, 211, 102, 0.12); padding: 3px 10px;
    border-radius: 12px; color: var(--whatsapp); letter-spacing: 0.3px;
}
@keyframes reminderPulse { 0%,100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 3px rgba(37,211,102,0.06); } }
@keyframes reminderShimmer { 0% { transform: translateX(-100%); } 50%,100% { transform: translateX(100%); } }

/* ===== TRANSACTIONS ===== */
.transactions-section { padding: 0 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h3 { font-size: 0.82rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-small {
    padding: 7px 16px; border-radius: 20px;
    border: 1px solid rgba(15, 74, 142,0.2); background: var(--accent-subtle);
    color: var(--accent-light); font-size: 0.75rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast);
}
.btn-small:hover { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.btn-small:active { transform: scale(0.95); }
.transaction-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 30px; }
.transaction-item {
    padding: 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    animation: itemReveal 0.35s ease forwards; opacity: 0; position: relative;
}
.transaction-item:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.06); }
.txn-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.txn-item-name { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.01em; }
.txn-amount { font-size: 0.92rem; font-weight: 700; color: var(--success); white-space: nowrap; font-variant-numeric: tabular-nums; }
.txn-amount.pending { color: var(--warning); }
.txn-amount.partial { color: var(--partial); }
.txn-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.txn-date { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.txn-status {
    font-size: 0.6rem; font-weight: 700; padding: 3px 10px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: 0.6px;
}
.txn-status.paid { background: var(--success-glow); color: var(--paid); }
.txn-status.pending { background: var(--warning-glow); color: var(--pending); }
.txn-status.partial { background: rgba(96,165,250,0.1); color: var(--partial); }
.txn-notes { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; font-style: italic; line-height: 1.4; }
.txn-partial-info { font-size: 0.7rem; color: var(--text-tertiary); margin-top: 5px; }
.txn-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.txn-action-btn {
    padding: 6px 14px; border-radius: 16px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); font-size: 0.65rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 4px;
    transition: all var(--transition-fast);
}
.txn-action-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.txn-action-btn.whatsapp:hover { border-color: rgba(37,211,102,0.3); color: var(--whatsapp); background: var(--whatsapp-glow); }
.txn-action-btn.receipt:hover { border-color: rgba(15, 74, 142,0.3); color: var(--accent); background: var(--accent-subtle); }
.txn-action-btn.delete:hover { border-color: rgba(248,113,113,0.3); color: var(--danger); background: var(--danger-glow); }

/* ===== OWNER PROFILE VIEW ===== */
.owner-profile-content { padding: 20px; }

.owner-card {
    text-align: center; padding: 32px 20px 28px;
    background: #ffffff; border: 1px solid rgba(15, 74, 142, 0.06);
    border-radius: var(--radius-lg); margin-bottom: 16px;
    position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.owner-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(135deg, rgba(15, 74, 142, 0.08) 0%, rgba(28, 100, 182, 0.04) 100%);
}
.owner-avatar {
    width: 76px; height: 76px; border-radius: 22px;
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; color: white;
    margin: 0 auto 16px; box-shadow: 0 8px 24px rgba(15, 74, 142, 0.25);
    position: relative;
}
.owner-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; position: relative; }
.owner-detail { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; position: relative; }
.owner-badge {
    display: inline-block; padding: 4px 14px; border-radius: 14px;
    font-size: 0.65rem; font-weight: 700;
    background: rgba(15, 74, 142, 0.08); color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.6px;
    border: 1px solid rgba(15, 74, 142, 0.12); position: relative;
}

.owner-shop-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px;
}
.owner-section-title { font-size: 0.75rem; font-weight: 700; color: var(--text-tertiary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; }
.owner-detail-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.owner-detail-row:last-child { border-bottom: none; }
.owner-label { font-size: 0.82rem; color: var(--text-muted); flex-shrink: 0; font-weight: 500; }
.owner-value { font-size: 0.82rem; color: var(--text-primary); font-weight: 500; text-align: right; max-width: 60%; word-break: break-word; }

.owner-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-outline {
    width: 100%; padding: 14px 20px;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all var(--transition-fast);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.1); background: var(--bg-card-hover); color: var(--text-primary); }
.btn-outline:active { transform: scale(0.98); }
.btn-outline-danger { color: var(--danger); border-color: rgba(248,113,113,0.15); }
.btn-outline-danger:hover { background: var(--danger-glow); border-color: rgba(248,113,113,0.3); color: var(--danger); }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: overlayFadeIn 0.25s ease forwards;
}
@keyframes overlayFadeIn { from { opacity:0; } to { opacity:1; } }

.modal {
    background: #ffffff; border: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%; max-width: 500px; max-height: 90vh;
    overflow-y: auto; padding: 28px 24px;
    padding-bottom: calc(28px + var(--safe-bottom));
    animation: modalSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
    box-shadow: 0 -8px 40px rgba(15, 74, 142, 0.15);
}
.modal-small { padding: 28px 24px; }
@keyframes modalSlideUp { from { opacity:0; transform:translateY(100%); } to { opacity:1; transform:translateY(0); } }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.modal-close {
    width: 36px; height: 36px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-tertiary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.72rem; transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--danger); color: white; border-color: var(--danger); }
.modal-message { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; }

/* Forms */
.modal-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: var(--text-tertiary); letter-spacing: 0.3px; text-transform: uppercase; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 13px 16px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-primary);
    font-size: 0.88rem; outline: none;
    transition: all var(--transition-fast); resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group select {
    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='none' stroke='%236b7a94' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.form-group select option { background: var(--bg-modal); color: var(--text-primary); }

/* Buttons */
.btn-primary {
    width: 100%; padding: 15px; border-radius: var(--radius-md);
    border: none; background: var(--accent-gradient); color: white;
    font-size: 0.9rem; font-weight: 700; cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(15, 74, 142,0.25); margin-top: 6px;
    letter-spacing: -0.01em;
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(15, 74, 142,0.35); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
    flex: 1; padding: 13px; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.08); }
.btn-danger {
    flex: 1; padding: 13px; border-radius: var(--radius-md);
    border: none; background: linear-gradient(135deg, #ef4444, #dc2626); color: white;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}
.btn-danger:hover { box-shadow: 0 6px 20px rgba(239,68,68,0.3); }
.btn-danger:active { transform: scale(0.98); }

/* ===== RECEIPT ===== */
.modal-receipt { max-height: 92vh; }
.receipt {
    background: #ffffff; color: #1a1a1a;
    border-radius: var(--radius-sm); padding: 28px 22px;
    font-family: 'Courier New', monospace; font-size: 0.82rem; margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.receipt-header { text-align: center; margin-bottom: 4px; }
.receipt-shop-name { font-size: 1.2rem; font-weight: 800; color: #111; margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.receipt-shop-info { font-size: 0.72rem; color: #666; margin: 2px 0; }
.receipt-divider { text-align: center; color: #d1d5db; font-size: 0.68rem; margin: 12px 0; letter-spacing: 1px; user-select: none; }
.receipt-number { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; color: #374151; }
.receipt-date { font-size: 0.72rem; color: #6b7280; margin-top: 4px; }
.receipt-customer { margin: 4px 0; }
.receipt-label { font-size: 0.6rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; font-weight: 700; }
.receipt-customer-name { font-size: 0.88rem; font-weight: 700; color: #111; font-family: 'Inter', sans-serif; }
.receipt-customer-phone { font-size: 0.78rem; color: #6b7280; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th { font-size: 0.65rem; text-transform: uppercase; color: #9ca3af; letter-spacing: 0.5px; padding-bottom: 6px; font-weight: 700; }
.receipt-table td { padding: 5px 0; font-size: 0.82rem; color: #374151; }
.receipt-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; color: #111; font-family: 'Inter', sans-serif; padding: 4px 0; }
.receipt-status-line { font-size: 0.78rem; font-weight: 700; text-align: center; padding: 8px; border-radius: 8px; margin-top: 8px; }
.receipt-status-line.paid { background: #dcfce7; color: #166534; }
.receipt-status-line.pending { background: #fef3c7; color: #92400e; }
.receipt-status-line.partial { background: #dbeafe; color: #1e40af; }
.receipt-footer { text-align: center; margin-top: 4px; }
.receipt-footer p { font-size: 0.78rem; color: #6b7280; font-family: 'Inter', sans-serif; }
.receipt-powered { font-size: 0.6rem !important; color: #c8c8c8 !important; margin-top: 6px; letter-spacing: 0.5px; }
.receipt-actions { display: flex; gap: 10px; }

/* WhatsApp Button */
.btn-whatsapp {
    flex: 2; padding: 14px; border-radius: var(--radius-md);
    border: none; background: var(--whatsapp); color: white;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover { background: #22c55e; box-shadow: 0 6px 24px rgba(37,211,102,0.35); transform: translateY(-1px); }
.btn-whatsapp:active { transform: scale(0.98); }

/* ===== PRINT ===== */
@media print {
    body * { visibility: hidden; }
    .receipt, .receipt * { visibility: visible; }
    .receipt { position: absolute; left: 0; top: 0; width: 80mm; padding: 10px; border: none; box-shadow: none; }
    .modal-overlay, .modal-header, .receipt-actions { display: none !important; }
}

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 140px; bottom: calc(140px + var(--safe-bottom));
    left: 50%; transform: translateX(-50%); padding: 12px 24px;
    background: #1a1a2e; border: none;
    border-radius: var(--radius-md); color: white;
    font-size: 0.82rem; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 200; white-space: nowrap;
    animation: toastIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(16px) scale(0.95); } to { opacity:1; transform:translateX(-50%) translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateX(-50%) translateY(0); } to { opacity:0; transform:translateX(-50%) translateY(16px); } }

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 64px;
    padding-bottom: var(--safe-bottom);
    background: #ffffff;
    border-top: 1px solid rgba(15, 74, 142, 0.08);
    display: flex; align-items: center; justify-content: space-around;
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(15, 74, 142, 0.06);
}
.nav-tab {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px; padding: 8px 4px;
    border: none; background: transparent;
    color: var(--text-muted); font-size: 0.58rem; font-weight: 600;
    letter-spacing: 0.4px; cursor: pointer;
    transition: all var(--transition-normal); position: relative;
}
.nav-tab svg { transition: all var(--transition-normal); width: 22px; height: 22px; }
.nav-tab:hover { color: var(--text-secondary); }
.nav-tab.active { color: var(--accent); }
.nav-tab.active svg { filter: none; transform: translateY(-1px); }
.nav-tab.active::before {
    content: ''; position: absolute; top: -1px;
    left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px;
    background: var(--accent-gradient); border-radius: 0 0 4px 4px;
}

.nav-badge {
    position: absolute; top: 2px; right: 50%; transform: translateX(16px);
    min-width: 16px; height: 16px; padding: 0 5px;
    border-radius: 10px; background: #ef4444; color: white;
    font-size: 0.55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; animation: badgePop 0.4s var(--transition-spring) forwards;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
@keyframes badgePop { from { transform: translateX(16px) scale(0); } to { transform: translateX(16px) scale(1); } }

/* ===== PAYMENTS VIEW ===== */
.payments-header {
    padding: 20px 20px 16px;
    padding-top: calc(20px + var(--safe-top));
    background: linear-gradient(135deg, #1c64b6 0%, #0f4a8e 100%);
}
.payments-title {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
    color: #ffffff;
}
.payments-subtitle { font-size: 0.7rem; color: rgba(255,255,255,0.65); margin-top: 3px; letter-spacing: 0.3px; font-weight: 500; }

.payments-summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 18px; }
.payments-stat {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; border-radius: var(--radius-md);
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.payments-stat::before {
    content: ''; position: absolute; inset: 0;
    opacity: 0.5;
}
.payments-stat.total-pending {
    background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, transparent 100%);
    border-color: rgba(251,191,36,0.12);
}
.payments-stat.total-customers {
    background: linear-gradient(135deg, rgba(15, 74, 142,0.06) 0%, transparent 100%);
    border-color: rgba(15, 74, 142,0.12);
}
.payments-stat-icon { font-size: 1.5rem; flex-shrink: 0; position: relative; }
.payments-stat-value { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; position: relative; }
.total-pending .payments-stat-value { color: var(--warning); }
.total-customers .payments-stat-value { color: var(--accent-light); }
.payments-stat-label { display: block; font-size: 0.58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; margin-top: 3px; position: relative; }

.pending-list-container { padding: 0 20px; }
.pending-list-header { margin-bottom: 14px; }
.pending-list-header h2 { font-size: 0.82rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }
.pending-customer-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; }

.pending-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: #ffffff;
    border: 1px solid rgba(15, 74, 142, 0.06); border-radius: var(--radius-md);
    cursor: pointer; transition: all var(--transition-normal);
    animation: itemReveal 0.35s ease forwards; opacity: 0;
    box-shadow: var(--shadow-sm);
}
.pending-item:hover { background: var(--bg-card-hover); border-color: rgba(245, 166, 35, 0.15); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.pending-avatar {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: white;
    flex-shrink: 0; text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(251,191,36,0.2);
}
.pending-info { flex: 1; min-width: 0; }
.pending-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.pending-detail { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; font-weight: 500; }
.pending-right { text-align: right; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.pending-amount { font-size: 1rem; font-weight: 700; color: var(--warning); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pending-remind-btn {
    width: 38px; height: 38px; border-radius: 13px;
    border: 1px solid rgba(37,211,102,0.2);
    background: var(--whatsapp-glow); color: var(--whatsapp);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0;
}
.pending-remind-btn:hover { background: var(--whatsapp); color: white; border-color: var(--whatsapp); box-shadow: 0 4px 16px rgba(37,211,102,0.3); transform: scale(1.06); }
.pending-remind-btn:active { transform: scale(0.9); }
.pending-remind-btn svg { width: 16px; height: 16px; }

/* ===== OWNER HEADER (Tab Style) ===== */
.owner-header {
    padding: 20px 20px 16px;
    padding-top: calc(20px + var(--safe-top));
    background: linear-gradient(180deg, rgba(13,17,32,0.6) 0%, transparent 100%);
}
.owner-header-title {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
    background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.owner-header-subtitle { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.3px; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .modal { border-radius: var(--radius-xl); margin: auto; max-height: 85vh; }
    .modal-overlay { align-items: center; padding: 20px; }
    @keyframes modalSlideUp { from { opacity:0; transform:translateY(24px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
    .app-header, .customer-list-container, .stats-panel,
    .profile-card, .profile-summary, .transactions-section,
    .view-header, .owner-profile-content, .reminder-section,
    .payments-header, .payments-summary-cards, .pending-list-container,
    .owner-header { max-width: 600px; margin-left: auto; margin-right: auto; }
    .auth-container { padding: 40px 24px; }
    .bottom-nav { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: var(--accent-dark); color: white; }
