/* ===== Base Styles ===== */
:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --primary-blue-light: #EFF6FF;
    --primary-green: #16A34A;
    --primary-green-dark: #15803D;
    --primary-green-light: #DCFCE7;
    --surface-white: #FFFFFF;
    --neutral-bg: #F9FAFB;
    --neutral-border: #E5E7EB;
    --neutral-text: #6B7280;
    --text-dark: #1F2937;
    --warning-yellow: #FBBF24;
    --warning-bg: #FEF3C7;
    --danger-red: #DC2626;
    --danger-bg: #FEE2E2;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--neutral-bg);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-gray-600 { color: var(--neutral-text); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary-blue-light);
}

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

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

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

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

.btn-group {
    display: flex;
    gap: 10px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    width: auto;
}

.form-help {
    font-size: 0.875rem;
    color: var(--neutral-text);
    margin-top: 0.25rem;
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-error {
    background-color: var(--danger-bg);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.alert-success {
    background-color: var(--primary-green-light);
    color: var(--primary-green-dark);
    border: 1px solid var(--primary-green);
}

.alert-info {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    border: 1px solid var(--primary-blue);
}

/* ===== Dashboard Layout ===== */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background-color: var(--surface-white);
    border-right: 1px solid var(--neutral-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: 100vh;
}

/* ===== User Profile ===== */
.user-profile {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--neutral-border);
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.user-role {
    color: var(--neutral-text);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.credibility-score {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-border);
}

.score-bar {
    height: 6px;
    background-color: var(--neutral-border);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background-color: var(--primary-green);
    border-radius: 3px;
}

/* ===== Navigation ===== */
.sidebar-nav {
    padding: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--neutral-text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--neutral-bg);
    color: var(--primary-blue);
}

.nav-item.active {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-item.logout {
    color: var(--danger-red);
    margin-top: 2rem;
}

.nav-item.logout:hover {
    background-color: var(--danger-bg);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface-white);
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--neutral-text);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== Property Cards ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.property-card {
    background-color: var(--surface-white);
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
}

.property-type {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.property-location {
    color: var(--neutral-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-price {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.property-features {
    display: flex;
    gap: 1rem;
    color: var(--neutral-text);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-border);
}

.landlord-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landlord-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== Verified Badge ===== */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--primary-green-light);
    color: var(--primary-green-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Status Badges ===== */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-applied {
    background-color: #E0F2FE;
    color: #0EA5E9;
}

.status-shortlisted {
    background-color: #DCFCE7;
    color: #16A34A;
}

.status-rejected {
    background-color: #FEE2E2;
    color: #DC2626;
}

.status-accepted {
    background-color: #FEF3C7;
    color: #D97706;
}

/* ===== Tables ===== */
.applications-table table,
.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-white);
    border-radius: 8px;
    overflow: hidden;
}

.applications-table th,
.transactions-table th {
    background-color: var(--neutral-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--neutral-border);
}

.applications-table td,
.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-border);
}

.applications-table tr:last-child td,
.transactions-table tr:last-child td {
    border-bottom: none;
}

/* ===== Wallet Styles ===== */
.wallet-summary-card {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.wallet-amount {
    margin: 1rem 0;
}

.wallet-amount .amount {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.wallet-amount .target {
    opacity: 0.8;
    font-size: 0.875rem;
}

.progress-container {
    margin-top: 2rem;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    opacity: 0.8;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background-color: var(--surface-white);
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.wallet-form {
    margin-top: 1rem;
}

/* ===== Search Forms ===== */
.search-section {
    margin-bottom: 2rem;
}

.search-form {
    background-color: var(--surface-white);
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.search-group {
    position: relative;
}

.search-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-text);
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--neutral-border);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* ===== Empty States ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: var(--surface-white);
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
}

.empty-state i {
    color: var(--neutral-text);
    margin-bottom: 1rem;
}

/* ===== Page Headers ===== */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--neutral-text);
}

.section-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* ===== Quick Actions ===== */
.quick-actions {
    margin-bottom: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background-color: var(--surface-white);
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.action-card p {
    color: var(--neutral-text);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== Authentication Pages ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--neutral-bg);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--surface-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-form {
    margin: 2rem 0;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-border);
    text-align: center;
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-actions {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 2rem;
    }
}

/* ===== Utility Classes ===== */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== Animation Classes ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== Mobile Menu Styles ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-border);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .logo {
    font-size: 1.5rem;
    margin: 0;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar {
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 1000;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
        left: 0;
    }
    
    .main-content {
        margin-top: 60px; /* Space for mobile header */
        max-height: none;
        overflow: visible;
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Mobile menu specific styles */
.mobile-user-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-border);
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-user-profile {
        display: block;
    }
    
    .mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }
    
    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: var(--neutral-text);
        text-decoration: none;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .mobile-nav-item.active {
        background-color: var(--primary-blue-light);
        color: var(--primary-blue);
        font-weight: 600;
    }
    
    .mobile-nav-item.logout {
        color: var(--danger-red);
        margin-top: 1rem;
    }
}

/* ===== GLOBAL MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-border);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 60px;
}

.mobile-header .mobile-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    text-align: center;
}

.mobile-header .mobile-user-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-home-btn {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Mobile Sidebar */
.sidebar-mobile {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-mobile.active {
    left: 0;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background: var(--neutral-bg);
}

.mobile-nav-item.active {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    font-weight: 600;
    border-left: 4px solid var(--primary-blue);
}

.mobile-nav-item i {
    width: 20px;
    text-align: center;
}

.mobile-nav-item.logout {
    color: var(--danger-red);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--neutral-border);
    margin: 1rem 0;
}

/* Mobile User Profile */
.mobile-user-profile {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--neutral-border);
    text-align: center;
}

/* Adjust main content for mobile header */
.main-content {
    transition: margin-top 0.3s ease;
}

/* Media Queries */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex !important;
    }
    
    .main-content {
        margin-top: 80px !important;
        padding-top: 1rem !important;
    }
    
    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Show mobile sidebar when active */
    .sidebar-mobile.active {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 0.75rem;
        height: 56px;
    }
    
    .mobile-title {
        font-size: 1.1rem;
    }
    
    .main-content {
        margin-top: 70px !important;
    }
}

/* Wallet Deposit Styles */
.deposit-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.deposit-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #E5E7EB;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2563EB;
    margin: 1rem 0 2rem;
    text-align: center;
}

.payment-methods {
    margin: 2rem 0;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #2563EB;
    background: #EFF6FF;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + .payment-icon {
    background: #2563EB;
    color: white;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #6B7280;
    transition: all 0.3s ease;
}

.deposit-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.deposit-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.deposit-info li {
    padding: 0.5rem 0;
    color: #6B7280;
    display: flex;
    align-items: center;
}

.deposit-info li:before {
    content: "✓";
    color: #16A34A;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* KYC Styles */
.kyc-status-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #E5E7EB;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.status-indicator.pending {
    background: #FEF3C7;
    color: #D97706;
}

.status-indicator.verified {
    background: #DCFCE7;
    color: #16A34A;
}

.status-indicator.rejected {
    background: #FEE2E2;
    color: #DC2626;
}

.status-message {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.status-message.success {
    background: #DCFCE7;
    color: #065F46;
}

.status-message.warning {
    background: #FEF3C7;
    color: #92400E;
}

.status-message.info {
    background: #E0F2FE;
    color: #0C4A6E;
}

.kyc-form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #E5E7EB;
}

.kyc-step {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.kyc-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2563EB;
    color: white;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-weight: 600;
}

.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #2563EB;
    background: #F9FAFB;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-prompt i {
    font-size: 3rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

.credibility-info {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #E5E7EB;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-value {
    font-weight: 600;
    color: #16A34A;
}

.info-note {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contracts Styles */
.contracts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contract-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.contract-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-color: #2563EB;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contract-address {
    color: #6B7280;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.contract-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.contract-status.active {
    background: #DCFCE7;
    color: #16A34A;
}

.contract-status.pending {
    background: #FEF3C7;
    color: #D97706;
}

.contract-status.expired {
    background: #F3F4F6;
    color: #6B7280;
}

.contract-status.terminated {
    background: #FEE2E2;
    color: #DC2626;
}

.contract-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 8px;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
}

.rent-amount {
    color: #2563EB;
    font-weight: 600;
    font-size: 1.1rem;
}

.contract-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.empty-state i {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 0.75rem;
    color: #374151;
}

.empty-state p {
    color: #6B7280;
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .contract-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contract-actions {
        flex-direction: column;
    }
    
    .contract-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .deposit-card,
    .kyc-status-card,
    .kyc-form-container,
    .credibility-info,
    .contract-card {
        padding: 1.5rem;
    }
    
    .balance-amount {
        font-size: 2.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
}

/* Mobile Header Fixes */
@media (max-width: 768px) {
    .mobile-header {
        padding: 0.75rem 1rem;
    }
    
    .mobile-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .mobile-home-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .sidebar-mobile {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 0.5rem 0.75rem;
    }
    
    .mobile-title {
        font-size: 0.9rem;
        max-width: 120px;
    }
}

/* Prevent horizontal scrolling globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard, .main-content, .kyc-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all containers don't overflow */
* {
    box-sizing: border-box;
}