body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #ffffff; /* Changed from #c9d1d9 to white for better contrast */
    background: radial-gradient(circle at top left, rgba(240, 185, 11, 0.18), transparent 25%), radial-gradient(circle at bottom right, rgba(235, 116, 7, 0.12), transparent 20%), #020617;
    position: relative;
    overflow-x: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Added shadow for readability over video */
}

/* Background Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 185, 11, 0.18);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0b90b;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #c9d1d9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #f0b90b;
}

/* Adjust main content for fixed nav */
.advisor-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem; /* Added top padding for nav */
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 15%, rgba(240, 185, 11, 0.22), transparent 0.45rem), radial-gradient(circle at 80% 18%, rgba(64, 156, 255, 0.16), transparent 0.35rem), radial-gradient(circle at 65% 72%, rgba(46, 189, 133, 0.14), transparent 0.5rem);
    filter: blur(70px);
    opacity: 0.8; /* Increased from 0.65 for better text contrast */
    pointer-events: none;
    z-index: -3;
}

#background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    pointer-events: none;
    z-index: -4;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(2,6,23,0.48), transparent 28%), radial-gradient(circle at 80% 20%, rgba(2,6,23,0.48), transparent 18%), linear-gradient(180deg, rgba(2,6,23,0.35), rgba(2,6,23,0.55));
    pointer-events: none;
    z-index: -1;
}

.pulse-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(240, 185, 11, 0.8);
    background: #f0b90b;
    animation: pulse 2.8s ease-in-out infinite;
    opacity: 0.9;
    pointer-events: none;
}

.dot1 { top: 14%; left: 12%; }
.dot2 { top: 42%; right: 10%; animation-delay: 0.8s; background: #2ebd85; box-shadow: 0 0 28px rgba(46, 189, 133, 0.8); }
.dot3 { bottom: 18%; left: 24%; animation-delay: 1.4s; background: #3b82f6; box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }

@keyframes pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.85; }
    50% { transform: scale(1.35); opacity: 1; }
}

/* Advisor Page Specific Styles */
.advisor-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

.page-header {
    max-width: 760px;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 22px;
    padding: 2rem 2.2rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

.page-header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.page-header p {
    margin: 0;
    color: #ffffff; /* Changed to white for better visibility */
    font-size: 1rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.advisor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advisor-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.advisor-card:hover {
    transform: translateY(-8px);
    border-color: #f0b90b; /* Using the Binance Yellow as an accent */
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar.blue { background: #3b82f6; color: #fff; }
.avatar.green { background: #2ebd85; color: #fff; }
.avatar.yellow { background: #f0b90b; color: #000; }
.avatar.purple { background: #8b5cf6; color: #fff; }

.badge {
    font-size: 0.75rem;
    background: #21262d;
    padding: 4px 10px;
    border-radius: 20px;
    color: #8b949e;
}

.advisor-card h3 {
    margin: 0.5rem 0;
    font-size: 1.4rem;
}

.specialty {
    color: #f0b90b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 1rem;
}

.bio {
    font-size: 0.9rem;
    color: #ffffff; /* Changed to white */
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.book-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #f0b90b;
    color: #f0b90b;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.book-btn:hover {
    background: #f0b90b;
    color: #000;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1.5rem;
    overflow: visible;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    width: min(640px, 100%);
    max-height: none;
    background: #0b1221;
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: visible;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: #c9d1d9;
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-card h2 {
    margin: 0 0 0.5rem;
    color: #fff;
}

.modal-card p {
    margin: 0 0 1.5rem;
    color: #8b949e;
}

.modal-card label {
    display: block;
    margin-bottom: 1rem;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.modal-card input,
.modal-card textarea {
    width: 100%;
    border: 1px solid #30363d;
    border-radius: 12px;
    background: #0f1726;
    color: #fff;
    padding: 0.9rem 1rem;
    margin-top: 0.5rem;
    font: inherit;
}

.modal-card textarea {
    resize: vertical;
}

.confirmation {
    text-align: center;
    color: #c9d1d9;
}

.confirmation h3 {
    margin-top: 0;
    color: #f0b90b;
}

.confirmation p {
    margin: 0.75rem 0 0;
}

/* Escrow Page Styles */
.escrow-content {
    max-width: 1000px;
    margin: 0 auto;
}

.escrow-intro h2 {
    color: #f0b90b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.escrow-intro p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.escrow-intro ul, .escrow-intro ol {
    margin: 1rem 0 2rem;
    padding-left: 2rem;
}

.escrow-intro li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.escrow-benefits {
    margin-top: 3rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-card {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.benefit-card h3 {
    color: #f0b90b;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #c9d1d9;
    font-size: 0.9rem;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 22px;
}

.cta-section h2 {
    color: #f0b90b;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .book-btn {
    padding: 1rem 2rem;
    min-width: 150px;
}

.book-btn.secondary {
    background: transparent;
    border: 1px solid #f0b90b;
    color: #f0b90b;
}

.book-btn.secondary:hover {
    background: rgba(240, 185, 11, 0.1);
}

/* Auth Page Styles */
.auth-section {
    max-width: 550px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #30363d;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-tab.active {
    color: #f0b90b;
    border-bottom: 2px solid #f0b90b;
}

.auth-form {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 2.5rem;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.auth-form label {
    display: block;
    margin-bottom: 1.5rem;
    color: #c9d1d9;
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #30363d;
    border-radius: 12px;
    background: rgba(22, 27, 34, 0.8);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

.auth-form input::placeholder {
    color: #8b949e;
}

.auth-form button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
}

.auth-form.hidden {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #f0b90b;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* KYC specific checkbox styling */
#kyc-form .checkbox-label {
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

#kyc-form .checkbox-label:hover {
    border-color: rgba(240, 185, 11, 0.3);
}

#kyc-form .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
}

#kyc-form button[type="submit"] {
    margin-top: 3rem;
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: #f0b90b;
}

/* KYC Page Styles */
.kyc-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.kyc-intro {
    margin-bottom: 4rem;
    padding: 3rem;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
}

.kyc-intro h2 {
    color: #f0b90b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.kyc-intro p {
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #c9d1d9;
    font-size: 1.05rem;
}

.kyc-requirements {
    margin-top: 2.5rem;
}

.kyc-requirements h3 {
    color: #f0b90b;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.kyc-requirements ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.kyc-requirements li {
    margin-bottom: 1rem;
    color: #c9d1d9;
    line-height: 1.6;
    font-size: 1rem;
}

#kyc-form h2 {
    color: #f0b90b;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(240, 185, 11, 0.2);
}

#kyc-form label {
    display: block;
    margin-bottom: 2rem;
    color: #c9d1d9;
    font-weight: 500;
    font-size: 0.95rem;
}

#kyc-form input,
#kyc-form select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #30363d;
    border-radius: 12px;
    background: rgba(22, 27, 34, 0.8);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

#kyc-form input:focus,
#kyc-form select:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

#kyc-form input::placeholder {
    color: #8b949e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.document-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.upload-section {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.2s;
}

.upload-section:hover {
    border-color: rgba(240, 185, 11, 0.3);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.1);
}

.upload-section label {
    display: block;
    margin-bottom: 1.5rem;
    color: #c9d1d9;
    font-weight: 600;
    font-size: 1.1rem;
}

.upload-section input[type="file"] {
    width: 100%;
    padding: 1rem;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #c9d1d9;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.upload-section input[type="file"]:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

.upload-section small {
    display: block;
    color: #8b949e;
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.kyc-status {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
}

.kyc-status h3 {
    color: #f0b90b;
    margin-bottom: 1rem;
}

.kyc-status p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.kyc-status a {
    color: #f0b90b;
    text-decoration: none;
}

.kyc-status a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h3 {
    color: #ffffff; /* Changed from #8b949e for better visibility */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #f0b90b;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.active-escrows h2, .recent-activity h2 {
    color: #f0b90b;
    margin-bottom: 1.5rem;
}

.escrow-list {
    display: grid;
    gap: 1.5rem;
}

.escrow-item {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.escrow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.escrow-header h3 {
    margin: 0;
    color: #fff;
}

.escrow-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.escrow-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.escrow-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.escrow-status.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.escrow-details {
    margin-bottom: 1rem;
}

.escrow-details p {
    margin: 0.25rem 0;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.escrow-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: 1px solid #f0b90b;
    color: #f0b90b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(240, 185, 11, 0.1);
}

/* Active Escrows Display */
.active-escrow-item {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-escrow-item h4 {
    margin: 0 0 0.5rem 0;
    color: #f0b90b;
    font-size: 1.1rem;
}

.active-escrow-item p {
    margin: 0.25rem 0;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.escrow-info {
    flex: 1;
}

.escrow-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-active { color: #f0b90b; font-weight: 600; }
.status-completed { color: #28a745; font-weight: 600; }
.status-refunded { color: #dc3545; font-weight: 600; }

.completed-badge, .refunded-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.completed-badge { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.refunded-badge { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.no-active-escrows {
    text-align: center;
    padding: 2rem;
    color: #8b949e;
    font-style: italic;
}

.recent-activity {
    margin-top: 3rem;
}

.activity-list {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #30363d;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #8b949e;
    font-size: 0.8rem;
}

/* Escrow Dashboard Styles */
.escrow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.escrow-header {
    text-align: center;
    margin-bottom: 3rem;
}

.escrow-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #f0b90b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.escrow-header p {
    font-size: 1.2rem;
    color: #c9d1d9;
    max-width: 600px;
    margin: 0 auto;
}

.escrow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(10, 14, 28, 0.8);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.escrow-form h3, .escrow-status h3 {
    color: #f0b90b;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.escrow-form label {
    display: block;
    margin-bottom: 1rem;
    color: #c9d1d9;
    font-weight: 500;
}

.escrow-form input,
.escrow-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #30363d;
    border-radius: 12px;
    background: #0f1726;
    color: #fff;
    font: inherit;
    margin-top: 0.5rem;
}

.escrow-form input:focus,
.escrow-form select:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
}

.escrow-main-btn {
    width: 100%;
    background: linear-gradient(135deg, #f0b90b, #e6a800);
    border: none;
    color: #000;
    padding: 1rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.escrow-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.3);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #30363d;
}

.step {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.step.completed {
    opacity: 1;
}

.step.active {
    opacity: 1;
}

.step .dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #30363d;
    border: 3px solid #020617;
}

.step.completed .dot {
    background: #22c55e;
    border-color: #22c55e;
}

.step.active .dot {
    background: #f0b90b;
    border-color: #f0b90b;
    animation: pulse 2s infinite;
}

.step .content strong {
    display: block;
    color: #f0b90b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step .content p {
    color: #c9d1d9;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.escrow-summary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #30363d;
}

.escrow-summary .total {
    font-size: 1.1rem;
    color: #c9d1d9;
}

.status-tag {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Payment Approval Card */
.payment-approval-card {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.payment-info {
    flex: 1;
}

.payment-info h4 {
    color: #f0b90b;
    margin-bottom: 0.5rem;
}

.payment-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Admin Dashboard Tabs */
.admin-tabs {
    display: flex;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.admin-tab {
    background: none;
    border: none;
    color: #8b949e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab:hover {
    background: rgba(240, 185, 11, 0.1);
    color: #f0b90b;
}

.admin-tab.active {
    background: #f0b90b;
    color: #020617;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #f0b90b;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #8b949e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* User Management */
.user-management-section {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.user-registration-card {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.user-info {
    margin-bottom: 1rem;
}

.user-info h4 {
    color: #f0b90b;
    margin-bottom: 0.5rem;
}

.user-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* Document Review */
.document-review-section {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.kyc-application-card {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.application-header h3 {
    color: #f0b90b;
    margin: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-approved { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.status-rejected { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.application-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.document-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 8px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #30363d;
}

.document-item:last-child {
    border-bottom: none;
}

.document-link {
    color: #58a6ff;
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}

/* Agreement Section Styles */
.agreement-section {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.agreement-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .agreement-parties {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.party-status {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.party-status h4 {
    color: #f0b90b;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: bold;
}

.status-indicator.accepted {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-indicator.rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status-indicator.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-icon {
    font-size: 1.2rem;
}

.agreement-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .agreement-buttons {
        flex-direction: column;
    }
}

/* Notifications */
.notifications-section {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.notifications-section h3 {
    color: #f0b90b;
    margin-bottom: 1rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-item:hover {
    background: rgba(2, 6, 23, 0.8);
    border-color: rgba(240, 185, 11, 0.3);
}

.notification-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.notification-content h4 {
    color: #f0b90b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.notification-content p {
    color: #c9d1d9;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Transaction Container */
.transaction-container {
    max-width: 1000px;
    margin: 0 auto;
}

.transaction-progress {
    margin-bottom: 2rem;
}

.progress-timeline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    padding: 1rem 0;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(240, 185, 11, 0.18);
}

.progress-step {
    flex: 1;
    position: relative;
    z-index: 2;
}

.progress-dot {
    width: 40px;
    height: 40px;
    background: rgba(10, 14, 28, 0.9);
    border: 2px solid rgba(240, 185, 11, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    position: relative;
    z-index: 3;
}

.progress-step.completed .progress-dot {
    background: #10b981;
    border-color: #10b981;
}

.progress-step.active .progress-dot {
    background: #f0b90b;
    border-color: #f0b90b;
    animation: pulse 2s infinite;
}

.progress-label {
    text-align: center;
}

.progress-label strong {
    color: #c9d1d9;
    display: block;
    margin-bottom: 0.25rem;
}

.progress-label p {
    color: #8b949e;
    font-size: 0.85rem;
    margin: 0;
}

/* Transaction Details */
.transaction-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(240, 185, 11, 0.18);
}

.detail-row.full {
    grid-template-columns: 1fr;
}

.detail-item label {
    color: #8b949e;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: #c9d1d9;
    margin: 0;
    font-size: 1rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.status-completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method-card {
    background: rgba(10, 14, 28, 0.7);
    border: 2px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-card:hover {
    border-color: #f0b90b;
    background: rgba(10, 14, 28, 0.9);
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.payment-method-card h4 {
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

.payment-method-card p {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 0;
}

/* Payment Details Display */
.payment-details {
    background: rgba(10, 14, 28, 0.8);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.payment-info {
    margin-bottom: 1.5rem;
}

.payment-info h4 {
    color: #f0b90b;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(240, 185, 11, 0.1);
}

.info-row.highlighted {
    background: rgba(240, 185, 11, 0.1);
    border-radius: 6px;
    margin: 0.5rem 0;
}

.info-row .label {
    color: #8b949e;
}

.info-row .value {
    color: #f0b90b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.crypto-option {
    margin-bottom: 1.5rem;
}

.crypto-option h5 {
    color: #c9d1d9;
    margin-bottom: 0.75rem;
}

.address-box {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.address-box code {
    color: #f0b90b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #0056b3;
}

/* Payment Confirmation */
.payment-confirmation {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #c9d1d9;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#payment-made-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design for Mobile and All Devices */
@media (max-width: 768px) {
    /* Navigation */
    .nav-header {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    /* Background Video - Keep as background on mobile but ensure it plays */
    .background-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        object-fit: cover;
        z-index: -2;
        opacity: 0.3;
    }
    
    /* Adjust main content for mobile */
    .advisor-container,
    .escrow-container,
    .transaction-container {
        padding: 4rem 1rem 2rem;
    }
    
    /* Grid adjustments */
    .advisor-grid,
    .benefit-grid,
    .escrow-grid,
    .dashboard-stats,
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Form adjustments */
    .auth-form,
    .kyc-intro,
    .card {
        padding: 1.5rem;
    }
    
    .form-row,
    .agreement-parties {
        grid-template-columns: 1fr;
    }
    
    /* Modal adjustments */
    .modal-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Button adjustments */
    .cta-buttons,
    .agreement-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .book-btn,
    .agreement-buttons .book-btn {
        min-width: auto;
    }
    
    /* Timeline adjustments */
    .progress-timeline {
        flex-direction: column;
        gap: 2rem;
    }
    
    .progress-timeline::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }
    
    .progress-step {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .progress-dot {
        flex-shrink: 0;
        margin: 0;
    }
    
    .progress-label {
        text-align: left;
        flex: 1;
    }
    
    /* Table-like layouts */
    .escrow-header,
    .payment-approval-card,
    .activity-item,
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Font size adjustments */
    .page-header h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .escrow-header h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    /* Spacing adjustments */
    .kyc-requirements,
    .document-uploads {
        margin: 2rem 0;
    }
    
    .upload-section {
        padding: 1.5rem;
    }
    
    /* Admin tabs */
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .advisor-grid,
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .escrow-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure compatibility across all devices */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body::before,
    body::after {
        background-size: 40px 40px;
    }
}

/* Delivery Section */
.delivery-section {
    margin-bottom: 2rem;
}

.delivery-info-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.delivery-info-box h4 {
    color: #10b981;
    margin-bottom: 0.5rem;
}

.delivery-info-box p {
    color: #8b949e;
    margin: 0;
}

/* Notifications */
.notifications-section {
    margin-top: 2rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    background: rgba(10, 14, 28, 0.7);
    border-left: 4px solid #f0b90b;
    border-radius: 8px;
    padding: 1rem;
}

.notification-title {
    color: #f0b90b;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.notification-message {
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

.notification-time {
    color: #8b949e;
    font-size: 0.85rem;
}

/* Transaction Items */
.transaction-item {
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(240, 185, 11, 0.18);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.transaction-info {
    flex: 1;
}

.transaction-info h4 {
    color: #f0b90b;
    margin-bottom: 0.5rem;
}

.transaction-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #8b949e;
}

.transaction-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #8b949e;
    font-style: italic;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c9d1d9;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

/* Modal improvements */

@media (max-width: 768px) {
    .progress-timeline {
        flex-direction: column;
    }
    
    .progress-timeline::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-direction: column;
        text-align: center;
    }
    
    .transaction-actions {
        justify-content: center;
        width: 100%;
    }
    
    .address-box {
        flex-direction: column;
    }
}

/* Status Badge Styles */
.status-pending_payment { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-funded { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-active { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-completed { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.status-refunded { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.status-cancelled { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

.completed-badge,
.refunded-badge,
.cancelled-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.refunded-badge { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.cancelled-badge { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

/* Timeline step status */
.step.active .dot {
    background: #f0b90b;
    animation: pulse 2s infinite;
}

.step.completed .dot {
    background: #10b981;
}

.step.completed .content strong {
    color: #10b981;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .escrow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .escrow-container {
        padding: 5rem 1rem 2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .step .dot {
        left: -1.5rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}
