/* NairaPacket Mobile App Styles */

/* iOS spacing adjustments */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    /* Add minimal top padding for iOS status bar */
    .app-container {
        padding-top: 20px;
    }
    
    /* Remove excessive bottom padding from screens with bottom navigation */
    .dashboard-screen,
    .marketplace-screen, 
    .portfolio-screen,
    .profile-screen,
    .secondary-market-screen,
    .property-details-screen,
    .fund-wallet-screen,
    .bank-transfer-screen,
    .verification-screen,
    .kyc-screen,
    .transfer-packets-screen,
    .liquidation-screen,
    .simple-confirmation-screen,
    .simple-form-screen,
    .withdraw-screen,
    .transactions-screen,
    .receipt-screen,
    .loans-screen,
    .bank-loan-screen,
    .loan-details-screen,
    .portfolio-details-screen {
        padding-bottom: 80px !important; /* Reduced from 100px to 80px */
    }
    
    /* Position bottom nav with minimal spacing */
    .bottom-nav {
        bottom: 15px !important;
        padding: 8px 0 !important; /* Reduced padding */
    }
}

/* Prevent zoom and scaling */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Disable zoom on all interactive elements */
input, textarea, select, button {
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only for input fields when focused */
input:focus, textarea:focus {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

:root {
    --primary-color: #FF8C00;
    --primary-dark: #E67C00;
    --primary-light: #FFA333;
    --background: #F8F9FA;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow: none;
    --success: #38A169;
    --danger: #E53E3E;
    --warning: #DD6B20;
    --info: #3182CE;
    --text: #2D3748;
    
    /* Uniform spacing variables with iOS safe area support */
    --header-top-padding: 20px;
    --content-side-padding: 16px;
    --content-top-padding: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    overflow-x: hidden;
    position: relative;
    /* Prevent zoom */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* iOS safe area support handled per component in @supports rule */
}

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

.screen {
    display: none;
    min-height: 100vh;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
}

.screen.active {
    display: block;
}

/* Splash Screen */
#splash {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-content {
    text-align: center;
    color: var(--white);
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    margin: 0;
    color: var(--primary-color);
}

/* Header Styles */
.header-simple {
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
    background: var(--white);
    display: flex;
    align-items: center;
    position: relative;
}

.header-simple h6 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-weight: 600;
}

.btn-back {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    padding: 8px;
}

/* Content Styles */
.content {
    padding: var(--content-top-padding) var(--content-side-padding);
    flex: 1;
}

.content-area {
    padding: 0 var(--content-side-padding);
}

.screen-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.screen-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Phone Input */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    background: var(--white);
    margin-bottom: 30px;
}

.country-code {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-right: 1px solid var(--border);
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.flag {
    width: 20px;
    height: auto;
}

.phone-input {
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    background: transparent;
}

.phone-input:focus {
    outline: none;
    box-shadow: none;
}

/* Verification Input */
.verification-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.verification-input {
    width: 40px;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--white);
}

.verification-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.bullet {
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 8px;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25) !important;
}

.btn-outline-primary {
    background: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25) !important;
}

.btn-outline-primary.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Override Bootstrap's default blue color for all primary buttons */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Progress bar color */
.progress-bar {
    background-color: var(--primary-color) !important;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25) !important;
}

.btn-continue {
    position: relative;
    width: 80%;
    max-width: 280px;
    margin: 30px auto 0 auto;
    display: block;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
}

.resend-btn {
    display: block;
    margin: 20px auto;
    text-align: center;
}

.terms-text {
    text-align: center;
    margin: 20px 0 80px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Success Screen */
.success-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 16px 140px 16px; /* Extra bottom padding */
    background: var(--white);
    color: var(--white);
}

.logo-small .brand-name {
    font-size: 1.5rem;
    margin-bottom: 60px;
    opacity: 0.9;
}

.success-message h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.success-message p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 60px;
    line-height: 1.5;
}

.success-content .btn-continue {
    background: var(--white);
    color: var(--text-dark);
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: none;
    width: 80%;
}

/* Dashboard */
.dashboard-header {
    padding: var(--header-top-padding) var(--content-side-padding) 30px;
    background: var(--white);
}

.balance-section {
    text-align: left;
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-amount i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    padding: 80px 20px;
    text-align: center;
    flex: 1;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.btn-action {
    background: var(--text-dark);
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 390px !important;
    background: var(--white) !important;
    border-top: 1px solid var(--border) !important;
    display: flex !important;
    justify-content: space-around !important;
    padding: 12px 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    -webkit-transform: translateX(-50%) !important;
    will-change: transform !important;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.1rem;
}

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

/* Responsive adjustments */
@media (max-width: 375px) {
    .screen-title {
        font-size: 1.5rem;
    }
    
    .verification-input {
        width: 35px;
        height: 45px;
    }
    
    .verification-input-group {
        gap: 8px;
    }
}

/* Smooth transitions */
.screen {
    transition: all 0.3s ease;
}

/* KYC Styles */
.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Fix select option styling */
.form-select option {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    padding: 8px 12px;
    font-size: 1rem;
}

.form-select option:hover,
.form-select option:focus {
    background: var(--primary-light) !important;
    color: var(--text-dark) !important;
}

.form-select option:checked {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Ensure select element itself has proper styling */
select.form-select {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

/* High specificity fix for bank name select */
#bankName.form-select {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

#bankName.form-select option {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

/* Read-only account name field styling */
#accountName[readonly] {
    background-color: var(--background) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

#accountName[readonly]:focus {
    background-color: var(--background) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

/* Submit button disabled state */
.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Validation message styling */
.validation-message {
    display: block;
    margin-top: 4px;
}

/* Textarea styling for withdraw note */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Portfolio balance toggle button */
#togglePortfolioBalance {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    transition: color 0.3s ease;
}

#togglePortfolioBalance:hover {
    color: rgba(255, 255, 255, 1) !important;
}

#togglePortfolioBalance i {
    font-size: 1.1rem;
}

/* Hidden balance styling */
#totalValue.balance-hidden {
    font-family: monospace;
    letter-spacing: 2px;
}

/* Fund wallet method card active state */
.method-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.method-card:hover {
    border-color: var(--primary-light);
    background: rgba(255, 140, 0, 0.02);
}

.method-card.active {
    border-color: var(--primary-color) !important;
    background: rgba(255, 140, 0, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.method-card.active .method-icon i {
    color: var(--primary-color);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Additional fallback for browsers that don't respect option styling */
.form-select optgroup {
    background: var(--white);
    color: var(--text-dark);
}

/* Dark mode compatibility - ensure text is always visible */
@media (prefers-color-scheme: dark) {
    .form-select option {
        background: #2D3748 !important;
        color: #FFFFFF !important;
    }
    
    .form-select option:hover,
    .form-select option:focus {
        background: var(--primary-color) !important;
        color: #FFFFFF !important;
    }
}

.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.05);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.file-upload-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Splash Screen Styles */
.splash-screen {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Animation */
.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 140, 0, 0.05));
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 2s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 4s;
}

.circle-4 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 15%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(1.1);
        opacity: 1;
    }
}

/* Main Content */
.splash-content {
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 1;
}

/* App Logo */
.app-logo {
    margin-bottom: 2rem;
    animation: logoEntrance 1s ease-out;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67700 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4);
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-icon {
    color: white;
    font-size: 3rem;
    z-index: 2;
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 30px;
    animation: shine 3s ease-in-out infinite;
}

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 20px 45px rgba(255, 140, 0, 0.6);
    }
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Brand Section */
.brand-section {
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease-out 0.3s both;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67700 50%, var(--text-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes slideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Loading Section */
.loading-section {
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 0.6s both;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 140, 0, 0.2);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #e67700);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Loading Text */
.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    gap: 3px;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Feature Preview */
.feature-preview {
    opacity: 0;
    animation: slideUp 1s ease-out 1.2s both;
}

.feature-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
    animation: featureFloat 3s ease-in-out infinite;
}

.feature-icon:nth-child(1) { animation-delay: 0s; }
.feature-icon:nth-child(2) { animation-delay: 1s; }
.feature-icon:nth-child(3) { animation-delay: 2s; }

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-icon span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes featureFloat {
    0%, 100% { 
        transform: translateY(0px); 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    50% { 
        transform: translateY(-5px); 
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
}

/* Splash Footer */
.splash-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: fadeIn 1s ease-out 1.5s both;
}

.version-info {
    text-align: center;
}

.version-info small {
    color: var(--text-muted);
    font-weight: 500;
}

/* Splash Screen Exit Animation */
.splash-screen.fade-out {
    animation: splashExit 0.8s ease-in-out forwards;
}

@keyframes splashExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .brand-name {
        font-size: 2rem;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .feature-icons {
        gap: 1rem;
    }
    
    .feature-icon {
        padding: 0.75rem;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
}

/* Welcome Screen Styles */
.welcome-screen {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-content {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 40px;
}

.welcome-illustration {
    margin: 40px 0;
    opacity: 0.8;
}

.welcome-actions {
    margin-top: 40px;
}

.welcome-actions .btn {
    height: 50px;
    font-weight: 600;
    border-radius: 25px;
}

.phone-signup-screen,
.verification-screen,
.kyc-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

.success-screen {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard specific styles */
.dashboard-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px; /* Space for bottom nav */
}

.quick-actions .btn {
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.05);
}

.quick-actions .btn i {
    font-size: 1.2rem;
}

.transaction-item {
    transition: background-color 0.3s ease;
}

.transaction-item:hover {
    background-color: var(--background);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fund Wallet Styles */
.fund-wallet-screen,
.bank-transfer-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

.method-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.02);
}

.method-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.05);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.amount-btn {
    border-radius: 8px;
    padding: 12px 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.amount-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.amount-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.btn-continue {
    margin-top: 30px;
}

/* Bank Transfer Styles */
.transfer-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.account-details {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.value-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.amount-highlight {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.copy-btn {
    color: var(--primary-color);
    padding: 4px 8px;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: rgba(255, 140, 0, 0.1);
}

.btn-block {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
}

/* Marketplace Styles */
.marketplace-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px;
}

.marketplace-header {
    background: var(--white);
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
    border-bottom: 1px solid var(--border);
}

.marketplace-content {
    padding: var(--content-top-padding) var(--content-side-padding);
}

.filter-tabs .btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.filter-tabs .btn {
    flex: 1;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.filter-tabs .btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.filter-tabs .btn:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.stats-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-item {
    padding: 0 10px;
}

.stat-number {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

/* Property Card Styles */
.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.property-details {
    padding: 16px;
}

.property-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 1rem;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.property-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.stat small {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.stat .fw-bold {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.type-badge {
    background: var(--background);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
}

.type-badge.residential {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

.type-badge.commercial {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.type-badge.land {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Search Bar */
.search-bar .form-control {
    border-radius: 8px 0 0 8px;
}

.search-bar .btn {
    border-radius: 0 8px 8px 0;
}

/* Property Details Styles */
.property-details-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px; /* Space for bottom nav */
}

.property-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
}

.property-header .btn-back {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.property-header .header-actions .btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-image-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.returns-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

/* Property Image Carousel Styles */
.property-image-hero .carousel {
    height: 100%;
}

.property-image-hero .carousel-inner,
.property-image-hero .carousel-item {
    height: 100%;
}

.property-image-hero .carousel-control-prev,
.property-image-hero .carousel-control-next {
    width: 10%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.property-image-hero .carousel-control-prev:hover,
.property-image-hero .carousel-control-next:hover {
    opacity: 1;
}

.property-image-hero .carousel-control-prev-icon,
.property-image-hero .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

.image-counter {
    z-index: 10;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.property-info {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 5;
    padding: 24px 20px 40px;
}

.property-main-info {
    margin-bottom: 24px;
}

.property-main-info .property-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.property-main-info .property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-main-info .property-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--background);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Titles */
.section-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Investment Section */
.investment-section {
    margin-bottom: 32px;
}

.investment-form .input-group .btn {
    width: 40px;
    border-color: var(--border);
}

.investment-summary {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

/* Payment Method Section */
.payment-method-section {
    margin-bottom: 16px;
}

.payment-option {
    position: relative;
}

.payment-btn {
    height: auto !important;
    padding: 12px 8px !important;
    border-radius: 8px !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    transition: all 0.2s ease;
    border-width: 2px !important;
}

.payment-btn.active,
.payment-btn:checked,
.btn-check:checked + .payment-btn {
    background-color: rgba(255, 140, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.payment-btn .fas {
    margin-right: 8px !important;
    font-size: 1.1rem;
    min-width: 16px;
}

.payment-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.payment-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.payment-balance {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.payment-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: var(--border-light) !important;
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}

.payment-btn.insufficient {
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    background-color: rgba(229, 62, 62, 0.1) !important;
}

/* Documents Section */
.documents-section {
    margin-bottom: 24px;
}

.document-list {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.document-item span {
    flex: 1;
    margin-left: 8px;
}

/* Transfer and Liquidation Styles */
.transfer-packets-screen,
.liquidation-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

.property-transfer-card,
.property-liquidation-card {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.property-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.property-info-summary h6 {
    margin: 0 0 4px 0;
    font-weight: 600;
}

.property-meta {
    display: flex;
    gap: 8px;
}

/* Option Cards for Liquidation */
.option-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover,
.option-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.02);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.option-info {
    flex: 1;
}

.option-info h6 {
    margin: 0 0 2px 0;
    font-weight: 600;
}

.option-status {
    text-align: right;
}

.option-details {
    padding-left: 52px;
}

/* Market Value Section */
.market-value-section {
    margin-bottom: 24px;
}

.market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

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

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

/* Transfer and Liquidation Summary */
.transfer-summary,
.liquidation-summary {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

/* Success Screens */
.investment-success-screen,
.transfer-success-screen {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-receipt-card,
.transfer-receipt-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

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

.receipt-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.next-steps {
    margin-bottom: 24px;
}

.step-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--white);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item i {
    width: 24px;
    text-align: center;
}

/* Share buttons */
.share-section {
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Portfolio specific styles */
.portfolio-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px;
}

.portfolio-header {
    background: var(--white);
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
    border-bottom: 1px solid var(--border);
}

.portfolio-header h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.portfolio-header .btn-outline-secondary {
    border-color: var(--border);
    color: var(--text-dark);
}

.portfolio-header .btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.portfolio-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.summary-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.summary-card .change-indicator {
    color: var(--white) !important;
}

.summary-card .text-success,
.summary-card .text-danger,
.summary-card .text-warning {
    color: var(--white) !important;
}

.summary-card .summary-label {
    color: var(--white) !important;
}

.summary-card .text-white {
    color: var(--white) !important;
}

.summary-card .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.summary-card h2,
.summary-card span,
.summary-card div,
.summary-card small {
    color: inherit;
}

.summary-card .btn-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.summary-card .btn-link:hover {
    color: var(--white) !important;
}

.summary-main {
    text-align: center;
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
    display: block;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.summary-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.change-indicator {
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.portfolio-content {
    padding: var(--content-top-padding) var(--content-side-padding);
}

.tab-navigation .btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.tab-navigation .btn {
    flex: 1;
    border-radius: 0;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.tab-navigation .btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.tab-navigation .btn:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

/* Referral Settings Styles */
.referral-screen {
    min-height: 100vh;
    background: var(--background);
}

.referral-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.referral-code-display {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    border: 2px dashed var(--primary-color);
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.referral-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    padding: 24px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Ensure all text elements inside balance-card are visible */
.balance-card .balance-label,
.balance-card .text-muted,
.balance-card small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.balance-card .points-amount {
    color: var(--white) !important;
}

/* Ensure button text is visible */
.balance-card .btn-outline-primary {
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.balance-card .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
    color: var(--white) !important;
}

/* Ensure all content has proper z-index */
.balance-card * {
    position: relative;
    z-index: 2;
}

.points-display {
    position: relative;
    z-index: 2;
}

.points-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

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

.referral-item {
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.referral-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.steps-container {
    space-y: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.badge-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--primary-color);
    position: relative;
}

.badge-icon {
    font-size: 2.5rem;
}

.badge-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.progress {
    background: var(--border-light);
}

.progress-bar {
    background: var(--primary-color);
}

.points-earned {
    font-size: 1.1rem;
}

/* Loading States for Dynamic Content */
.loading-skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
    min-height: 1em;
    min-width: 2em;
}

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

.loading-number {
    min-width: 60px;
}

/* Holdings */
.holding-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.holding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.holding-image {
    position: relative;
    height: 150px;
}

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

.holding-details {
    padding: 16px;
}

.holding-header {
    margin-bottom: 12px;
}

.holding-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1rem;
}

.holding-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.holding-performance {
    margin-bottom: 12px;
}

.performance-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.performance-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.holding-actions {
    display: flex;
    gap: 8px;
}

/* Profile Styles */
.profile-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px;
}

.profile-header {
    background: var(--white);
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
    border-bottom: 1px solid var(--border);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.profile-avatar {
    text-align: center;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

.profile-info {
    flex: 1;
}

.profile-info h6 {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: var(--text-dark);
}

.verification-status {
    display: flex;
    align-items: center;
}

.profile-content {
    padding: var(--content-top-padding) var(--content-side-padding);
}

.profile-stats {
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-menu {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.menu-section {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

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

.menu-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--border);
}

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

.menu-item:hover {
    background-color: var(--background);
}

.menu-item.text-danger {
    color: #dc3545;
}

.menu-item.text-danger .menu-icon i,
.menu-item.text-danger .menu-title {
    color: #dc3545;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary-color);
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.menu-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.app-info {
    margin: 20px 0;
}

/* Removed old complex confirmation styles - now using simple-confirmation-screen */

/* Secondary Market Styles */
.secondary-market-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px;
}

.market-header {
    background: var(--white);
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
    border-bottom: 1px solid var(--border);
}

.market-content {
    padding: var(--content-top-padding) var(--content-side-padding);
}

.market-tabs .btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.market-tabs .btn {
    flex: 1;
    border-radius: 0;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.market-tabs .btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.market-tabs .btn:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.market-stats-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.order-list {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.order-item:hover {
    background-color: var(--background);
}

.order-info {
    flex: 1;
}

.order-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.order-details {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.order-price {
    text-align: right;
}

.order-amount {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.order-type {
    font-size: 0.8rem;
    font-weight: 500;
}

.order-type.buy {
    color: #22c55e;
}

.order-type.sell {
    color: #ef4444;
}

.empty-market {
    background: var(--white);
    border-radius: 12px;
    margin: 20px 0;
}

.quick-actions {
    margin-top: 20px;
}

/* Removed old complex success styles - now using simple-success-screen */

/* Simple Success Screen Styles */
.simple-success-screen {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-checkmark i {
    font-size: 2.5rem;
    color: #22c55e;
}

.transfer-summary {
    background: var(--background);
    border-radius: 12px;
    padding: 20px;
    margin: 40px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item:first-child {
    padding-top: 0;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.info-text {
    margin: 30px 0;
}

/* Simple Confirmation Screen */
.simple-confirmation-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

.investment-summary-simple {
    text-align: center;
    margin-bottom: 30px;
}

.property-info-simple h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.terms-simple {
    margin: 30px 0;
}

/* Simple Form Screen (shared for all profile pages) */
.simple-form-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

.security-section,
.documents-section,
.notifications-section,
.help-section,
.terms-content {
    margin-bottom: 24px;
}

.security-item,
.document-item,
.notification-item,
.faq-item,
.language-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.security-item:last-child,
.document-item:last-child,
.notification-item:last-child,
.faq-item:last-child,
.language-item:last-child {
    border-bottom: none;
}

.security-item:hover,
.faq-item:hover,
.language-item:hover {
    background-color: var(--background);
    margin: 0 -16px;
    padding: 16px;
    border-radius: 8px;
}

.doc-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kyc-status-badge {
    margin-bottom: 16px;
}

/* KYC View Styles */
.kyc-view-screen {
    min-height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

.kyc-view-screen .content {
    padding: var(--content-top-padding) var(--content-side-padding);
    flex: 1;
    overflow-y: auto;
}

.status-banner {
    border-radius: 12px;
    border: none;
    padding: 16px;
    margin: 0 0 20px 0;
}

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

.section-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

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

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 120px;
    margin: 0;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: right;
    flex: 1;
}

.document-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-preview {
    border-radius: 8px;
    overflow: hidden;
    background: var(--background);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.document-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.pdf-preview,
.file-preview,
.no-document,
.image-error {
    background: var(--background);
    border-radius: 8px;
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
    width: 100%;
}

.verification-timeline {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: var(--border);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-content {
    flex: 1;
}

.timeline-content h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.timeline-content small {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.loading-state,
.error-state {
    background: var(--white);
    border-radius: 12px;
    margin: 20px 0;
    padding: 40px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.document-info small {
    font-size: 0.8rem;
}

.document-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-muted);
}

/* Mobile responsive improvements */
@media (max-width: 576px) {
    .content,
    .content-area,
    .profile-content,
    .portfolio-content,
    .marketplace-content,
    .market-content {
        padding: var(--content-top-padding) 12px;
    }
    
    .kyc-view-screen .content {
        padding: var(--content-top-padding) 12px;
    }
    
    .info-card,
    .document-card,
    .verification-timeline {
        padding: 16px;
    }
    
    .status-banner {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .document-preview {
        min-height: 120px;
    }
    
    .timeline-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 15px;
        top: 32px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .info-label {
        min-width: auto;
        text-align: left;
    }
    
    .info-value {
        text-align: left;
        padding-left: 0;
    }
    
    .timeline-content.d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }
    
    .timeline-content .text-end {
        text-align: left !important;
    }
}

@media (max-width: 400px) {
    .info-label {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
}

.language-flag {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.language-item.active {
    background-color: var(--background);
    border-radius: 8px;
    margin: 0 -16px;
    padding: 16px;
}

.faq-answer {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid var(--primary-color);
}

.info-box {
    margin: 20px 0;
}

.terms-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.terms-section:last-child {
    border-bottom: none;
}

/* Contact Support Styles */
.support-methods {
    margin-bottom: 40px;
}

.support-method {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.support-method:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
    transform: translateY(-1px);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.method-status {
    text-align: right;
}

.common-issues {
    margin-top: 40px;
}

.issue-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.issue-item:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.emergency-contact {
    margin-top: 30px;
}

/* Form switch styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

/* Simple Design Elements - Following .md Standards */
.market-option-card,
.loan-option-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.market-option-card:hover,
.loan-option-card:hover {
    border-color: var(--primary-color);
}

.option-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.property-info-simple {
    background: none;
    border: none;
    padding: 0;
}

.pricing-info,
.current-orders,
.how-it-works {
    background: none;
    border: none;
    padding: 0;
}

.info-list {
    list-style: none;
    padding: 0;
}

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

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

.loan-stats {
    margin-bottom: 24px;
}

.loan-stats .row {
    margin: 0;
    width: 100%;
}

.loan-stats .col-4 {
    padding: 0 8px;
    display: flex;
    justify-content: center;
    flex: 1;
}

.stat-item {
    padding: 20px 12px;
    text-align: center;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    line-height: 1.3;
}

/* Fix for loan stats section overflow */
.loan-stats .stat-item {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
}

.loan-stats .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.loan-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.1;
}

/* Responsive adjustments for loan stats on small screens */
@media (max-width: 480px) {
    .loan-stats .stat-value {
        font-size: 1rem;
    }
    
    .loan-stats .stat-label {
        font-size: 0.7rem;
    }
    
    .loan-stats .stat-item {
        padding: 12px 6px;
        min-height: 80px;
    }
}

@media (max-width: 360px) {
    .loan-stats .stat-value {
        font-size: 0.9rem;
    }
    
    .loan-stats .col-4 {
        padding: 0 4px;
    }
}

/* Fix for P2P loans lender stats section overflow */
.lender-stats {
    margin-bottom: 24px;
}

.lender-stats .row {
    margin: 0;
    width: 100%;
}

.lender-stats .col-4 {
    padding: 0 8px;
    display: flex;
    justify-content: center;
    flex: 1;
}

.lender-stats .stat-item {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.lender-stats .stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
}

.lender-stats .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.lender-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.1;
}

/* Responsive adjustments for P2P lender stats on small screens */
@media (max-width: 480px) {
    .lender-stats .stat-value {
        font-size: 1rem;
    }
    
    .lender-stats .stat-label {
        font-size: 0.7rem;
    }
    
    .lender-stats .stat-item {
        padding: 12px 6px;
        min-height: 80px;
    }
}

@media (max-width: 360px) {
    .lender-stats .stat-value {
        font-size: 0.9rem;
    }
    
    .lender-stats .col-4 {
        padding: 0 4px;
    }
}

/* Wallet Actions */
.wallet-actions {
    margin-top: 16px;
}

.wallet-actions .btn {
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* Profile Stats - Improved Layout */
.main-stat-card {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.main-stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    word-break: break-all;
    color: var(--white) !important;
}

.main-stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--white) !important;
}

.profile-stats .stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    height: 100%;
}

.profile-stats .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.profile-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ensure all pages follow simple white background */
.simple-form-screen,
.loans-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

/* Hide scrollbar for cleaner look */
::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   LOGIN AND AUTHENTICATION STYLES
   ======================================== */

.login-screen,
.register-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 20px 20px 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.login-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 120px;
    height: 120px;
    bottom: 100px;
    left: -60px;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 20px;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Content positioning */
.content {
    position: relative;
    z-index: 1;
}

/* Brand section */
.login-brand-section {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67700 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.brand-logo i {
    color: white;
    font-size: 2rem;
}

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

.login-screen .screen-title,
.register-screen .screen-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-screen .screen-subtitle,
.register-screen .screen-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced form styles */
.login-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.enhanced-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.enhanced-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
    background: white;
    outline: none;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #e67700);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.enhanced-input:focus + .input-focus-line {
    width: 100%;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(255, 140, 0, 0.1);
}

.input-feedback {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    min-height: 1rem;
    transition: all 0.3s ease;
}

.input-feedback.success {
    color: #28a745;
}

.input-feedback.error {
    color: #dc3545;
}

.input-feedback.info {
    color: var(--primary-color);
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: #e67700;
    text-decoration: underline;
}

/* Enhanced button */
.btn-enhanced-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67700 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.btn-enhanced-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.btn-enhanced-primary:active {
    transform: translateY(0);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-icon {
    transition: all 0.3s ease;
}

.btn-enhanced-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Social login */
.social-login {
    margin-bottom: 2rem;
}

.btn-social {
    width: 100%;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-social:hover {
    border-color: #4285f4;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.15);
}

.btn-google i {
    color: #4285f4;
}

/* Signup prompt */
.signup-prompt {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.signup-link:hover {
    color: #e67700;
    text-decoration: underline;
}

/* Security badge */
.security-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 10;
}

.security-badge i {
    color: #28a745;
    font-size: 1rem;
}

/* ========================================
   WALLET MANAGEMENT STYLES
   ======================================== */

.withdraw-screen,
.transactions-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for bottom nav */
}

.bank-account-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bank-account-card:hover {
    border-color: var(--primary-color);
}

.bank-account-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.1);
}

.bank-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-info {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
}

.no-accounts-state {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
}

/* ========================================
   TRANSACTION STYLES
   ======================================== */

.transaction-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.transaction-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.transaction-amount {
    text-align: right;
}

.empty-state,
.error-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state i,
.error-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.loading-placeholder {
    padding: 40px 20px;
    text-align: center;
}

/* ========================================
   TRANSACTION FILTERS
   ======================================== */

.transaction-filters .btn-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.transaction-filters .btn {
    flex: 1;
    border-radius: 0;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
}

.transaction-filters .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.transaction-filters .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.transaction-filters .btn.active,
.transaction-filters .btn:checked + .btn {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 390px) {
    .login-screen,
    .register-screen,
    .withdraw-screen,
    .transactions-screen {
        padding: 16px;
    }
    
    .bank-account-card {
        padding: 12px;
    }
    
    .transaction-item {
        padding: 12px 0;
    }
}

/* ===============================================
   CUSTOM ALERT SYSTEM STYLES
   =============================================== */

/* Alert Container */
.naira-alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    max-width: 350px;
    width: 90%;
}

/* Alert Base Styles */
.naira-alert {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.naira-alert.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.naira-alert.hide {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
}

/* Alert Content */
.naira-alert-content {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 14px;
    position: relative;
}

.naira-alert-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 14px;
}

.naira-alert-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 500;
    padding-top: 1px;
}

.naira-alert-close {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 12px;
}

.naira-alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transform: scale(1.05);
}

/* Alert Type Styles */
.naira-alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border-left: 4px solid var(--success);
}
.naira-alert-success .naira-alert-icon {
    color: var(--success);
    background: rgba(56, 161, 105, 0.1);
}
.naira-alert-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--success), transparent);
}

.naira-alert-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-left: 4px solid var(--danger);
}
.naira-alert-error .naira-alert-icon {
    color: var(--danger);
    background: rgba(229, 62, 62, 0.1);
}
.naira-alert-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--danger), transparent);
}

.naira-alert-warning {
    background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
    border-left: 4px solid var(--warning);
}
.naira-alert-warning .naira-alert-icon {
    color: var(--warning);
    background: rgba(221, 107, 32, 0.1);
}
.naira-alert-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--warning), transparent);
}

.naira-alert-info {
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    border-left: 4px solid var(--info);
}
.naira-alert-info .naira-alert-icon {
    color: var(--info);
    background: rgba(49, 130, 206, 0.1);
}
.naira-alert-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--info), transparent);
}

/* ===============================================
   CONFIRMATION MODAL STYLES
   =============================================== */

.naira-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.naira-confirm-overlay.hide {
    opacity: 0;
}

.naira-confirm-modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 340px;
    width: 100%;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.naira-confirm-overlay.hide .naira-confirm-modal {
    transform: scale(0.95);
}

.naira-confirm-content {
    padding: 28px 24px;
    text-align: center;
}

.naira-confirm-icon {
    margin-bottom: 20px;
}

.naira-confirm-icon i {
    font-size: 36px;
    color: var(--primary-color);
    background: rgba(255, 140, 0, 0.1);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.naira-confirm-message {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 500;
}

.naira-confirm-buttons {
    display: flex;
    gap: 12px;
}

.naira-btn {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.naira-btn-cancel:hover {
    background: var(--border);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.naira-btn-confirm {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.naira-btn-confirm:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #d66900 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 390px) {
    .naira-alert-container {
        width: calc(100% - 20px);
        top: 10px;
    }
    
    .naira-confirm-modal {
        margin: 0 10px;
    }
    
    .naira-confirm-buttons {
        flex-direction: column;
    }
    
    .naira-btn {
        margin-bottom: 8px;
    }
    
    .naira-btn:last-child {
        margin-bottom: 0;
    }
}

/* ===============================================
   TRANSACTION RECEIPT STYLES
   =============================================== */

.receipt-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px; /* Space for buttons */
}

.receipt-header {
    padding: var(--header-top-padding) var(--content-side-padding) var(--content-top-padding);
    background: var(--white);
}

.receipt-container {
    background: var(--white);
    margin: 0 20px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.receipt-brand {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.receipt-brand .brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.receipt-info {
    margin-bottom: 24px;
}

.receipt-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.receipt-details {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.detail-row:first-child {
    padding-top: 0;
}

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

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.receipt-footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding-top: 16px;
    margin-top: 24px;
}

.receipt-actions {
    padding: 0 20px 20px;
}

.receipt-actions .receipt-main-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.share-options {
    margin-top: 16px;
}

.share-options .btn {
    padding: 12px 8px;
    font-size: 0.8rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
}

.share-options .btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.property-details,
.bank-details {
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 16px;
}

/* Secondary Market Styles */
.secondary-market-screen {
    min-height: 100vh;
    background: var(--white);
}

.market-tabs .btn-group .btn {
    border-radius: 0;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color);
}

.market-tabs .btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.listing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.listing-image {
    height: 120px;
    overflow: hidden;
}

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

/* Feature Badge for Interest */
.feature-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

.feature-badge i {
    font-size: 0.7rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.feature-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.listing-content {
    padding: var(--content-side-padding);
}

.listing-header {
    margin-bottom: 12px;
}

.property-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.listing-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.detail-row span:first-child {
    color: var(--text-muted);
}

.price-indicator {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.total-value {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.my-listing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.create-listing-screen {
    min-height: 100vh;
    background: var(--white);
}

.packet-details-section {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

/* Modal Styles */
.packet-modal, .interest-modal, .interest-messages-modal, .conversation-modal, .edit-listing-modal, .partial-purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1051;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    margin-left: auto;
}

.modal-body {
    padding: 16px;
}

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

.property-image {
    border-radius: 8px;
    overflow: hidden;
}

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

.property-details {
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
}

.search-section .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.search-section .form-control {
    border-right: none;
}

.search-section .btn {
    border-left: none;
}

/* Interest Messages Styles */
.interest-messages-modal .modal-content {
    max-width: 500px;
    max-height: 90vh;
}

.interest-message-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.interest-message-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.message-card {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.message-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
}

.buyer-name {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.message-body p {
    background: var(--white);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: var(--text-dark);
}

.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Interest count badge on listings */
.my-listing-card .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
}

/* Conversation Modal Styles */
.conversation-modal .modal-content,
.edit-listing-modal .modal-content,
.partial-purchase-modal .modal-content {
    max-width: 500px;
    max-height: 90vh;
    position: relative;
    z-index: 1051;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Ensure modals are properly positioned when visible */
.conversation-modal:not(.d-none),
.edit-listing-modal:not(.d-none),
.partial-purchase-modal:not(.d-none) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1050 !important;
}

/* Ensure hidden modals stay hidden */
.conversation-modal.d-none,
.edit-listing-modal.d-none,
.partial-purchase-modal.d-none {
    display: none !important;
}

/* Chat Messages Styles */
.chat-messages-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.chat-messages-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    padding: 1rem;
}

.chat-messages {
    min-height: 200px;
}

.message {
    display: flex;
    margin-bottom: 0.75rem;
}

.message-own {
    justify-content: flex-end;
}

.message-other {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.message-own .message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message-other .message-bubble {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0.25rem;
}

.message-content {
    margin-bottom: 0.25rem;
}

.price-offer {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.message-time {
    text-align: right;
}

.message-other .message-time {
    text-align: left;
}

.message-time small {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Message Input Area */
.message-input-area textarea {
    resize: none;
    border-radius: 1rem;
}

.price-offer-form {
    animation: slideDown 0.3s ease;
}

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

/* Edit Listing Modal */
.calculation-display {
    background: var(--background);
    border: 1px solid var(--border);
}

/* Partial Purchase Modal */
.purchase-summary {
    background: var(--background);
    border: 1px solid var(--border);
}

.purchase-summary hr {
    border-color: var(--border);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .interest-messages-modal .modal-content,
    .conversation-modal .modal-content,
    .edit-listing-modal .modal-content,
    .partial-purchase-modal .modal-content {
        max-width: calc(100% - 20px);
    }
    
    .listing-card {
        margin-bottom: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    .modal-footer .btn:first-child {
        margin-bottom: 8px;
    }
    
    .message-actions {
        flex-direction: column;
    }
    
    .message-actions .btn {
        width: 100%;
        margin: 0;
    }
    
    .message-actions .btn:first-child {
        margin-bottom: 8px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-messages-container {
        max-height: 250px;
    }
}

/* Receipt specific badge styles */
.receipt-screen .badge {
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Share button styles */
.receipt-screen .btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

.receipt-screen .btn-info {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

/* Receipt container for image generation */
.receipt-container {
    position: relative;
    background: var(--white);
}

/* Ensure good contrast for image generation */
.receipt-container * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ===============================================
   SUPPORT TICKETS STYLES
   =============================================== */

.support-filters .btn-group {
    box-shadow: none;
}

.support-filters .btn {
    font-size: 14px;
    font-weight: 500;
    border-color: var(--border);
}

.support-filters .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.ticket-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ticket-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
}

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

.ticket-meta {
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
}

.category-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.priority-low {
    background: #E2E8F0;
    color: #64748B;
}

.priority-medium {
    background: #FEF3C7;
    color: #D97706;
}

.priority-high {
    background: #FEE2E2;
    color: #DC2626;
}

.priority-urgent {
    background: #DC2626;
    color: var(--white);
}

.ticket-message {
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.ticket-dates {
    font-size: 13px;
}

.empty-state-icon {
    color: var(--text-muted);
}

.ticket-detail-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.ticket-detail-header .badge {
    font-size: 14px !important;
}

/* ===== Liquidation Success Page Styles ===== */
.liquidation-success-screen {
    min-height: 100vh;
    background: var(--background);
    overflow-y: auto;
}

.liquidation-success-screen .content {
    padding: 20px 20px 40px;
    max-width: 450px;
    margin: 0 auto;
}

.success-icon {
    margin: 40px auto;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    animation: successPulse 0.6s ease-out;
}

.icon-circle.success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.transaction-summary {
    max-width: 400px;
    margin: 0 auto;
}

/* Liquidation success page specific summary card */
.liquidation-success-screen .summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.liquidation-success-screen .summary-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.liquidation-success-screen .summary-header h6 {
    color: var(--text-dark) !important;
    font-weight: 600;
}

.liquidation-success-screen .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid transparent;
}

.liquidation-success-screen .summary-item:not(:last-child) {
    border-bottom-color: var(--border-light);
}

.liquidation-success-screen .summary-label {
    font-size: 14px;
    color: var(--text-muted) !important;
    font-weight: 500;
}

.liquidation-success-screen .summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-align: right;
}

/* Override any inherited white text colors */
.liquidation-success-screen .summary-value.text-muted {
    color: var(--text-muted) !important;
}

.liquidation-success-screen .summary-value.fw-bold.text-success {
    color: var(--success) !important;
}

.liquidation-success-screen .action-buttons {
    max-width: 350px;
    margin: 0 auto;
    padding: 0 0;
}

.liquidation-success-screen .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
}

.liquidation-success-screen .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #cc6900);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.liquidation-success-screen .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
}

.liquidation-success-screen .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.liquidation-success-screen .btn-outline-secondary {
    border-radius: 12px;
}

.share-section {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.next-steps {
    max-width: 400px;
    margin: 0 auto;
}

/* Liquidation success page responsive styles */
@media (max-width: 480px) {
    .liquidation-success-screen .content {
        padding: 15px 15px 30px;
    }
    
    .liquidation-success-screen .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .liquidation-success-screen .summary-card {
        padding: 20px;
    }
    
    .liquidation-success-screen .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .liquidation-success-screen .summary-value {
        text-align: left;
        font-size: 16px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-buttons .btn {
        width: 100%;
    }
}

/* ===============================================
   BANK-BACKED LOAN STYLES
   =============================================== */

.bank-loan-screen {
    min-height: 100vh;
    background: var(--white);
    padding-bottom: 100px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

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

.step.active .step-label {
    color: var(--primary-color);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-top: -24px;
}

/* Loan Steps */
.loan-step {
    text-align: center;
}

.loan-step h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.loan-step p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Eligibility Card */
.eligibility-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.eligibility-card.border-success {
    border-color: var(--success);
}

.eligibility-card.border-danger {
    border-color: var(--danger);
}

.eligibility-stats {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Investment Selection */
.investment-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.investment-item:hover {
    border-color: var(--primary-color);
}

.investment-item.selected {
    border-color: var(--primary-color) !important;
    background: rgba(255, 140, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.2);
}

.investment-item.selected .investment-checkbox i {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.investment-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.property-placeholder {
    width: 50px;
    height: 50px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.investment-checkbox {
    font-size: 1.3rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-checkbox i {
    transition: all 0.2s ease;
}

.investment-item.selected .investment-checkbox i {
    color: #FF8C00 !important;
    transform: scale(1.1);
}

.investment-item:hover .investment-checkbox i {
    transform: scale(1.05);
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-checkbox.checked {
    background: #FF8C00;
    border-color: #FF8C00;
}

.custom-checkbox.checked i {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.custom-checkbox:hover {
    border-color: #FF8C00;
}

/* Selected Summary */
.selected-summary {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.summary-card {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Loan Terms */
.loan-terms-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.terms-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.terms-row.border-top {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 12px;
}

.agreement-checkbox {
    text-align: left;
}

.agreement-checkbox .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-custom {
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 8px;
    min-width: 150px;
}

/* Responsive Adjustments */
@media (max-width: 390px) {
    .step-indicator {
        margin-bottom: 24px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .step-line {
        width: 30px;
        margin-top: -22px;
    }
    
    .investment-item {
        padding: 12px;
    }
    
    .loan-terms-card {
        padding: 16px;
    }
    
    .terms-row {
        padding: 10px 0;
    }
}

/* ===============================================
   IMPROVED LOANS PAGE STYLES
   =============================================== */

.quick-stats-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 20px;
}

.quick-stats-card .row {
    margin: 0;
    width: 100%;
}

.quick-stats-card .col-6 {
    padding: 0 8px;
    display: flex;
    justify-content: center;
    flex: 1;
}

.quick-stats-card .stat-item {
    padding: 16px 12px;
    text-align: center;
    width: 100%;
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-stats-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.quick-stats-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.1;
}

/* Responsive adjustments for small screens */
@media (max-width: 480px) {
    .quick-stats-card .stat-value {
        font-size: 0.95rem;
    }
    
    .quick-stats-card .stat-label {
        font-size: 0.7rem;
    }
    
    .quick-stats-card {
        padding: 16px 12px;
    }
}

.calculator-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.calculation-result {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.result-row.border-top {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.benefits-section {
    margin-top: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.benefit-item i {
    font-size: 1rem;
}

.section-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 1rem;
}

.loans-list {
    margin-top: 16px;
}

.loan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loan-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.1);
}

.loan-header {
    margin-bottom: 12px;
}

.loan-details .row {
    margin-bottom: 8px;
}

.progress {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
}

.progress-bar {
    background: var(--primary-color);
    border-radius: 3px;
}

/* ===============================================
   LOAN DETAILS PAGE STYLES
   =============================================== */

.loan-details-screen {
    min-height: 100vh;
    background: var(--background);
    padding-bottom: 100px;
}

.loan-status-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loan-status-card h5 {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.3;
    margin-bottom: 8px;
    max-width: 100%;
}

.status-header {
    width: 100%;
    overflow: hidden;
}

.status-header .d-flex {
    flex-wrap: wrap;
    gap: 8px;
}

.loan-amount {
    min-width: 120px;
}

.loan-amount h4 {
    font-size: 1.2rem;
    white-space: nowrap;
}

.loan-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.loan-status-badge.bg-success {
    background: var(--success) !important;
}

.loan-status-badge.bg-warning {
    background: var(--warning) !important;
}

.loan-status-badge.bg-danger {
    background: var(--danger) !important;
}

.loan-status-badge.bg-primary {
    background: var(--primary-color) !important;
}

.loan-metrics {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.loan-progress .progress {
    background-color: #e9ecef;
    border-radius: 6px;
    height: 8px !important;
}

.loan-progress .progress-bar {
    background-color: var(--primary-color);
    border-radius: 6px;
    transition: width 0.6s ease;
    min-width: 2px; /* Show at least 2px even for 0% */
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.loan-actions {
    margin: 20px 0;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.info-row.border-top {
    border-top: 2px solid var(--border);
    margin-top: 12px;
    padding-top: 16px;
}

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

.info-value {
    color: var(--text-dark);
    font-weight: 500;
}

.next-payment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.payment-amount {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.payment-history-list .payment-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.collateral-items .collateral-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.collateral-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.collateral-summary {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
}

.summary-item {
    text-align: center;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.loading-container,
.error-container {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-modal,
.payoff-modal {
    text-align: left;
}

.payment-details,
.payoff-details {
    background: var(--background);
    border-radius: 8px;
    padding: 12px;
}

.payment-details > div,
.payoff-details > div {
    padding: 4px 0;
}

/* Custom Tab Navigation */
.tab-navigation {
    margin-bottom: 24px;
}

.custom-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    border: 1px solid var(--border);
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
    transform: translateY(-1px);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
}

/* Responsive adjustments for loan details */
@media (max-width: 390px) {
    .loan-metrics .col-4 {
        padding: 0 8px;
    }
    
    .metric-value {
        font-size: 1rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    .tab-button {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .loan-actions .btn {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .loan-status-card h5 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .status-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .loan-amount {
        align-self: flex-end;
        margin-top: 8px;
        min-width: auto;
    }
    
    .loan-amount h4 {
        font-size: 1.1rem;
    }
}


/* Fee Summary Divider */
.summary-divider {
    height: 1px;
    background-color: var(--border);
    margin: 8px 0;
    border: none;
}

.fee-summary-item {
    cursor: pointer;
}

.fee-summary-item:hover .summary-value {
    color: var(--primary-color);
}

/* ============================================================================
   ENHANCED WELCOME PAGE CAROUSEL STYLES
   ============================================================================ */

.welcome-screen {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B00 100%);
}

.welcome-carousel-container {
    height: calc(100vh - 200px);
    position: relative;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 60%;
}

.carousel-item {
    height: 100%;
}

.welcome-slide {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 140, 0, 0.9) 0%, 
        rgba(255, 107, 0, 0.8) 50%, 
        rgba(255, 80, 0, 0.9) 100%);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 350px;
    margin: 0 auto;
}

.slide-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: iconPulse 3s ease-in-out infinite;
}

.slide-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 500;
}

.slide-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Carousel Indicators Styling */
.carousel-indicators {
    bottom: 220px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
    background-color: white;
    transform: scale(1.2);
}

/* Fixed Bottom Actions */
.welcome-actions-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.welcome-actions {
    max-width: 350px;
    margin: 0 auto;
}

.btn-action {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 576px) {
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
    }
    
    .slide-icon {
        width: 70px;
        height: 70px;
    }
    
    .slide-icon i {
        font-size: 1.8rem;
    }
    
    .welcome-slide {
        padding: 20px 15px;
    }
    
    .carousel-indicators {
        bottom: 200px;
    }
}

@media (max-width: 400px) {
    .slide-content {
        max-width: 280px;
    }
    
    .slide-title {
        font-size: 1.6rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
}

/* Carousel Animation Enhancement */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item-next, 
.carousel-item-prev {
    transition: transform 0.8s ease-in-out;
}

/* Touch/Swipe Enhancement */
.carousel-inner {
    touch-action: pan-y pinch-zoom;
}

/* ========================================= */
/* FORGOT PASSWORD STYLES                   */
/* ========================================= */

/* Forgot Password Styles */
.forgot-password-icon, .otp-icon, .reset-icon {
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.9; transform: scale(1); }
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 8px;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: #e2e8f0;
}

.strength-bar-fill.weak {
    background-color: #e53e3e;
}

.strength-bar-fill.fair {
    background-color: #dd6b20;
}

.strength-bar-fill.good {
    background-color: #38a169;
}

.strength-bar-fill.strong {
    background-color: #2d69ae;
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.strength-text.weak {
    color: #e53e3e;
}

.strength-text.fair {
    color: #dd6b20;
}

.strength-text.good {
    color: #38a169;
}

.strength-text.strong {
    color: #2d69ae;
}

/* Password Match Indicator */
.password-match {
    min-height: 20px;
}

.match-text {
    font-size: 12px;
    font-weight: 500;
}

.match-text.match {
    color: #38a169;
}

.match-text.no-match {
    color: #e53e3e;
}

/* OTP Input Enhancements */
.verification-input {
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
}

.verification-input:focus {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.verification-input:valid {
    border-color: var(--success);
    background-color: rgba(56, 161, 105, 0.1);
}

/* Countdown Timer */
#countdown {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Button Loading States */
.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-spinner .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Forgot Password Form Enhancements */
.forgot-password-screen .content,
.verify-otp-screen .content,
.reset-password-screen .content {
    max-width: 400px;
    margin: 0 auto;
}

/* Mobile Optimizations for Forgot Password */
@media (max-width: 576px) {
    .verification-input {
        width: 35px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .forgot-password-screen .content,
    .verify-otp-screen .content,
    .reset-password-screen .content {
        padding: var(--content-top-padding) 12px;
    }
    
    .forgot-password-icon, .otp-icon, .reset-icon {
        font-size: 48px !important;
    }
}



/* PIN Setup and Validation Styles */
.pin-setup-screen,
.pin-validation-screen {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFB366 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
}

.pin-setup-container,
.pin-validation-container {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-logo {
    height: 60px;
    width: auto;
}

/* User Avatar */
.user-avatar-container {
    margin: 0 auto;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    overflow: hidden;
}

/* PIN Input Dots */
.pin-input-container {
    margin: 40px 0;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pin-dot.filled {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* PIN Keypad */
.pin-keypad {
    margin-top: 40px;
}

.keypad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.keypad-btn {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.keypad-btn:hover:not(.invisible) {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.keypad-btn:active:not(.invisible) {
    transform: scale(0.95);
}

.keypad-btn.invisible {
    opacity: 0;
    pointer-events: none;
}

.keypad-btn.keypad-delete {
    background: #e9ecef;
    color: #6c757d;
}

.keypad-btn.keypad-delete:hover {
    background: #dc3545;
    color: white;
}

/* PIN Steps */
.pin-step {
    animation: slideInRight 0.3s ease-out;
}

.pin-instruction h5 {
    color: var(--text-primary);
    font-weight: 600;
}

/* Security Options */
.security-options {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.attempt-counter {
    animation: shake 0.5s ease-in-out;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .pin-setup-screen,
    .pin-validation-screen {
        padding: 20px 15px;
    }
    
    .pin-setup-container,
    .pin-validation-container {
        padding: 24px 20px;
    }
    
    .keypad-btn {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .pin-dots {
        gap: 12px;
    }
    
    .pin-dot {
        width: 14px;
        height: 14px;
    }
}


/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

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

/* Skeleton variants */
.skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-title {
    height: 1.5rem;
    width: 40%;
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 120px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-property-card {
    height: 280px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.skeleton-stat {
    height: 60px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 8px;
}

/* Loading container */
.loading-container {
    padding: 1rem;
}

.loading-content {
    opacity: 0.7;
}

/* Hide content while loading */
.content-loading .actual-content {
    display: none;
}

.content-loading .skeleton-content {
    display: block;
}

.skeleton-content {
    display: none;
}

/* When content is loaded */
.content-loaded .skeleton-content {
    display: none;
}

.content-loaded .actual-content {
    display: block;
    animation: fade-in 0.3s ease-in;
}

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

/* Dark mode skeleton (for dark backgrounds) */
.skeleton-dark {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
}

/* Portfolio Details Styles */
.portfolio-details-screen {
    background: #f8f9fa;
    padding: 20px;
}

.portfolio-details-header {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.property-hero-section {
    margin-bottom: 20px;
}

.property-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.property-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.property-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.property-status-badge {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.property-info-section,
.investment-details-section,
.property-details-section,
.performance-section,
.action-buttons-section,
.transaction-history-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.property-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
}

.property-location {
    color: #6c757d;
    font-size: 0.95rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
}

.stat-icon {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.1rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #007bff;
}

.investment-detail-card,
.property-detail-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.detail-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
}

.performance-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.performance-item:last-child {
    margin-bottom: 0;
}

.performance-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.performance-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.transaction-meta {
    color: #6c757d;
    font-size: 0.8rem;
}

.transaction-amount {
    text-align: right;
}

.amount {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Responsive adjustments for portfolio details */
@media (max-width: 576px) {
    .portfolio-details-screen {
        padding: 15px;
    }
    
    .property-hero-image {
        height: 200px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

/* Portfolio Details Styles - Updated with NairaPacket Colors */
.portfolio-details-screen {
    background: #f8f9fa;
    padding: 15px;
    min-height: 100vh;
}

.portfolio-details-header {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.property-hero-section {
    margin-bottom: 20px;
}

.property-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.property-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.property-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.property-status-badge {
    background: linear-gradient(135deg, #FF8C00, #E67E00);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.property-info-section,
.investment-details-section,
.property-details-section,
.performance-section,
.action-buttons-section,
.transaction-history-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.property-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.property-location {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(255, 140, 0, 0.02));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FF8C00;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    background: linear-gradient(135deg, #FF8C00, #E67E00);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.section-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #FF8C00;
    margin-right: 8px;
}

.investment-detail-card,
.property-detail-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.detail-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    font-size: 0.95rem;
}

.performance-card {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.03), rgba(255, 140, 0, 0.01));
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.performance-item:last-child {
    margin-bottom: 0;
}

.performance-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.performance-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.2s ease;
}

.transaction-item:hover {
    background-color: rgba(255, 140, 0, 0.02);
    border-radius: 8px;
    margin: 0 -8px;
    padding: 16px 8px;
}

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

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.1rem;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.transaction-meta {
    color: #6c757d;
    font-size: 0.85rem;
}

.transaction-amount {
    text-align: right;
}

.amount {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Badge styles */
.badge.bg-success {
    background: linear-gradient(135deg, #28A745, #20C997) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FFC107, #FF8C00) !important;
    color: #2c3e50 !important;
}

/* Responsive adjustments for portfolio details */
@media (max-width: 576px) {
    .portfolio-details-screen {
        padding: 12px;
    }
    
    .property-hero-image {
        height: 220px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .property-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .property-info-section,
    .investment-details-section,
    .property-details-section,
    .performance-section,
    .action-buttons-section,
    .transaction-history-section {
        padding: 20px;
    }
}
