/**
 * Advanced Travel CRM - Customer Account Styles
 * Premium UI for customer portal
 */

/* ==================== PREMIUM AUTH FORMS ==================== */
.atc-premium-auth-form {
    max-width: 500px;
    margin: 60px auto;
    padding: 50px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.atc-premium-auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.atc-auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.atc-auth-header h2 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.atc-auth-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

/* Premium Form Styles */
.atc-premium-form {
    margin-top: 30px;
}

.atc-premium-form-group {
    margin-bottom: 25px;
}

.atc-premium-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atc-premium-form-group input,
.atc-premium-form-group select,
.atc-premium-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8fafc;
    font-family: inherit;
    box-sizing: border-box;
}

.atc-premium-form-group input:focus,
.atc-premium-form-group select:focus,
.atc-premium-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.atc-premium-form-group small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

.atc-premium-form-group small a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.atc-premium-form-group small a:hover {
    text-decoration: underline;
}

/* Checkbox Label */
.atc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #475569;
}

.atc-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.atc-checkbox-label span {
    font-size: 14px;
    line-height: 1.5;
}

.atc-checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.atc-checkbox-label a:hover {
    text-decoration: underline;
}

/* Premium Buttons */
.atc-btn-premium {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.atc-btn-premium-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.atc-btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.atc-btn-premium-primary:active {
    transform: translateY(0);
}

.atc-btn-premium-text {
    background: transparent;
    color: #667eea;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 16px;
    font-size: 14px;
}

.atc-btn-premium-text:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

.atc-btn-block {
    display: block;
    width: 100%;
}

.atc-premium-form-actions {
    margin-top: 30px;
}

/* Auth Footer */
.atc-auth-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}

.atc-auth-footer p {
    margin: 0 0 15px 0;
    color: #64748b;
    font-size: 14px;
}

.atc-auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.atc-auth-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* OTP Input Styles */
.atc-otp-input-group {
    text-align: center;
}

.atc-otp-input {
    font-size: 36px;
    letter-spacing: 15px;
    text-align: center;
    font-weight: 700;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.atc-otp-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.1);
}

.atc-otp-verification-wrapper .atc-premium-form-group {
    text-align: center;
}

/* Resend OTP Button */
.atc-resend-otp-btn {
    margin-top: 10px;
}

/* Legacy Auth Form (for backward compatibility) */
.atc-auth-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.1);
}

.atc-auth-form h2 {
    margin: 0 0 30px 0;
    color: #0A1F44;
    font-size: 28px;
    text-align: center;
}

.atc-form-row {
    margin-bottom: 20px;
}

.atc-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.atc-form-field {
    margin-bottom: 20px;
}

.atc-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.atc-form-field input,
.atc-form-field select,
.atc-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.atc-form-field input:focus,
.atc-form-field select:focus,
.atc-form-field textarea:focus {
    outline: none;
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.atc-form-field input:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.atc-form-field small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.atc-form-actions {
    margin-top: 30px;
}

.atc-form-footer {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.atc-form-footer p {
    margin: 10px 0;
    color: #64748b;
    font-size: 14px;
}

.atc-form-footer a {
    color: #0A1F44;
    font-weight: 600;
    text-decoration: none;
}

.atc-form-footer a:hover {
    color: #D4AF37;
}

/* ==================== BUTTONS ==================== */
.atc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.atc-btn-primary {
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.3);
}

.atc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.4);
}

.atc-btn-outline {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #0A1F44;
}

.atc-btn-outline:hover {
    background: #F0F4FF;
    color: #1E3A5F;
}

.atc-btn-text {
    background: transparent;
    color: #0A1F44;
    padding: 8px 16px;
}

.atc-btn-text:hover {
    color: #D4AF37;
}

.atc-btn-danger {
    background: #EF4444;
    color: #fff;
}

.atc-btn-danger:hover {
    background: #DC2626;
}

.atc-btn-block {
    display: block;
    width: 100%;
}

.atc-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.atc-btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MESSAGES ==================== */
.atc-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.atc-message-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.atc-message-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.atc-message-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.atc-message-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.atc-notice {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.atc-notice-warning {
    background: #fef3c7;
    color: #92400e;
}

.atc-notice-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ==================== DASHBOARD ==================== */
.atc-account-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.atc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%);
    border-radius: 16px;
    color: #fff;
}

.atc-dashboard-welcome h1 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 32px;
}

.atc-dashboard-welcome p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

.atc-dashboard-actions {
    display: flex;
    gap: 10px;
}

/* Dashboard Stats */
.atc-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.atc-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.atc-stat-icon {
    font-size: 40px;
}

.atc-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: #0A1F44;
}

.atc-stat-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Dashboard Tabs */
.atc-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.atc-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.atc-tab:hover {
    color: #0A1F44;
}

.atc-tab.active {
    color: #0A1F44;
    border-bottom-color: #D4AF37;
}

/* ==================== BOOKINGS TABLE ==================== */
.atc-bookings-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.atc-bookings-section h2 {
    margin: 0 0 25px 0;
    color: #0A1F44;
}

.atc-bookings-table-wrapper {
    overflow-x: auto;
}

.atc-bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.atc-bookings-table thead {
    background: #f8fafc;
}

.atc-bookings-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.atc-bookings-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.atc-bookings-table tr:hover {
    background: #f8fafc;
}

.atc-booking-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status Badges */
.atc-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.atc-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.atc-status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.atc-status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.atc-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== EMPTY STATE ==================== */
.atc-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.atc-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.atc-empty-state h3 {
    margin: 0 0 10px 0;
    color: #0A1F44;
    font-size: 24px;
}

.atc-empty-state p {
    margin: 0 0 30px 0;
    color: #64748b;
}

/* ==================== ADVANCED DASHBOARD ==================== */
.atc-advanced-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.atc-dashboard-header-advanced {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(10, 31, 68, 0.3);
}

.atc-user-welcome {
    display: flex;
    gap: 20px;
    align-items: center;
}

.atc-user-avatar img {
    border-radius: 50%;
    border: 4px solid #D4AF37;
}

.atc-user-info h1 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 32px;
}

.atc-user-email {
    margin: 5px 0;
    color: #cbd5e1;
    font-size: 16px;
}

.atc-user-tier {
    margin: 10px 0 0 0;
}

.atc-tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.atc-tier-new {
    background: #cbd5e1;
    color: #334155;
}

.atc-tier-regular {
    background: #bae6fd;
    color: #0c4a6e;
}

.atc-tier-loyal {
    background: #fed7aa;
    color: #92400e;
}

.atc-tier-vip {
    background: linear-gradient(135deg, #F0F4FF 0%, #F8FAFF 100%);
    color: #0A1F44;
    border: 2px solid #1E3A5F;
}

.atc-dashboard-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Advanced Stats */
.atc-dashboard-stats-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.atc-stat-card-advanced {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.atc-stat-card-advanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.atc-stat-icon-advanced {
    font-size: 48px;
}

.atc-stat-details {
    display: flex;
    flex-direction: column;
}

.atc-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atc-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #0A1F44;
    margin-top: 5px;
}

/* Dashboard Section */
.atc-dashboard-section {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.atc-section-header-advanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.atc-section-header-advanced h2 {
    margin: 0;
    color: #0A1F44;
    font-size: 24px;
}

/* Booking Cards Grid */
.atc-bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.atc-booking-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.atc-booking-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.atc-booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.atc-booking-service {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atc-service-icon {
    font-size: 24px;
}

.atc-service-name {
    font-weight: 600;
    color: #334155;
}

.atc-booking-card-body h3 {
    margin: 0 0 15px 0;
    color: #0A1F44;
    font-size: 18px;
}

.atc-booking-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.atc-meta-icon {
    font-size: 16px;
}

.atc-booking-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Compact Booking List */
.atc-bookings-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atc-booking-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s;
}

.atc-booking-item-compact:hover {
    background: #f1f5f9;
}

.atc-booking-compact-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.atc-booking-compact-icon {
    font-size: 24px;
}

.atc-booking-compact-info {
    display: flex;
    flex-direction: column;
}

.atc-booking-compact-info strong {
    color: #0A1F44;
    font-size: 15px;
}

.atc-booking-compact-service {
    font-size: 13px;
    color: #64748b;
}

.atc-booking-compact-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Upcoming Trips */
.atc-upcoming-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.atc-upcoming-trip-card {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(30, 58, 95, 0.1);
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
}

.atc-trip-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.atc-trip-month {
    font-size: 12px;
    font-weight: 600;
    color: #0A1F44;
    text-transform: uppercase;
}

.atc-trip-day {
    font-size: 24px;
    font-weight: 700;
    color: #0A1F44;
}

.atc-trip-details h4 {
    margin: 0 0 5px 0;
    color: #0A1F44;
    font-size: 16px;
}

.atc-trip-details p {
    margin: 3px 0;
    color: #334155;
    font-size: 14px;
}

.atc-trip-destination {
    font-weight: 600;
}

/* Filters */
.atc-booking-filters {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.atc-booking-filters form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.atc-booking-filters select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
}

/* Account Menu - Legacy (for backward compatibility) */
.atc-account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atc-account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s;
}

.atc-account-menu a:hover,
.atc-account-menu a.active {
    background: #f1f5f9;
    color: #0A1F44;
}

.atc-menu-icon {
    font-size: 20px;
}

/* Account menu trigger icon styling */
.atc-profile-menu-trigger .atc-menu-icon {
    color: #D4AF37 !important;
    transition: all 0.3s ease !important;
}

.atc-profile-menu-trigger:hover .atc-menu-icon {
    color: #F4D03F !important;
    transform: scale(1.1) !important;
}

.atc-profile-menu-trigger.active .atc-menu-icon {
    color: #F4D03F !important;
}

/* ==================== PREMIUM PROFILE DROPDOWN MENU ==================== */
.atc-account-menu-wrapper {
    position: relative;
    display: inline-block;
    pointer-events: auto;
    z-index: 10000;
}

body.logged-in .atc-account-menu-wrapper,
body.logged-in .atc-profile-menu-login-btn {
    display: none !important;
}

/* Login button style for logged out users - Premium & Highly Visible */
.atc-profile-menu-login-btn {
    background: linear-gradient(135deg, #121a2c 0%, #050b16 100%) !important;
    color: #f5f9ff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 999px !important;
    padding: 6px 18px !important;
    min-height: 36px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.15px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow:
        0 8px 18px rgba(4, 6, 15, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.atc-profile-menu-login-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.atc-profile-menu-login-btn:hover::before {
    opacity: 1;
}

.atc-profile-menu-login-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow:
        0 12px 22px rgba(5, 8, 20, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.atc-profile-menu-login-btn:active {
    transform: translateY(0) !important;
    box-shadow:
        0 5px 12px rgba(4, 6, 15, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.atc-profile-menu-login-btn .atc-profile-name {
    color: #f7fbff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    position: relative !important;
    z-index: 1 !important;
}

.atc-profile-menu-login-btn .atc-menu-icon {
    font-size: 15px !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ec8ff !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    padding: 4px;
    position: relative !important;
    z-index: 1 !important;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease !important;
}

.atc-profile-menu-login-btn:hover .atc-menu-icon {
    transform: scale(1.05) !important;
    color: #ffd367 !important;
    background: rgba(255, 255, 255, 0.16);
}

/* ==================== NAV LOGIN LINK — MATCH ACCOUNT THEME (LOGGED OUT) ==================== */
/* Robust selectors to catch common login menu links; only when NOT logged in */
body:not(.logged-in) .site-header .main-navigation a[href*="login"],
body:not(.logged-in) .ast-header-wrapper .main-navigation a[href*="login"],
body:not(.logged-in) .main-navigation .menu-item-login > a,
body:not(.logged-in) .main-navigation a.atc-login-link {
    background: linear-gradient(135deg, #131c31 0%, #050812 100%) !important;
    color: #f4f8ff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 999px !important;
    padding: 6px 18px !important;
    min-height: 36px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1px !important;
    box-shadow:
        0 8px 20px rgba(4, 6, 15, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

/* Add the right arrow like the screenshot */
body:not(.logged-in) .site-header .main-navigation a[href*="login"]::after,
body:not(.logged-in) .ast-header-wrapper .main-navigation a[href*="login"]::after,
body:not(.logged-in) .main-navigation .menu-item-login > a::after,
body:not(.logged-in) .main-navigation a.atc-login-link::after {
    content: none !important;
}

/* Keep any existing icon and spacing harmonious */
body:not(.logged-in) .main-navigation .menu-item-login > a .atc-menu-icon,
body:not(.logged-in) .main-navigation a.atc-login-link .atc-menu-icon {
    font-size: 18px !important;
    width: 20px !important;
    text-align: center !important;
    color: #9CC5FF !important; /* light bluish icon like screenshot */
    filter: drop-shadow(0 2px 6px rgba(156, 197, 255, 0.35));
}

/* Hover/focus states to match account theme */
body:not(.logged-in) .site-header .main-navigation a[href*="login"]:hover,
body:not(.logged-in) .ast-header-wrapper .main-navigation a[href*="login"]:hover,
body:not(.logged-in) .main-navigation .menu-item-login > a:hover,
body:not(.logged-in) .main-navigation a.atc-login-link:hover {
    background: linear-gradient(135deg, #1b2944 0%, #070d19 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 12px 22px rgba(5, 8, 18, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    color: #f8fbff !important;
}

body:not(.logged-in) .site-header .main-navigation a[href*="login"]:focus,
body:not(.logged-in) .ast-header-wrapper .main-navigation a[href*="login"]:focus,
body:not(.logged-in) .main-navigation .menu-item-login > a:focus,
body:not(.logged-in) .main-navigation a.atc-login-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.35) !important;
    outline-offset: 2px !important;
    color: #fefefe !important;
}

/* Responsive sizing for login link to match account button */
@media (max-width: 1024px) {
    body:not(.logged-in) .site-header .main-navigation a[href*="login"],
    body:not(.logged-in) .ast-header-wrapper .main-navigation a[href*="login"],
    body:not(.logged-in) .main-navigation .menu-item-login > a,
    body:not(.logged-in) .main-navigation a.atc-login-link {
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
}

/* ==================== HEADER LOGIN (ASTRA) - BLUE PILL MATCH ==================== */
/* Apply the same blue pill style to Astra's header account/login link */
.ast-header-account-wrap,
.ast-header-account a,
.ast-header-account .ast-header-account-link {
    background: linear-gradient(135deg, #1E3A5F 0%, #0A1F44 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid #1E3A5F !important;
    border-radius: 9999px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ast-header-account-wrap:hover,
.ast-header-account a:hover,
.ast-header-account .ast-header-account-link:hover {
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.45) !important;
    border-color: #2E4A7F !important;
    color: #FFFFFF !important;
}

.ast-header-account-wrap:focus,
.ast-header-account a:focus,
.ast-header-account .ast-header-account-link:focus {
    outline: 3px solid rgba(30, 58, 95, 0.45) !important;
    outline-offset: 3px !important;
    color: #FFFFFF !important;
}

/* Login Dropdown Modal Styling */
.atc-login-dropdown {
    min-width: 380px !important;
    max-width: 420px !important;
}

.atc-login-dropdown .atc-profile-dropdown-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #0A1F44 100%) !important;
    padding: 24px 20px !important;
}

.atc-login-title {
    margin: 0 0 8px 0 !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.atc-login-subtitle {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.atc-login-form-container {
    padding: 20px !important;
}

.atc-login-form-inline input[type="text"]:focus,
.atc-login-form-inline input[type="password"]:focus {
    outline: none !important;
    border-color: #1E3A5F !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1) !important;
}

.atc-login-form-inline button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.5) !important;
}

.atc-login-form-inline button[type="submit"]:active {
    transform: translateY(0) !important;
}

.atc-profile-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1E3A5F 0%, #0A1F44 100%);
    border: 2px solid #D4AF37;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3), 0 0 0 1px rgba(30, 58, 95, 0.15);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: relative;
    z-index: 10001;
    min-height: 44px;
    width: auto;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 600;
    text-decoration: none;
}

.atc-profile-menu-trigger:hover {
    border-color: #F4D03F;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4), 0 0 0 2px rgba(244, 208, 63, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%);
    color: #FFFFFF !important;
}

.atc-profile-menu-trigger.active {
    border-color: #F4D03F;
    background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4), 0 0 0 2px rgba(244, 208, 63, 0.3);
    color: #FFFFFF !important;
}

.atc-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.atc-profile-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
    z-index: -1;
}

.atc-profile-avatar img,
.atc-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atc-profile-name {
    font-weight: 600;
    color: #FFFFFF !important;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atc-profile-arrow {
    font-size: 12px;
    color: #D4AF37 !important;
    transition: transform 0.3s ease;
    margin-left: auto;
    font-weight: 600;
}

.atc-profile-menu-trigger:hover .atc-profile-arrow {
    color: #F4D03F !important;
}

.atc-profile-menu-trigger.active .atc-profile-arrow {
    transform: rotate(180deg);
    color: #F4D03F !important;
}

/* Dropdown Menu - Premium Design */
/* CRITICAL: Menu z-index (10010) MUST be higher than overlay (9998) */
.atc-profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 300px;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.25), 0 4px 16px rgba(118, 75, 162, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10010;
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
    pointer-events: none;
    max-height: 85vh;
    overflow-y: auto;
    /* CRITICAL: Menu is ABOVE overlay - NO blur will affect it */
    /* CRITICAL: Explicitly disable ALL blur filters on menu */
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: opacity, transform;
}

.atc-profile-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
    z-index: 10010 !important;
    /* Menu is ABOVE overlay (9998) - NO blur affects menu */
    position: absolute;
    /* Ensure menu content is sharp and clear */
    filter: none !important;
    -webkit-filter: none !important;
}

/* Menu items - MUST be above overlay, always clickable */
.atc-profile-menu-item {
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 10011 !important;
    display: block;
    text-decoration: none;
    touch-action: manipulation;
    /* CRITICAL: Menu items are ABOVE overlay - NO blur */
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.atc-profile-menu-item:active {
    opacity: 0.8;
    background: #f1f5f9;
}

.atc-profile-menu-item:hover {
    background: #f8fafc;
}

.atc-profile-dropdown-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #1E3A5F 0%, #0A1F44 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.atc-profile-dropdown-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.atc-profile-dropdown-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.atc-profile-dropdown-avatar img,
.atc-profile-dropdown-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atc-profile-dropdown-info {
    flex: 1;
    min-width: 0;
}

.atc-profile-dropdown-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atc-profile-dropdown-email {
    font-size: 13px;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atc-profile-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.atc-profile-dropdown-menu {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atc-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #1E3A5F;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.atc-profile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #1E3A5F 0%, #0A1F44 100%);
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.atc-profile-menu-item:hover {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(10, 31, 68, 0.08) 100%);
    color: #1E3A5F;
    transform: translateX(4px);
    padding-left: 20px;
}

.atc-profile-menu-item:hover::before {
    transform: scaleY(1);
}

.atc-profile-menu-item.active {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.15) 0%, rgba(10, 31, 68, 0.15) 100%);
    color: #1E3A5F;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
    padding-left: 20px;
}

.atc-profile-menu-item.active::before {
    transform: scaleY(1);
}

.atc-profile-menu-item.active .atc-menu-icon {
    transform: scale(1.1);
}

.atc-profile-menu-item .atc-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: all 0.2s;
    color: #1E3A5F;
}

.atc-profile-menu-item:hover .atc-menu-icon,
.atc-profile-menu-item.active .atc-menu-icon {
    color: #1E3A5F;
    transform: scale(1.1);
}

.atc-profile-menu-item .atc-menu-text {
    flex: 1;
}

.atc-profile-menu-logout {
    color: #ef4444;
}

.atc-profile-menu-logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Background Overlay - Blur effect ONLY on background, NOT on menu */
/* CRITICAL: Overlay MUST be below menu in z-index to prevent blur affecting menu */
.atc-profile-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: transparent;
    display: none !important; /* CRITICAL: Ensure overlay is completely hidden when inactive */
    visibility: hidden !important;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none !important; /* CRITICAL: Ensure overlay never blocks touches when inactive */
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Overlay is BELOW menu, so blur only affects page behind it */
    /* CRITICAL: When inactive, overlay must not interfere with any touches */
    touch-action: none;
    -webkit-touch-callout: none;
}

.atc-profile-dropdown-overlay.active {
    display: block !important;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    background: rgba(102, 126, 234, 0.04);
    /* Blur ONLY affects page content BEHIND overlay */
    /* Menu has z-index 10005, so it's ABOVE overlay and NOT blurred */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998 !important;
}

/* Prevent body scroll when menu is open on mobile */
body.atc-profile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==================== PROFILE MENU RESPONSIVE ==================== */
@media (max-width: 768px) {
    .atc-account-menu-wrapper {
        position: relative;
        pointer-events: auto !important;
        z-index: 10000;
    }
    
    /* CRITICAL: Only enable pointer events on specific elements, not all children */
    /* This prevents interference with touch events */
    .atc-account-menu-wrapper {
        pointer-events: auto !important;
    }
    
    .atc-profile-menu-trigger,
    .atc-profile-dropdown,
    .atc-profile-dropdown * {
        pointer-events: auto !important;
    }
    
    /* CRITICAL: Overlay when INACTIVE must not block anything */
    .atc-profile-dropdown-overlay:not(.active) {
        pointer-events: none !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -1 !important;
    }
    
    /* Base dropdown styles for mobile */
    .atc-profile-dropdown {
        right: 10px;
        left: auto;
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }
    
    /* Mobile dropdown - FIXED at bottom, MUST be above overlay */
    .atc-profile-dropdown.active {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        min-width: auto !important;
        width: auto !important;
        z-index: 99999 !important; /* CRITICAL: Very high z-index to ensure it's on top */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
        transform: translateY(0) scale(1) !important;
        /* CRITICAL: Menu is ABOVE overlay (9998) - NO blur on menu */
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        /* Ensure it's always visible on mobile */
        -webkit-transform: translateY(0) scale(1) !important;
        -moz-transform: translateY(0) scale(1) !important;
        -ms-transform: translateY(0) scale(1) !important;
        -o-transform: translateY(0) scale(1) !important;
    }
    
    /* Menu items - always above overlay and clickable */
    .atc-profile-menu-item {
        z-index: 10011 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Overlay MUST be BELOW menu on mobile too */
    .atc-profile-dropdown-overlay.active {
        z-index: 9998 !important;
    }
    
    .atc-profile-menu-trigger {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 40px;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3) !important;
        z-index: 10012 !important;
        cursor: pointer !important;
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        /* CRITICAL: Ensure trigger is always clickable on mobile */
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-touch-callout: none !important;
        /* Prevent iOS Safari from blocking touches */
        -webkit-appearance: none !important;
        appearance: none !important;
        /* CRITICAL: Ensure button receives touch events */
        position: relative !important;
        will-change: transform;
        /* Prevent any parent from blocking touches */
        -webkit-touch-callout: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Make icon smaller on mobile */
    .atc-profile-menu-trigger .atc-menu-icon {
        font-size: 16px !important;
        width: 18px !important;
    }
    
    .atc-profile-menu-trigger .atc-profile-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .atc-profile-menu-trigger .atc-profile-name {
        font-size: 11px !important;
        max-width: 80px !important;
    }
    
    .atc-profile-menu-trigger .atc-profile-arrow {
        font-size: 8px !important;
    }
    
    .atc-profile-menu-trigger:active,
    .atc-profile-menu-trigger.touching {
        transform: scale(0.97);
        background: linear-gradient(135deg, #0A1F44 0%, #1E3A5F 100%);
        border-color: #F4D03F;
        color: #FFFFFF !important;
    }
    
    .atc-profile-menu-trigger:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Login button style for logged out users - Highly Visible */
    .atc-profile-menu-login-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .atc-profile-menu-login-btn .atc-menu-icon {
        font-size: 16px !important;
        width: 18px !important;
    }
    
    .atc-profile-menu-login-btn .atc-profile-name {
        font-size: 13px !important;
        max-width: 90px !important;
        color: #FFFFFF !important;
    }

    /* Astra header login sizing on tablet/mobile */
    .ast-header-account-wrap,
    .ast-header-account a,
    .ast-header-account .ast-header-account-link {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    
    .atc-profile-name {
        max-width: 100px;
        font-size: 12px;
    }
    
    .atc-profile-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    /* Login button icon smaller on mobile */
    .atc-profile-menu-login-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .atc-profile-menu-login-btn .atc-menu-icon {
        font-size: 16px !important;
        width: 18px !important;
    }
    
    .atc-profile-menu-login-btn .atc-profile-name {
        font-size: 13px !important;
        max-width: 90px !important;
        color: #FFFFFF !important;
    }
    
    
    /* Ensure avatar is clickable on mobile */
    .atc-profile-avatar img {
        pointer-events: none;
    }
    
    .atc-profile-arrow {
        font-size: 9px;
    }
    
    /* Overlay on mobile - must be below menu */
    .atc-profile-dropdown-overlay.active {
        z-index: 99998 !important; /* Below menu but above everything else */
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        display: block !important;
        pointer-events: auto !important;
    }
}


@media (max-width: 480px) {
    .atc-profile-dropdown {
        right: 10px;
        left: 10px;
        min-width: auto;
        width: calc(100% - 20px);
        max-width: 320px;
    }
    
    .atc-profile-name {
        max-width: 80px;
        font-size: 11px;
    }
    
    .atc-profile-menu-trigger {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 38px; /* Smaller but still touch-friendly */
    }
    
    .atc-profile-avatar {
        width: 28px;
        height: 28px;
    }
    
    .atc-profile-menu-trigger .atc-menu-icon {
        font-size: 14px !important;
        width: 16px !important;
    }
    
    .atc-profile-menu-login-btn .atc-menu-icon {
        font-size: 16px !important;
        width: 18px !important;
    }
    
    .atc-profile-menu-login-btn .atc-profile-name {
        font-size: 11px !important;
        max-width: 70px !important;
    }
    
    /* Hide name on very small screens, show only icon */
    @media (max-width: 360px) {
        .atc-profile-name {
            display: none;
        }
        
        .atc-profile-menu-trigger {
            padding: 6px 8px;
            min-width: 38px;
        }
        
        .atc-profile-menu-trigger .atc-menu-icon {
            font-size: 16px !important;
            width: 18px !important;
        }
        
        .atc-profile-avatar {
            width: 26px;
            height: 26px;
        }
    }
}

/* ==================== GENERAL RESPONSIVE ==================== */
@media (max-width: 768px) {
    .atc-premium-auth-form {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    .atc-auth-form {
        padding: 30px 20px;
    }
    
    .atc-form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .atc-dashboard-header {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .atc-dashboard-header-advanced {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .atc-dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .atc-dashboard-actions .atc-btn {
        width: 100%;
        text-align: center;
    }
    
    .atc-user-welcome {
        flex-direction: column;
        text-align: center;
    }
    
    .atc-dashboard-quick-actions {
        width: 100%;
    }
    
    .atc-dashboard-quick-actions .atc-btn {
        width: 100%;
        text-align: center;
    }
    
    .atc-dashboard-stats,
    .atc-dashboard-stats-advanced {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .atc-bookings-grid,
    .atc-upcoming-trips-grid {
        grid-template-columns: 1fr;
    }
    
    .atc-booking-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .atc-booking-filters select {
        width: 100%;
    }
    
    .atc-booking-card-footer {
        flex-direction: column;
    }
    
    .atc-booking-card-footer .atc-btn {
        width: 100%;
    }
    
    .atc-bookings-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .atc-bookings-table {
        min-width: 600px;
        font-size: 14px;
    }
    
    .atc-bookings-table th,
    .atc-bookings-table td {
        padding: 10px 8px;
    }
    
    .atc-booking-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .atc-booking-actions .atc-btn {
        width: 100%;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .atc-dashboard-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .atc-dashboard-tabs .atc-tab {
        flex: 1 1 auto;
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .atc-dashboard-section {
        padding: 20px 15px;
    }
    
    .atc-section-header-advanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .atc-stat-card-advanced {
        padding: 20px;
    }
    
    .atc-stat-icon-advanced {
        font-size: 36px;
    }
    
    .atc-stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .atc-premium-auth-form {
        padding: 25px 15px;
        margin: 20px auto;
    }
    
    .atc-dashboard-header,
    .atc-dashboard-header-advanced {
        padding: 20px 15px;
    }
    
    .atc-dashboard-stats,
    .atc-dashboard-stats-advanced {
        gap: 10px;
    }
    
    .atc-stat-card,
    .atc-stat-card-advanced {
        padding: 15px;
    }
    
    .atc-bookings-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .atc-bookings-table th,
    .atc-bookings-table td {
        padding: 8px 5px;
    }
}