/* Qudraw Authentication Design System (Dark & Light Mode) */

.nav-auth-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-nav-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    background: rgba(255, 82, 0, 0.12);
    border: 1px solid rgba(255, 82, 0, 0.35);
    color: #ff6b21;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav-signin:hover {
    background: rgba(255, 82, 0, 0.22);
    border-color: #ff5200;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 82, 0, 0.25);
}

.user-profile-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.user-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 12px 0 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-profile-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 82, 0, 0.4);
    transform: translateY(-1px);
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ff5200;
}

.user-display-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f3f4f6;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #14100e;
    border: 1px solid rgba(255, 82, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    padding: 12px;
    z-index: 10001;
    display: none;
    animation: authDropFade 0.2s ease-out;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-user-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-user-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
}

.dropdown-user-email {
    font-size: 0.75rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e5e7eb;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 82, 0, 0.15);
    color: #ff6b21;
}

.dropdown-item.logout {
    color: #f87171;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 6px;
    padding-top: 10px;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Modal Styles */
.qudraw-auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.qudraw-auth-modal-card {
    background: #120e0c;
    border: 1px solid rgba(255, 82, 0, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 82, 0, 0.15);
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    max-height: min(90vh, 780px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 28px 24px;
    color: #f3f4f6;
    animation: authModalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: auto;
}

.auth-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
}

.auth-modal-close-btn:hover {
    color: #ffffff;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.auth-modal-header p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: #ff5200;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 82, 0, 0.4);
}

.google-auth-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    min-height: 44px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 10px;
}

.auth-input-group {
    margin-bottom: 14px;
    text-align: left;
}

.auth-input-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d1d5db;
    margin-bottom: 6px;
}

.auth-input-control {
    width: 100%;
    background: #0b0908;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.auth-input-control:focus {
    border-color: #ff5200;
    box-shadow: 0 0 10px rgba(255, 82, 0, 0.25);
}

.btn-auth-submit {
    width: 100%;
    background: linear-gradient(90deg, #cc4200, #ff5200);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 82, 0, 0.35);
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 82, 0, 0.5);
}

.btn-demo-quick-login {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    border: 1px dashed rgba(255, 82, 0, 0.4);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.btn-demo-quick-login:hover {
    background: rgba(255, 82, 0, 0.1);
    color: #ff6b21;
}

.auth-feedback-msg {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.auth-feedback-msg.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.auth-feedback-msg.success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    display: block;
}

/* Light mode overrides */
body.light-mode .qudraw-auth-modal-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
body.light-mode .auth-modal-header h3 {
    color: #0f172a;
}
body.light-mode .auth-modal-header p {
    color: #64748b;
}
body.light-mode .auth-tabs {
    background: #f1f5f9;
}
body.light-mode .auth-tab-btn {
    color: #64748b;
}
body.light-mode .auth-input-group label {
    color: #334155;
}
body.light-mode .auth-input-control {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-mode .user-dropdown-menu {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
body.light-mode .dropdown-user-name {
    color: #0f172a;
}
body.light-mode .dropdown-item {
    color: #334155;
}
body.light-mode .user-display-name {
    color: #0f172a;
}
body.light-mode .user-profile-pill {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body.light-mode select.auth-input-control {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

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

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

/* Security Protection Toast & Screenshot Shield */
.qudraw-security-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 12, 9, 0.96);
    border: 1px solid rgba(255, 82, 0, 0.5);
    color: #f3f4f6;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    z-index: 100005;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    animation: toastFadeIn 0.25s ease-out;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.screenshot-shield-blur {
    filter: blur(20px) !important;
    transition: filter 0.05s ease;
}

/* CAD Dataset Donation Dropzone & Modal Styling */
.cad-upload-dropzone {
    border: 2px dashed rgba(255, 82, 0, 0.35);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    background: rgba(255, 82, 0, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 14px;
}

.cad-upload-dropzone:hover, .cad-upload-dropzone.dragover {
    border-color: #ff5200;
    background: rgba(255, 82, 0, 0.08);
    transform: scale(1.01);
}

.cad-files-preview-list {
    max-height: 180px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.cad-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
}

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

.cad-file-name {
    font-family: 'JetBrains Mono', monospace;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.cad-file-size {
    color: #9ca3af;
    font-size: 0.7rem;
    white-space: nowrap;
}

.btn-cad-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-cad-select:hover {
    background: rgba(255, 82, 0, 0.15);
    border-color: rgba(255, 82, 0, 0.4);
    color: #ffffff;
}

/* =========================================================================
 * NAVIGATION AUTH WRAPPER & PROMINENT DONATE / LIMITS PILLS
 * ========================================================================= */
.nav-auth-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-nav-donate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav-donate:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-donate-count-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.2;
}

.btn-nav-quota {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav-quota:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 82, 0, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-workspace-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255,82,0,0.18), rgba(255,107,33,0.12));
    border: 1px solid rgba(255,82,0,0.45);
    color: #ff6b21;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-workspace-upgrade:hover {
    background: linear-gradient(135deg, #ff5200, #ff7a3d);
    border-color: #ff5200;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 82, 0, 0.35);
}

/* =========================================================================
 * ENHANCED DROPDOWN QUOTA CARD & LIMITS PROGRESS
 * ========================================================================= */
.user-dropdown-menu {
    width: 310px !important;
}

.dropdown-quota-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quota-line-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quota-line-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
}

.quota-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.quota-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.quota-hint-box {
    font-size: 0.7rem;
    color: #9ca3af;
    background: rgba(255, 82, 0, 0.06);
    border-left: 2px solid #ff5200;
    padding: 5px 8px;
    border-radius: 4px;
    line-height: 1.35;
    margin-top: 2px;
}

/* =========================================================================
 * LIMITS OVERVIEW MODAL STYLES
 * ========================================================================= */
.qudraw-limits-modal-card {
    max-width: 620px !important;
    width: 100%;
    max-height: min(88vh, 780px);
    overflow-y: auto;
    scrollbar-width: thin;
    text-align: left;
    margin: auto;
}

.limits-upgrade-banner {
    background: linear-gradient(135deg, rgba(255,82,0,0.12) 0%, rgba(255,107,33,0.06) 100%);
    border: 1px solid rgba(255,82,0,0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.upgrade-banner-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
}

.upgrade-banner-desc {
    font-size: 0.74rem;
    color: #9ca3af;
}

.limits-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.limit-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.limit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.limit-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.limit-card-stat {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.limit-card-desc {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.35;
}

.saved-projects-quota-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 82, 0, 0.06);
    border: 1px solid rgba(255, 82, 0, 0.22);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.dataset-contrib-banner {
    background: rgba(255, 82, 0, 0.05);
    border: 1px solid rgba(255, 82, 0, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.78rem;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================================
 * APPLIED COUPONS & ACCESS CODES STYLES
 * ========================================================================= */
.applied-coupons-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.applied-coupons-title {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}

.applied-coupons-subtitle {
    font-size: 0.72rem;
    color: #9ca3af;
}

.applied-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.applied-coupon-item {
    background: rgba(18, 14, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.applied-coupon-item:hover {
    border-color: rgba(255, 82, 0, 0.35);
    background: rgba(255, 82, 0, 0.04);
}

.coupon-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    flex: 1;
}

.coupon-code-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.coupon-label-text {
    font-size: 0.76rem;
    font-weight: 600;
    color: #f3f4f6;
}

.coupon-benefits-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.coupon-benefit-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coupon-benefit-tag.pro {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.coupon-benefit-tag.base {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.35);
}

.coupon-benefit-tag.download {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

.coupon-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 140px;
    text-align: right;
}

.coupon-status-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.coupon-status-tag.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.coupon-status-tag.lifetime {
    background: rgba(139, 92, 246, 0.18);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.coupon-status-tag.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.coupon-applied-date {
    font-size: 0.68rem;
    color: #9ca3af;
}

.empty-coupons-box {
    text-align: center;
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #9ca3af;
}

/* =========================================================================
 * LIGHT MODE OVERRIDES FOR DONATE & LIMITS ELEMENTS
 * ========================================================================= */
body.light-mode .btn-nav-donate {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}

body.light-mode .btn-nav-donate:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
    color: #1e40af;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}

body.light-mode .btn-nav-quota {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

body.light-mode .btn-nav-quota:hover {
    background: #e2e8f0;
    border-color: #ff5200;
    color: #0f172a;
}

body.light-mode .btn-workspace-upgrade {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}

body.light-mode .btn-workspace-upgrade:hover {
    background: #ffedd5;
    border-color: #ff5200;
    color: #c2410c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

body.light-mode .dropdown-quota-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-mode .quota-progress-track {
    background: #e2e8f0;
}

body.light-mode .quota-hint-box {
    background: #fff7ed;
    color: #9a3412;
    border-left-color: #ea580c;
}

body.light-mode .qudraw-limits-modal-card {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

body.light-mode .limits-upgrade-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: #fed7aa !important;
}

body.light-mode .upgrade-banner-title {
    color: #9a3412 !important;
}

body.light-mode .upgrade-banner-desc {
    color: #7c2d12 !important;
}

body.light-mode .limit-info-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-mode .limit-card-title {
    color: #0f172a;
}

body.light-mode .limit-card-desc {
    color: #475569;
}

body.light-mode .saved-projects-quota-banner {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #7c2d12;
}

body.light-mode .applied-coupons-section-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-mode .applied-coupons-title {
    color: #0f172a !important;
}

body.light-mode .applied-coupons-subtitle {
    color: #64748b !important;
}

body.light-mode .applied-coupon-item {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-mode .coupon-label-text {
    color: #0f172a;
}

body.light-mode .coupon-applied-date {
    color: #64748b;
}

body.light-mode .coupon-benefit-tag {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

body.light-mode .coupon-benefit-tag.pro {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

body.light-mode .coupon-benefit-tag.base {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

body.light-mode .coupon-benefit-tag.download {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

body.light-mode .empty-coupons-box {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

body.light-mode .dataset-contrib-banner {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

body.light-mode .dataset-contrib-banner strong {
    color: #0f172a !important;
}

body.light-mode .dataset-contrib-banner div {
    color: #475569 !important;
}


/* ==========================================================================
   BETA ACCESS ONBOARDING & PROCESSING MODAL STYLING
   ========================================================================== */
.beta-region-toggle-wrap {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
}

.beta-region-tab {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid transparent;
}

.beta-region-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.beta-region-tab.active {
    background: linear-gradient(135deg, #ff5200 0%, #ea580c 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(255, 82, 0, 0.35);
}

.beta-processing-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.beta-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.beta-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 rgba(251, 191, 36, 0.7);
    animation: betaPulse 2s infinite;
}

@keyframes betaPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.beta-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}

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

.beta-summary-label {
    color: #94a3b8;
    font-weight: 600;
}

.beta-summary-val {
    color: #f1f5f9;
    font-weight: 700;
}

/* ==========================================================================
   ADMIN BETA APPROVAL TOGGLE SWITCH
   ========================================================================= */
.beta-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.beta-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.beta-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: all 0.28s ease;
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.beta-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2.5px;
    background-color: #ffffff;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.beta-toggle-switch input:checked + .beta-toggle-slider {
    background-color: #10b981;
    border-color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

.beta-toggle-switch input:checked + .beta-toggle-slider:before {
    transform: translateX(21px);
    background-color: #ffffff;
}

body.light-mode .beta-region-toggle-wrap {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.light-mode .beta-region-tab {
    color: #64748b !important;
}

body.light-mode .beta-processing-card {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}

body.light-mode .beta-summary-row {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .beta-summary-label {
    color: #64748b !important;
}

body.light-mode .beta-summary-val {
    color: #0f172a !important;
}
