/* =====================================
   AKRADA CampusIntel CSS
   Premium Dark Theme
   ===================================== */

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

:root {
    --bg-dark: #050505;
    --bg-dark-2: #0B0B0F;
    --accent-primary: #8A2BE2;
    --accent-secondary: #9333EA;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A8;
    --border-color: #1A1A2E;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --glass-bg: rgba(11, 11, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 8px 24px rgba(138, 43, 226, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.splash-container {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.splash-content {
    animation: slideUp 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
}

.splash-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== AUTH PAGE ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: rgba(11, 11, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.2));
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-screen {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.auth-screen.active {
    display: block;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-smooth);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(138, 43, 226, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0A8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* Optional field styling */
.optional-field input {
    opacity: 0.7;
    font-size: 14px;
}

.optional-field input::placeholder {
    font-style: italic;
    color: rgba(255, 255, 255, 0.15);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-text,
.btn-icon,
.btn-payment {
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    width: 100%;
    margin-top: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-text,
.btn-text-small {
    background: transparent;
    color: var(--accent-primary);
    padding: 8px 12px;
    font-size: 14px;
}

.btn-text:hover,
.btn-text-small:hover {
    text-decoration: underline;
}

.btn-icon {
    background: transparent;
    color: var(--text-primary);
    padding: 8px;
    font-size: 18px;
    border: none;
}

.btn-icon:hover {
    color: var(--accent-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-payment {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 16px 32px;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4);
    z-index: 90;
    animation: pulse 2s infinite;
}

.btn-payment:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.5);
}

.full-width {
    width: 100%;
}

/* ===== INSTALL BANNER ===== */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.4s ease;
    z-index: 100;
}

.install-banner.hidden {
    display: none;
}

.install-actions {
    display: flex;
    gap: 10px;
}

/* ===== OFFLINE BANNER ===== */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning-color);
    color: #000;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    animation: slideDown 0.3s ease;
}

.offline-banner.hidden {
    display: none;
}

/* ===== TOAST CONTAINER ===== */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.5s forwards;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

/* ===== MAP PAGE ===== */
.map-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.map-header {
    background: rgba(11, 11, 15, 0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.2));
}

.school-name {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.share-header-btn {
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.share-header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ===== SEARCH PANEL ===== */
.search-panel {
    background: rgba(11, 11, 15, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    z-index: 50;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.search-icon-inline {
    padding: 0 12px;
    font-size: 16px;
    opacity: 0.6;
}

.search-input {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.clear-search-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.clear-search-btn.hidden {
    display: none;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    position: absolute;
    top: calc(100% - 12px);
    left: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.search-results.hidden {
    display: none;
}

.search-section-label {
    color: var(--text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px 6px;
    font-weight: 600;
}

.search-results-list {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: rgba(138, 43, 226, 0.08);
}

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

.result-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.result-category {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.search-empty-state {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
}

.search-empty-state.hidden {
    display: none;
}

.search-empty-state p {
    font-size: 15px;
    margin-bottom: 6px;
}

.search-empty-state small {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-history-section.hidden {
    display: none;
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-purple);
}

.filter-chip:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.filter-chip:active {
    transform: scale(0.95);
}

/* ===== MAP CONTAINER ===== */
.map-container {
    flex: 1;
    position: relative;
    z-index: 40;
}

.map-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.8), transparent);
    pointer-events: none;
    z-index: 5;
}

/* ===== LOCATION MARKERS ===== */
.location-marker {
    cursor: pointer;
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.5));
    transition: transform var(--transition-spring);
}

.location-marker:hover {
    transform: scale(1.2);
}

.user-marker {
    font-size: 24px;
}

.selected-marker {
    font-size: 28px;
    animation: bounce 0.6s ease;
}

/* ===== PARTNER BADGE ===== */
.partner-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--success-color);
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.4s ease-out;
    white-space: nowrap;
}

.partner-badge.hidden {
    display: none;
}

/* ===== EMPTY STATE ===== */
.empty-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 45;
}

.empty-state-overlay.hidden {
    display: none;
}

.empty-state-content,
.empty-state {
    text-align: center;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 8px;
}

.text-muted {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== RECENTLY VIEWED ===== */
.recently-viewed {
    position: absolute;
    bottom: 100px;
    left: 16px;
    right: 16px;
    z-index: 45;
}

.recently-viewed.hidden {
    display: none;
}

.recently-viewed-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.recently-viewed-list::-webkit-scrollbar {
    display: none;
}

.recently-viewed-chip {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.recently-viewed-chip:hover {
    border-color: var(--accent-primary);
    background: rgba(138, 43, 226, 0.1);
}

/* ===== LOCATION PANEL ===== */
.location-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.97);
    border-top: 1px solid var(--border-color);
    padding: 24px 20px;
    animation: slideUp 0.4s ease;
    z-index: 60;
    max-height: 65vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.location-panel.hidden {
    display: none;
}

.location-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-right: 30px;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    z-index: 5;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.location-panel h2 {
    font-size: 22px;
    font-weight: 700;
}

.location-category {
    background: rgba(138, 43, 226, 0.12);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.popular-badge {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.popular-badge.hidden {
    display: none;
}

.location-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ===== BUSINESS CONTACT ===== */
.business-contact {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.business-contact.hidden {
    display: none;
}

.business-contact-header {
    margin-bottom: 10px;
}

.verified-badge {
    color: var(--success-color);
    font-size: 12px;
    font-weight: 600;
}

.business-phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success-color);
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.business-phone-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* ===== UNCLAIMED BUSINESS ===== */
.unclaimed-business {
    margin-bottom: 16px;
}

.unclaimed-business.hidden {
    display: none;
}

.claim-link {
    display: block;
    color: var(--success-color);
    text-decoration: none;
    font-size: 13px;
    padding: 12px;
    text-align: center;
    border: 1px dashed rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.claim-link:hover {
    background: rgba(16, 185, 129, 0.04);
    border-style: solid;
}

/* ===== LOCATION FOOTER ===== */
.location-footer {
    text-align: center;
    margin-top: 16px;
}

.report-link {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.report-link:hover {
    color: var(--text-secondary);
}

.get-directions-btn {
    width: 100%;
}

/* ===== ROUTE PANEL ===== */
.route-panel {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: rgba(11, 11, 15, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    max-width: 300px;
    animation: slideUp 0.4s ease;
    z-index: 70;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.route-panel.hidden {
    display: none;
}

.route-content {
    position: relative;
}

.route-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.route-stat {
    text-align: center;
}

.route-label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

.route-value {
    display: block;
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: 600;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    animation: modalIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
    resize: vertical;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(138, 43, 226, 0.1);
}

.modal-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0A8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* ===== MENU SIDEBAR ===== */
.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
}

.menu-sidebar.hidden {
    display: none;
}

.menu-overlay {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
}

.menu-content {
    width: 80%;
    max-width: 300px;
    background: rgba(11, 11, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideLeft 0.3s ease;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-header-section {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.menu-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.3));
    border-radius: 10px;
}

.menu-header-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.menu-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.menu-nav {
    padding: 12px 0;
    flex: 1;
}

.menu-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(138, 43, 226, 0.06);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.menu-support {
    color: var(--warning-color) !important;
}

.menu-support:hover {
    background: rgba(245, 158, 11, 0.06) !important;
    border-left-color: var(--warning-color) !important;
}

.menu-business {
    color: var(--success-color) !important;
}

.menu-business:hover {
    background: rgba(16, 185, 129, 0.06) !important;
    border-left-color: var(--success-color) !important;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 20px;
}

.menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.version-text {
    color: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ===== ADMIN PAGE ===== */
.admin-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-dark);
}

.admin-header {
    background: rgba(11, 11, 15, 0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-header h1 {
    font-size: 24px;
    display: inline-block;
    margin: 0 20px;
}

.admin-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.admin-sidebar {
    width: 350px;
    background: rgba(11, 11, 15, 0.8);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coordinates-display {
    background: rgba(138, 43, 226, 0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.coord-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

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

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.location-item-info {
    flex: 1;
}

.location-item-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.location-item-category {
    color: var(--text-secondary);
    font-size: 11px;
}

.delete-btn {
    padding: 4px 8px;
    color: var(--error-color);
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 16px;
}

.delete-btn:hover {
    color: #dc2626;
}

.admin-map {
    flex: 1;
    position: relative;
}

.admin-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 11, 15, 0.9);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    font-size: 14px;
    pointer-events: none;
    z-index: 30;
}

/* ===== ADMIN BUSINESS TOGGLE ===== */
.business-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.business-toggle-row label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.business-toggle-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.business-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-fields.hidden {
    display: none;
}

/* ===== PAYMENT PAGE ===== */
.payment-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    padding: 20px;
}

.payment-container {
    width: 100%;
    max-width: 500px;
}

.payment-card {
    background: rgba(11, 11, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease;
}

.payment-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
}

.payment-card h1 {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: var(--radius-sm);
}

.feature-icon {
    font-size: 20px;
}

.feature span:last-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.payment-price {
    margin: 30px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.currency {
    color: var(--accent-primary);
    font-size: 24px;
}

.amount {
    font-size: 48px;
    font-weight: 700;
}

.period {
    color: var(--text-secondary);
    font-size: 16px;
}

.payment-note {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 20px;
}

/* ===== FORM INPUTS ===== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(138, 43, 226, 0.1);
}

/* ===== SUPPORT PAGE ===== */
.support-page,
.about-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    padding: 20px;
}

.support-container,
.about-container {
    width: 100%;
    max-width: 500px;
}

.support-card,
.about-card {
    background: rgba(11, 11, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease;
}

.support-card h2,
.about-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.support-subtitle,
.about-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Support sections */
.support-section {
    margin-bottom: 24px;
}

.support-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.support-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 12px;
}

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

.detail-label {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.copy-btn.full-width {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-size: 13px;
}

.crypto-address {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.support-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    padding-top: 16px;
    font-style: italic;
}

/* About page specific */
.about-logo-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
    border-radius: 16px;
}

.about-story {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-story p {
    margin-bottom: 12px;
}

.about-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

.about-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.about-vision {
    color: var(--accent-primary) !important;
    font-size: 15px !important;
    padding: 16px;
    background: rgba(138, 43, 226, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
    font-style: italic;
}

.about-free-note {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--success-color);
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.back-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(138, 43, 226, 0.6); }
}

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

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

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-card,
    .support-card,
    .about-card {
        padding: 30px 20px;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 40%;
    }

    .admin-map {
        height: 60%;
    }

    .payment-card {
        padding: 30px 20px;
    }

    .route-panel {
        bottom: 100px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .btn-payment {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .search-results {
        left: 10px;
        right: 10px;
    }

    .location-panel {
        max-height: 55vh;
    }

    .recently-viewed {
        bottom: 80px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 80px;
        height: 80px;
    }

    .splash-title {
        font-size: 24px;
    }

    .auth-card {
        padding: 24px 16px;
    }

    .admin-sidebar {
        max-height: 35%;
    }

    .admin-map {
        height: 65%;
    }

    .menu-content {
        width: 100%;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .amount {
        font-size: 36px;
    }

    .location-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-input-wrapper {
        margin-bottom: 10px;
    }

    .support-card,
    .about-card {
        padding: 24px 16px;
    }
}

/* ===== SCHOOL SELECTOR ===== */
.school-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all var(--transition-fast);
}

.school-selector:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--accent-primary);
}

.school-dropdown-icon {
    font-size: 10px;
    color: var(--accent-primary);
}

/* ===== SCHOOL SWITCHER DROPDOWN ===== */
.school-switcher {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.98);
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 350px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: slideDown 0.2s ease;
}

.school-switcher.hidden { 
    display: none; 
}

.school-switcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    background: rgba(11, 11, 15, 0.98);
    z-index: 2;
}

.school-switcher-item {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-switcher-item:hover {
    background: rgba(138, 43, 226, 0.08);
    color: var(--text-primary);
}

.school-switcher-item.active {
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(138, 43, 226, 0.05);
}

.school-switcher-item .check {
    color: var(--accent-primary);
    font-size: 12px;
}
