/* Design System Variables */
:root {
    --bg-dark: #07070a;
    --bg-card: rgba(22, 23, 33, 0.55);
    --bg-card-hover: rgba(30, 32, 45, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 91, 255, 0.35);
    
    --primary: #635bff;
    --primary-hover: #7b73ff;
    --primary-glow: rgba(99, 91, 255, 0.4);
    
    --secondary: #9333ea;
    --secondary-hover: #a855f7;
    --secondary-glow: rgba(147, 51, 234, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 91, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 40%);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Navigation Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(7, 7, 10, 0.75);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: #fff;
}

.logo-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-bar-container {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-bar-container input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-bar-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background-color: rgba(255, 255, 255, 0.07);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

/* User Profile Dropdown Menu */
.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition);
}

.user-profile-trigger:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.username-display {
    font-size: 0.9rem;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-menu-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background-color: #0f1016;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.dropdown-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-header {
    padding: 10px 18px 8px;
}

.dropdown-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* Main Layout Grid */
.app-main-content {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
    min-height: calc(100vh - 200px);
}

.app-view {
    animation: fadeIn 0.4s ease;
}

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

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-danger:hover {
    background-color: #f87171;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 12px;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.badge-success { background-color: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-info { background-color: rgba(99, 91, 255, 0.15); color: #8f8aff; border: 1px solid rgba(99, 91, 255, 0.2); }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 50px 20px 40px;
    background: radial-gradient(circle at center, rgba(99, 91, 255, 0.08) 0%, transparent 60%);
    border-radius: 24px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.text-glow {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.25);
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    padding: 8px 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-tag:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.category-tag.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(99, 91, 255, 0.2);
}

/* Directory Listing */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.expert-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Experts Grid & Cards */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.expert-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-4px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.expert-card:hover::before {
    opacity: 1;
}

.expert-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.expert-card-header-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.expert-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 4px;
}

.expert-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #fbbf24;
}

.rating-count {
    color: var(--text-dark);
}

.expert-card-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px;
}

.expert-card-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.rate-item {
    text-align: center;
}

.rate-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 600;
}

.rate-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.expert-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Detail Page */
.back-link {
    margin-bottom: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: var(--transition);
}

.back-link a:hover {
    color: #fff;
    transform: translateX(-4px);
}

.expert-profile-details {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

@media (max-width: 850px) {
    .expert-profile-details {
        grid-template-columns: 1fr;
    }
}

.profile-main-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: var(--glass-blur);
}

.profile-header-block {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
}

@media (max-width: 580px) {
    .profile-header-block {
        flex-direction: column;
        text-align: center;
    }
}

.profile-header-info h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-header-info .expert-title {
    font-size: 1.05rem;
    height: auto;
    margin-bottom: 10px;
}

.bio-section h3, .availability-section h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.bio-section p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.schedule-day-item {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.schedule-day-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.schedule-slots {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--primary-hover);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-action-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    text-align: center;
}

.widget-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.widget-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.widget-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Dashboard Component Styles */
.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title-info h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.dashboard-title-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(99, 91, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

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

.stat-info .stat-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.dashboard-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 45px;
}

@media (max-width: 850px) {
    .dashboard-panels-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: var(--glass-blur);
}

.panel-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dark);
}

.empty-state i {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.9rem;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Question list item styling */
.question-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition);
}

.question-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.question-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.question-item-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.question-text-content {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    word-break: break-word;
}

.answer-box {
    background-color: rgba(99, 91, 255, 0.03);
    border-left: 2px solid var(--primary);
    padding: 12px;
    border-radius: 0 8px 8px 0;
    margin-top: 10px;
    font-size: 0.85rem;
}

.answer-box strong {
    display: block;
    color: var(--primary-hover);
    margin-bottom: 4px;
}

.answer-textarea-container {
    margin-top: 12px;
}

.answer-textarea-container textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    padding: 10px;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 8px;
}

.answer-textarea-container textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Call booking list item styling */
.booking-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.booking-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.booking-info-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-party-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.booking-time-display {
    font-size: 0.8rem;
    color: var(--primary-hover);
}

.booking-duration-tag {
    font-size: 0.72rem;
    color: var(--text-dark);
}

/* Settings Form (Dashboard page component) */
.settings-form-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: var(--glass-blur);
    margin-bottom: 40px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.availability-weekly-grid {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-selector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.day-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: capitalize;
    cursor: pointer;
}

.day-time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-time-inputs input[type="time"] {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.8rem;
}

/* Modals System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.25s ease;
}

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

.modal-card {
    background-color: #0f1016;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 460px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: scaleUpCard 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUpCard {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 25px;
}

/* Modal Form Controls */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 91, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.char-counter {
    position: absolute;
    bottom: -18px;
    right: 5px;
    font-size: 0.72rem;
    color: var(--text-dark);
}

.price-breakdown {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.price-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
}

.expert-availability-note {
    font-size: 0.78rem;
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Authentication Modals Spec */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.auth-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
}

.auth-tab-btn.active {
    color: white;
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background-color: #0f1016;
    padding: 0 10px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.btn-google {
    background-color: #fff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-google:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.google-logo-img {
    width: 16px;
    height: 16px;
}

/* Interactive Call Interface */
.video-call-wrapper {
    background-color: #0a0b0e;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    height: 78vh;
    display: flex;
    flex-direction: column;
}

.video-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(15, 16, 22, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.video-iframe-container {
    flex: 1;
    background-color: #050507;
    position: relative;
}

#jitsi-meet-api-container {
    width: 100%;
    height: 100%;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #161720;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.88rem;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.danger { border-left-color: var(--danger); }

/* Shimmer Loading Animations */
.shimmer-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.shimmer-card {
    height: 380px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.shimmer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

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

/* Responsive Grid/Collapse updates */
@media (max-width: 580px) {
    .nav-links span {
        display: none; /* Hide link texts on mobile navigation */
    }
    
    .app-header .search-bar-container {
        display: none; /* Hide header search bar on very narrow widths */
    }
}
