:root {
    --bg-color: #050505;
    --panel-bg: rgba(15, 15, 20, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --primary: #7500ff;
    --primary-hover: #8f33ff;
    --primary-dark: #5e00cc;
    --secondary: #b000ff;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --success: #10B981;
    --error: #EF4444;
    --font-stack: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if content is tall */
    padding: 40px 0; /* Add padding for scroll room */
    position: relative;
}

/* Brand Logo Styling */
.brand-logo-container {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
}

.brand-logo {
    height: 40px; /* Adjust height as needed */
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .brand-logo-container {
        top: 15px;
        right: 15px;
    }
    .brand-logo {
        height: 30px;
    }
}

/* Footer Styling */
.app-footer {
    position: fixed;
    bottom: 20px;
    left: 30px;
    z-index: 100;
    pointer-events: none;
}

.app-footer p {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .app-footer {
        bottom: 10px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }
    .app-footer p {
        font-size: 10px;
    }
}

/* Background Gradients */
.glow-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-circle.primary {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-circle.secondary {
    bottom: -15%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Main Container */
.glass-panel {
    position: relative;
    z-index: 10;
    background: var(--panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 20px 25px; /* Compact padding */
    width: 90%;
    max-width: 600px; /* Smaller width */
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 30px 60px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
}

header {
    text-align: center;
    margin-bottom: 15px; /* Reduced margin */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px; /* Smaller logo font */
    color: var(--text-main);
    margin-bottom: 2px;
}

.logo i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(117, 0, 255, 0.4));
}

.subtitle {
    color: var(--text-muted);
    font-size: 12px; /* Smaller subtitle */
    font-weight: 300;
}

/* State management */
.state-container {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.state-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Initial State */
.input-group {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(117, 0, 255, 0.15);
}

.input-wrapper select option {
    background: #1a1b2e;
    color: white;
}

/* Custom Select Dropdown Styling */
.custom-dropdown-wrapper {
    position: relative;
}

.custom-select-display {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 44px;
}

.custom-select-display.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-select-display:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(117, 0, 255, 0.15);
    outline: none;
}

.custom-select-display .chevron {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-select-display.open .chevron {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #1a1b2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-select-options.open {
    display: flex;
}

.custom-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(117, 0, 255, 0.2);
}

.custom-option-title {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.custom-option-subtitle {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 3px;
    letter-spacing: 0.2px;
}

.custom-select-text-multiline {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.custom-select-text-multiline .title {
    font-weight: 500;
    font-size: 14px;
}

.custom-select-text-multiline .subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.input-group .hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #ffffff; /* White text on purple looks premium */
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(117, 0, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(117, 0, 255, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary));
}

.primary-btn:active {
    transform: translateY(1px);
}

/* Switch Account Button */
.switch-auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.switch-auth-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(117, 0, 255, 0.06);
}

.switch-auth-btn.auth-loading {
    pointer-events: none;
    opacity: 0.7;
}

.switch-auth-btn .auth-toast {
    color: var(--success);
    font-size: 12px;
    margin-left: 4px;
}

/* Progress State */
.loader-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#status-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.status-item.active {
    color: white;
    background: rgba(117, 0, 255, 0.1);
    border-left: 3px solid var(--primary);
}

.status-item.completed {
    color: var(--success);
}

.status-item i {
    width: 16px;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-text {
    font-weight: 500;
}

/* Success State */
.success-icon {
    font-size: 48px;
    color: var(--success);
    text-align: center;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#success-state h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.text-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-btn:hover {
    color: white;
    text-decoration: underline;
}

/* Auth Box Styling */
.auth-box {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.auth-icon {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 5px;
    filter: drop-shadow(0 0 15px rgba(117, 0, 255, 0.3));
}

.auth-box h2 {
    font-size: 22px;
    font-weight: 600;
}

.auth-box p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 280px;
    margin-bottom: 10px;
}

#login-btn-container {
    min-height: 40px;
    display: flex;
    justify-content: center;
}

/* New Form Header */
.header-compact {
    text-align: center;
    margin-bottom: 2rem;
}

.header-compact h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.header-compact p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-icon-small {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(117, 0, 255, 0.3));
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* Multi-Stream Selector Styles */
.multi-select-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    max-height: 200px; /* Reduced to fit UI better */
    overflow-y: auto;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stream-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.stream-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.stream-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stream-item input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.stream-item input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stream-info {
    display: flex;
    flex-direction: column;
}

.stream-name {
    font-weight: 500;
    color: #f8fafc;
}

.stream-type {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.helper-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
    font-style: italic;
}

.app-footer {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    pointer-events: none;
}

.app-footer p {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

/* Premium Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(15, 15, 15, 0.9);
    width: 95%;
    max-width: 650px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
}

.scorecard-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.overall-results-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.detailed-results-compact {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s;
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0;
}

.detailed-results-compact.active {
    max-height: 1000px;
    opacity: 1;
    padding-top: 1.5rem;
}

.category-container-compact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.category-item-compact {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 12px;
}

.cat-header {
    font-size: 0.9rem;
    color: #b388ff;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Smaller Circle Progress */
.progress-circle-small {
    position: relative;
    width: 75px; /* Reduced from 100px */
    height: 75px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--progress) * 1%), #222 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: --progress 1s ease-in-out;
}

.progress-circle-small::before {
    content: '';
    position: absolute;
    width: 63px;
    height: 63px;
    background: #0d0d0d;
    border-radius: 50%;
}

.progress-value-small {
    position: relative;
    font-size: 0.9rem;
    font-weight: 700;
}

.stream-label-small {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.modal-footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-link-btn {
    background: none;
    border: none;
    color: #b388ff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: opacity 0.2s;
}

.text-link-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.primary-btn-small {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* Compact Score Table */
.score-table-compact {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.score-table-compact th, 
.score-table-compact td {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.score-table-compact th {
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.score-table-compact td {
    color: #f1f5f9;
}

.score-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(179, 136, 255, 0.1);
    color: #b388ff;
}

.score-badge.perfect {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

/* Branding Modal Specific Customizations */
.branding-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Upgrade Tier Styling */
.upgrade-tier {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.upgrade-tier:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(117, 0, 255, 0.3);
    box-shadow: 0 4px 20px rgba(117, 0, 255, 0.1);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tier-icon {
    font-size: 20px;
}

.tier-header h3 {
    font-size: 18px;
    color: white;
    margin: 0;
}

.tier-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-features li {
    font-size: 13.5px;
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.tier-features li i {
    margin-top: 3px;
}

.branding-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider:not(:empty)::before {
    margin-right: 1rem;
}

.divider:not(:empty)::after {
    margin-left: 1rem;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(117, 0, 255, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-area p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.full-width {
    width: 100%;
}

.modal-footer {
    margin-top: 2rem;
}

/* --- NEW BASIC AUDIT SCORECARD (OPTION 2) --- */
.basic-score-modal {
    padding: 24px;
    background: #0d0e15; /* Dark bluish black */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    max-width: 560px;
    max-height: none;
    font-family: 'Outfit', sans-serif;
}

.modal-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title i {
    font-size: 20px;
}

.text-purple {
    color: #a855f7;
}

.header-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #f8fafc;
}

/* Half Circle Arc */
.score-arc-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.score-arc {
    position: relative;
    width: 220px;
    height: 110px;
    margin-bottom: 16px;
}

.half-circle-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.arc-bg {
    stroke: #1e2030;
}

.arc-fill {
    stroke: url(#arcGradient);
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-arc-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-percent {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e; /* Default green */
}

.score-subtitle {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    padding: 0 16px;
}

/* Breakdown List */
.breakdown-container {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    margin-bottom: 24px;
}

.breakdown-title {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.breakdown-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.breakdown-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.breakdown-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.breakdown-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flex-row-between {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #f8fafc;
}

.breakdown-score {
    font-weight: 600;
}

.green-text { color: #22c55e; }
.orange-text { color: #f97316; }

.breakdown-track {
    width: 100%;
    height: 6px;
    background: #1e2030;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.green-fill { background: #22c55e; }
.orange-fill { background: #f97316; }

.disabled-item {
    opacity: 0.8;
}

.disabled-title {
    font-size: 13px;
    color: #cbd5e1;
}

.advanced-badge {
    font-size: 11px;
    font-weight: 500;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Info Box */
.info-box-premium {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-box-premium i {
    color: #94a3b8;
    font-size: 16px;
    margin-top: 2px;
}

.info-box-premium p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Dual Footer Buttons */
.modal-footer-dual {
    display: flex;
    gap: 12px;
}

.modal-footer-dual button {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.secondary-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.purple-btn {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.purple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Custom Select Dropdown */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 14px 8px 42px;
    min-height: 44px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.custom-select-trigger:focus, .custom-select-trigger.open {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(117, 0, 255, 0.15);
}

.custom-select-trigger.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-select-trigger .icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.custom-select-trigger .caret {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.selected-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.main-text {
    font-size: 14px;
}

.sub-text {
    font-size: 11px;
    color: var(--text-muted);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #1a1b2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.custom-select-dropdown.open {
    display: block;
}

.custom-option {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-option .opt-main {
    font-size: 14px;
    color: white;
}

.custom-option .opt-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
