/* ==========================================================================
   ELITE MENTOR HUB CSS
   Glassmorphism, Grid Layouts, Modals & Slide-overs
   ========================================================================== */

/* Layout & Globals */
.mtr-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.hidden-mobile { display: flex; }
@media (max-width: 768px) { .hidden-mobile { display: none !important; } }
.m-0 { margin: 0; } .my-32 { margin-top: 32px; margin-bottom: 32px; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.pt-16 { padding-top: 16px; } .pb-16 { padding-bottom: 16px; } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); } .border-top { border-top: 1px solid rgba(255,255,255,0.1); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .text-left { text-align: left; } .italic { font-style: italic; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-white { color: #ffffff; }
.bg-ok { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.4); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseGlow 2s infinite; border-radius: 12px; }

/* Cards & Buttons */
.mtr-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

.mtr-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.mtr-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.mtr-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.mtr-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.mtr-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.mtr-btn--secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.mtr-btn--secondary:disabled { opacity: 0.3; cursor: not-allowed; }
.mtr-btn--massive { padding: 16px 32px; font-size: 1.1rem; border-radius: 16px; }
.mtr-btn-icon { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1.2rem; }
.mtr-btn-icon:hover { color: white; transform: scale(1.1); }
.mtr-btn-icon-small { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.mtr-btn-icon-small:hover { background: rgba(192,132,252,0.2); color: #c084fc; border-color: #c084fc; }

.mtr-input, .mtr-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.mtr-input:focus, .mtr-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.mtr-form-group { margin-bottom: 16px; }
.mtr-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }

.mtr-badge { font-size: 0.65rem; padding: 4px 8px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* Header & Tabs */
.mtr-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.mtr-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; text-transform: uppercase; }
.mtr-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.mtr-header__stats { display: flex; gap: 24px; }
.mtr-stat-card { text-align: center; }
.mtr-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mtr-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

.mtr-nav-tabs { display: flex; gap: 8px; background: rgba(0,0,0,0.3); padding: 6px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.mtr-tab-btn { background: transparent; border: none; color: rgba(255,255,255,0.5); padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.mtr-tab-btn:hover { color: white; }
.mtr-tab-btn.active { background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.mtr-tab-content { animation: fadeInUp 0.4s forwards; }

/* Browse Tab */
.mtr-featured-carousel { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.mtr-hero-slide { min-width: 100%; scroll-snap-align: start; background: radial-gradient(circle at right, rgba(168,85,247,0.15), rgba(0,0,0,0.6)); border: 1px solid rgba(192,132,252,0.3); border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; }
.mtr-hero-slide .name { font-size: 2.5rem; font-weight: 800; margin: 0 0 8px 0; }
.mtr-hero-slide .avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #c084fc; background: #333; display: flex; align-items: center; justify-content: center; font-size: 3rem; }

.mtr-filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,0.03); padding: 12px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.mtr-search-box { position: relative; flex-grow: 1; min-width: 250px; }
.mtr-search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.mtr-search-box input { width: 100%; padding: 10px 14px 10px 36px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; outline: none; }
.mtr-search-box input:focus { border-color: #c084fc; }

.border-gold { border-color: rgba(251,191,36,0.5) !important; }

/* Mentor Grid */
.mtr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.mtr-m-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.mtr-m-card:hover { transform: translateY(-4px) scale(1.01); background: rgba(255,255,255,0.04); border-color: rgba(192,132,252,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.m-c-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.m-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #06b6d4); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; position: relative; flex-shrink: 0; border: 2px solid #0d0b12; }
.m-ver-badge { position: absolute; bottom: -4px; right: -4px; background: #fbbf24; color: #000; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; border: 2px solid #0d0b12; }
.m-name { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px 0; display: flex; align-items: center; gap: 6px; }
.m-rate { font-size: 0.85rem; color: #fbbf24; font-weight: 700; }

.mtr-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mtr-tag { font-size: 0.65rem; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }

.m-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 12px 0; margin-bottom: 16px; }
.m-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.m-stat .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.m-stat .val { font-size: 0.95rem; font-weight: 700; }

/* Apply Hero */
.mtr-giant-icon { font-size: 5rem; }
.mtr-req-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 24px; border-radius: 16px; display: inline-block; }

/* Bookings List */
.mtr-bookings-list { display: flex; flex-direction: column; gap: 16px; }
.mtr-bk-card { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid #c084fc; border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.mtr-bk-card.is-past { border-left-color: rgba(255,255,255,0.2); opacity: 0.7; }

/* Slide Panel (Detail) */
.mtr-slide-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 999; transition: opacity 0.4s; }
.mtr-slide-panel { position: fixed; top: 0; right: 0; width: 100%; max-width: 500px; height: 100vh; background: #0d0b12; border-left: 1px solid rgba(255,255,255,0.1); z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.mtr-slide-panel.open { transform: translateX(0); }
.mtr-slide-header { padding: 32px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: flex-start; background: radial-gradient(circle at top right, rgba(168,85,247,0.1), transparent); }
.mtr-avatar-large { width: 80px; height: 80px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; border: 2px solid #c084fc; box-shadow: 0 0 20px rgba(192,132,252,0.3); }

.mtr-slide-body { padding: 24px; overflow-y: auto; flex-grow: 1; }

.mtr-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.mtr-stat-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mtr-stat-box .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 4px; }
.mtr-stat-box .val { font-size: 1rem; font-weight: 700; tabular-nums: tabular-nums; }

.mtr-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.mtr-tab-mini { background: transparent; border: none; color: rgba(255,255,255,0.5); font-weight: 600; cursor: pointer; padding: 4px 8px; transition: 0.2s; text-transform: uppercase; font-size: 0.8rem; }
.mtr-tab-mini:hover { color: white; }
.mtr-tab-mini.active { color: #c084fc; border-bottom: 2px solid #c084fc; }
.mtr-det-section { animation: fadeInUp 0.3s forwards; }

.mtr-service-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 16px; }

/* Modals & Wizard */
.mtr-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.mtr-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.mtr-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.mtr-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.mtr-modal__close:hover { color: white; }

.mtr-wizard { max-width: 600px; display: flex; flex-direction: column; padding: 32px; }
.mtr-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.mtr-progress-bar .fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.mtr-wizard-body { min-height: 300px; padding: 24px 0; }
.mtr-step { animation: fadeInUp 0.3s forwards; }

.mtr-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mtr-slot-btn { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px; border-radius: 8px; text-align: center; cursor: pointer; transition: 0.2s; font-size: 0.85rem; font-weight: 600; }
.mtr-slot-btn:hover, .mtr-slot-btn.selected { background: rgba(192,132,252,0.2); border-color: #c084fc; color: #c084fc; }