/* ============================================================
   EAUSTON - Main Stylesheet (Mobile-First PWA)
   ============================================================ */

/* --- CSS Variables (Theme) --- */
:root {
    --primary: #F47920;
    --primary-dark: #E06810;
    --primary-light: #FFA060;
    --secondary: #FFFFFF;
    --neutral: #F5F5F5;
    --neutral-dark: #E0E0E0;
    --accent: #2B3A8C;
    --accent-light: #4A5ABF;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --white: #FFFFFF;
    --black: #000000;
    --border: #E5E7EB;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --nav-height: 64px;
    --header-height: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--neutral);
    line-height: 1.5;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

a {
    color: var(--primary);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

input, select, textarea {
    user-select: text;
    -webkit-user-select: text;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- Layout --- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.app-content {
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: splashFadeIn 0.5s ease;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    animation: splashBounce 1s ease infinite;
}

.splash-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.splash-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-top: 8px;
}

.splash-loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    margin-top: 32px;
    animation: spin 0.8s linear infinite;
}

@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Auth Pages --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 40px;
    background: var(--white);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input-icon {
    position: relative;
}

.form-input-icon .form-input {
    padding-left: 44px;
}

.form-input-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.4;
}

.form-input-icon .input-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    padding: 4px;
}

textarea.form-input {
    height: auto;
    padding: 12px 16px;
    min-height: 100px;
    resize: vertical;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(244, 121, 32, 0.05);
}

.btn-white {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-sm {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-lg {
    height: 56px;
    padding: 0 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: var(--safe-bottom);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

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

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item .nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* --- Header --- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
}

.header-greeting {
    font-size: 13px;
    color: var(--text-secondary);
}

.header-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.header-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 1px;
}

.header-right {
    display: flex;
    gap: 8px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.header-icon-btn .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin: 0 16px 12px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* --- Investment Summary Card --- */
.summary-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 0 16px 12px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.summary-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.summary-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    margin: 4px 0;
}

.summary-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.summary-stat {
    flex: 1;
}

.summary-stat-label {
    font-size: 11px;
    opacity: 0.7;
}

.summary-stat-value {
    font-size: 15px;
    font-weight: 600;
}

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Overview Grid --- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 12px;
}

.overview-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}

.overview-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
}

.overview-icon.deposit { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.overview-icon.withdraw { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.overview-icon.invest { background: rgba(244, 121, 32, 0.1); color: var(--primary); }
.overview-icon.return { background: rgba(59, 130, 246, 0.1); color: var(--info); }

.overview-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.overview-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* --- Quick Actions --- */
.quick-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    min-width: 72px;
    transition: transform 0.2s;
}

.quick-action:active {
    transform: scale(0.95);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-action-icon.deposit { background: rgba(16, 185, 129, 0.1); }
.quick-action-icon.withdraw { background: rgba(239, 68, 68, 0.1); }
.quick-action-icon.invest { background: rgba(244, 121, 32, 0.1); }
.quick-action-icon.property { background: rgba(43, 58, 140, 0.1); }
.quick-action-icon.support { background: rgba(107, 114, 128, 0.1); }

.quick-action-label {
    font-size: 11px;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.section-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* --- Activity List --- */
.activity-list {
    padding: 0 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.activity-icon.deposit { background: rgba(16, 185, 129, 0.1); }
.activity-icon.investment { background: rgba(244, 121, 32, 0.1); }
.activity-icon.withdrawal { background: rgba(239, 68, 68, 0.1); }
.activity-icon.roi { background: rgba(59, 130, 246, 0.1); }
.activity-icon.system { background: rgba(107, 114, 128, 0.1); }

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.activity-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Property Card Grid --- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 12px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.property-card:active {
    transform: scale(0.98);
}

.property-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--neutral);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.property-save-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.property-save-btn.saved {
    color: var(--danger);
}

.property-info {
    padding: 10px 12px 12px;
}

.property-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.property-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-meta {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-light);
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* --- Scheme Card --- */
.scheme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 12px;
}

.scheme-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.scheme-card-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: var(--neutral);
    display: block;
}

.scheme-card-body {
    padding: 8px 10px;
}

.scheme-card-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scheme-card-location {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scheme-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.scheme-meta-row {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.scheme-card-footer {
    display: flex;
    gap: 6px;
    padding: 0 8px 8px;
}

.scheme-card-footer .btn {
    flex: 1;
    height: 28px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    gap: 3px;
}

.roi-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- Investment List --- */
.investment-list-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin: 0 16px 12px;
    box-shadow: var(--shadow);
}

.investment-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.investment-list-title {
    font-size: 15px;
    font-weight: 700;
}

.investment-list-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.investment-list-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.investment-list-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

.investment-list-detail strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

/* --- Status Badges --- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-primary { background: rgba(244, 121, 32, 0.1); color: var(--primary); }
.badge-secondary { background: rgba(107, 114, 128, 0.1); color: var(--text-secondary); }

/* --- Tabs --- */
.tab-nav {
    display: flex;
    background: var(--neutral);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin: 12px 16px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

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

/* --- Service Categories --- */
.service-category-list {
    padding: 0 16px;
}

.service-category {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.service-category-header .cat-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
}

.service-category-header .cat-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.service-category-header .cat-arrow {
    transition: transform 0.3s;
    font-size: 12px;
    color: var(--text-light);
}

.service-category.open .cat-arrow {
    transform: rotate(180deg);
}

.service-subcategories {
    display: none;
    padding: 0 16px 12px;
    border-top: 1px solid var(--border);
}

.service-category.open .service-subcategories {
    display: block;
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    cursor: pointer;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--neutral);
    padding: 2px 8px;
    border-radius: 10px;
}

/* --- Agent Card --- */
.agent-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: center;
}

.agent-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--neutral);
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 15px;
    font-weight: 700;
}

.agent-company {
    font-size: 12px;
    color: var(--text-secondary);
}

.agent-rating {
    font-size: 12px;
    color: var(--warning);
    margin-top: 2px;
}

.agent-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.agent-verified {
    color: var(--info);
    font-size: 14px;
}

/* --- Account Section --- */
.account-profile {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    margin: 0 16px 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    background: var(--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
}

.account-name {
    font-size: 18px;
    font-weight: 700;
}

.account-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.account-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.account-stat {
    text-align: center;
}

.account-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.account-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.menu-list {
    background: var(--white);
    margin: 0 16px 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: var(--neutral);
}

.menu-item .menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-item .menu-arrow {
    margin-left: auto;
    color: var(--text-light);
    font-size: 14px;
}

.menu-item.logout {
    color: var(--danger);
}

/* --- Notifications Page --- */
.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.notification-item:active {
    background: var(--neutral);
}

.notification-item.unread {
    background: rgba(244, 121, 32, 0.03);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
}

.notification-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 440px;
    width: calc(100% - 32px);
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success { background: var(--success); color: var(--white); }
.toast-error { background: var(--danger); color: var(--white); }
.toast-warning { background: var(--warning); color: var(--text); }
.toast-info { background: var(--info); color: var(--white); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* --- Modal / Native Dialog --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-sheet {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 8px 0 var(--safe-bottom);
    animation: slideUp 0.3s ease;
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--neutral-dark);
    border-radius: 2px;
    margin: 8px auto;
}

.modal-header {
    padding: 8px 16px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--neutral) 25%, var(--neutral-dark) 50%, var(--neutral) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 160px;
    border-radius: var(--radius);
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 40px 24px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.empty-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* --- Page Transitions --- */
.page-enter {
    animation: pageIn 0.25s ease;
}

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

/* --- Pull to Refresh indicator --- */
.pull-indicator {
    text-align: center;
    padding: 16px;
    color: var(--text-light);
    font-size: 13px;
    display: none;
}

.pull-indicator.refreshing {
    display: block;
}

/* --- Image Gallery --- */
.gallery {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--neutral);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 0 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-dark);
}

.gallery-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* --- Property Detail --- */
.property-detail-header {
    position: relative;
}

.property-detail-gallery {
    height: 280px;
    background: var(--neutral);
}

.property-detail-back {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.property-detail-info {
    padding: 16px;
}

.property-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.property-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.property-detail-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.property-detail-meta {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 12px;
}

.property-detail-description {
    padding: 16px;
}

.property-detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
}

.feature-tag {
    background: var(--neutral);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
}

.property-detail-actions {
    padding: 16px;
    display: flex;
    gap: 10px;
}

.property-detail-actions .btn {
    flex: 1;
}

/* --- Invest Detail --- */
.invest-detail-hero {
    height: 220px;
    background: var(--neutral);
}

.invest-detail-info {
    padding: 16px;
}

.invest-detail-title {
    font-size: 20px;
    font-weight: 700;
}

.invest-detail-roi {
    font-size: 32px;
    font-weight: 700;
    color: var(--success);
    margin: 8px 0;
}

.invest-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: var(--neutral);
    border-radius: var(--radius);
}

.invest-detail-meta-item strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.invest-detail-meta-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.invest-form {
    padding: 16px;
}

/* --- Payment --- */
.payment-options {
    padding: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(244, 121, 32, 0.03);
}

.payment-option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option.selected .payment-option-radio {
    border-color: var(--primary);
}

.payment-option.selected .payment-option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- Confirmation --- */
.confirmation-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.confirmation-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.confirmation-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.confirmation-details {
    text-align: left;
    background: var(--neutral);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-row .label {
    color: var(--text-secondary);
}

.confirmation-row .value {
    font-weight: 600;
}

/* --- Withdrawal Form --- */
.withdrawal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px;
    box-shadow: var(--shadow);
}

/* --- Settings --- */
.settings-group {
    background: var(--white);
    margin: 0 16px 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.settings-group-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px 6px;
}

/* --- Admin Dashboard --- */
.admin-sidebar {
    background: var(--text);
    color: var(--white);
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.admin-sidebar.open {
    transform: translateX(0);
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    display: none;
}

.admin-sidebar-overlay.open {
    display: block;
}

.admin-main {
    min-height: 100vh;
    background: var(--neutral);
    padding: 16px;
}

.admin-header {
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    border-radius: var(--radius);
}

.admin-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* --- Table (Admin) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th, .data-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--neutral);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* --- Search Bar --- */
.search-bar {
    position: relative;
    margin: 0 16px 12px;
}

.search-bar .form-input {
    padding-left: 44px;
    background: var(--white);
    border-radius: 24px;
}

.search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 18px;
}

/* --- Filter Chips --- */
.filter-chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.filter-chip {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- Offline Page --- */
.offline-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.offline-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.offline-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.offline-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Responsive --- */
@media (min-width: 481px) {
    .app-container {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

@media (min-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scheme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- SVG Icons --- */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { display: block; }
.icon-sm svg { width: 18px; height: 18px; }
.icon-md svg { width: 24px; height: 24px; }
.icon-lg svg { width: 32px; height: 32px; }
.icon-xl svg { width: 48px; height: 48px; }

/* Overview icon replacement */
.overview-icon { 
    width: 40px; height: 40px; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 10px; 
}
.overview-icon svg { width: 22px; height: 22px; }
.overview-icon.invest { background: rgba(244, 121, 32, 0.1); color: var(--primary); }
.overview-icon.deposit { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.overview-icon.withdraw { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.overview-icon.return { background: rgba(59, 130, 246, 0.1); color: var(--info); }

/* Quick action icon replacement */
.quick-action-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.quick-action-icon svg { width: 22px; height: 22px; }
.quick-action-icon.deposit { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.quick-action-icon.withdraw { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.quick-action-icon.invest { background: rgba(244, 121, 32, 0.1); color: var(--primary); }
.quick-action-icon.property { background: rgba(43, 58, 140, 0.1); color: var(--accent); }
.quick-action-icon.support { background: rgba(107, 114, 128, 0.1); color: var(--text-secondary); }

/* Activity icon replacement */
.activity-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.activity-icon svg { width: 20px; height: 20px; }
.activity-icon.deposit { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.activity-icon.investment { background: rgba(244, 121, 32, 0.1); color: var(--primary); }
.activity-icon.withdrawal { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.activity-icon.roi { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.activity-icon.login { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.activity-icon.register { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.activity-icon.property_save { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.activity-icon.system { background: rgba(107, 114, 128, 0.1); color: var(--text-secondary); }
.activity-icon.notification { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.activity-icon.profile_update { background: rgba(59, 130, 246, 0.1); color: var(--info); }

/* Menu icon */
.menu-icon {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.menu-icon svg { width: 20px; height: 20px; }

/* Empty state icon */
.empty-icon {
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.empty-icon svg { width: 48px; height: 48px; opacity: 0.4; }

/* Section header icon spacing */
.section-icon { margin-right: 8px; display: inline-flex; vertical-align: middle; }
.section-icon svg { width: 20px; height: 20px; }

/* Notification type icons */
.notif-icon { display: inline-flex; vertical-align: middle; margin-right: 6px; }
.notif-icon svg { width: 16px; height: 16px; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin: 16px;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 16px;
    font-size: 12px;
    color: var(--text-light);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Google Sign-In button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}

.google-btn:hover {
    background: var(--neutral);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Print styles */
@media print {
    .bottom-nav, .app-header, .btn { display: none !important; }
    .app-content { padding-bottom: 0; }
}
