/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LUVLANG.STUDIO — Sony-Sharp Studio Theme
   Pure black. Gold wire. Zero decoration.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── CHASSIS ── */
body {
    background: #000;
}

.main-container {
    border: 1px solid rgba(255,255,255,.06);
}

.left-sidebar,
.center-main,
.right-sidebar {
    background: #050508;
    border: 1px solid rgba(255,255,255,.06);
    position: relative;
}

/* ── SCREENS ── */
.eq-graph-container,
.waveform-container,
.meters-panel {
    background: #000;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
    padding: 15px;
    position: relative;
}

.eq-graph-container::before,
.waveform-container::before,
.meters-panel::before {
    display: none;
}

.meter-value,
.eq-graph-canvas,
.waveform-canvas {
    filter: none;
}

.eq-graph-container {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,.02) 19px, rgba(255,255,255,.02) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,.02) 19px, rgba(255,255,255,.02) 20px);
}

/* ── CONTROLS ── */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    height: 4px;
}

input[type="range"]::-webkit-slider-track {
    background: rgba(255,255,255,.06);
    height: 4px;
    border-radius: 2px;
    border: none;
    box-shadow: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4a94e;
    border: 2px solid #000;
    box-shadow: 0 0 8px rgba(212,169,78,.3);
    cursor: pointer;
    transition: all .15s;
}

input[type="range"]:active::-webkit-slider-thumb,
input[type="range"]:hover::-webkit-slider-thumb {
    background: #f0cc6b;
    box-shadow: 0 0 14px rgba(212,169,78,.5);
}

input[type="range"]:active::-webkit-slider-track {
    box-shadow: none;
}

/* ── TYPOGRAPHY ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

.section-title,
.meter-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,.35);
    text-shadow: none;
    transition: color .2s;
}

.section-title.active,
.meter-label.active {
    color: rgba(255,255,255,.7);
    text-shadow: none;
}

.meter-value {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #d4a94e;
    text-shadow: none;
    font-size: 1.1rem;
}

/* ── BUTTONS ── */
.action-btn,
.action-btn-primary,
.action-btn-secondary,
.selector-btn {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all .2s;
    transform: none;
    box-shadow: none;
    border-radius: 6px;
}

.action-btn-primary,
.action-btn-secondary {
    background: rgba(212,169,78,.12);
    border: 1px solid rgba(212,169,78,.2);
    color: #d4a94e;
    box-shadow: none;
}

.action-btn-primary:hover:not(:disabled),
.action-btn-secondary:hover:not(:disabled) {
    background: rgba(212,169,78,.18);
    border-color: rgba(212,169,78,.35);
    box-shadow: 0 0 20px rgba(212,169,78,.1);
}

.action-btn-primary:active:not(:disabled),
.action-btn-secondary:active:not(:disabled) {
    transform: none;
    background: rgba(212,169,78,.25);
    box-shadow: none;
}

.selector-btn {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
}

.selector-btn:hover {
    border-color: rgba(212,169,78,.2);
    background: rgba(212,169,78,.06);
    box-shadow: none;
}

.selector-btn.active {
    border-color: rgba(212,169,78,.3);
    background: rgba(212,169,78,.1);
    box-shadow: 0 0 10px rgba(212,169,78,.15), inset 0 0 6px rgba(212,169,78,.05);
    color: #d4a94e;
}

.action-btn {
    background: rgba(212,169,78,.08);
    border: 1px solid rgba(212,169,78,.15);
    color: rgba(255,255,255,.6);
    box-shadow: none;
}

.action-btn:hover {
    background: rgba(212,169,78,.14);
    border-color: rgba(212,169,78,.25);
    box-shadow: none;
}

.action-btn:active {
    transform: none;
    box-shadow: none;
}

#abCompareBtn {
    background: rgba(212,169,78,.1) !important;
    border: 1px solid rgba(212,169,78,.2) !important;
    color: #d4a94e !important;
    box-shadow: none !important;
}

#abCompareBtn:hover:not(:disabled) {
    background: rgba(212,169,78,.16) !important;
    box-shadow: none !important;
}

#abCompareBtn:active:not(:disabled) {
    transform: none;
    box-shadow: none !important;
}

#autoMasterBtn,
#exportBtn {
    background: #d4a94e;
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: none;
    transition: all .2s;
}

#autoMasterBtn:hover,
#exportBtn:hover {
    background: #f0cc6b;
    box-shadow: 0 0 30px rgba(212,169,78,.2);
}

#autoMasterBtn:active,
#exportBtn:active {
    transform: none;
    background: #b8922e;
    box-shadow: none;
}

#loadReferenceBtn,
#applyReferenceBtn,
#resetBtn { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; border: none !important; }
#_deprecated_resetBtn,
#loudnessMatchBtn,
#savePresetBtn,
#loadPresetBtn {
    background: rgba(212,169,78,.1) !important;
    border: 1px solid rgba(212,169,78,.18) !important;
    color: rgba(255,255,255,.6) !important;
    box-shadow: none !important;
}

#loadReferenceBtn:hover:not(:disabled),
#applyReferenceBtn:hover:not(:disabled),
#resetBtn:hover:not(:disabled),
#loudnessMatchBtn:hover:not(:disabled),
#savePresetBtn:hover:not(:disabled),
#loadPresetBtn:hover:not(:disabled) {
    background: rgba(212,169,78,.16) !important;
    border-color: rgba(212,169,78,.28) !important;
    box-shadow: none !important;
}

#loadReferenceBtn:active:not(:disabled),
#applyReferenceBtn:active:not(:disabled),
#resetBtn:active:not(:disabled),
#loudnessMatchBtn:active:not(:disabled),
#savePresetBtn:active:not(:disabled),
#loadPresetBtn:active:not(:disabled) {
    transform: none;
    box-shadow: none !important;
}

/* ── EQ HANDLES ── */
.eq-handle,
.eq-control-point {
    background: #d4a94e;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(212,169,78,.4);
}

.eq-handle::after,
.eq-control-point::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(212,169,78,.2);
    border-radius: 50%;
    box-shadow: none;
}

/* ── PANELS ── */
.control-group,
.selector-group,
.meter-section {
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
    background: rgba(255,255,255,.02);
    box-shadow: none;
}

/* ── POWER INDICATOR ── */
.power-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4a94e;
    box-shadow: 0 0 6px rgba(212,169,78,.5);
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: none;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212,169,78,.3);
}

/* ── TIERS ── */
.tier-selector-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
    background: #050508;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    gap: 20px;
}

.tier-selector-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.35);
    font-weight: 600;
}

.tier-selector-switch {
    display: flex;
    gap: 2px;
    background: #000;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 3px;
}

.tier-option {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: rgba(255,255,255,.3);
}

.tier-option:hover {
    color: rgba(255,255,255,.5);
}

.tier-option[data-tier="basic"].active {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.6);
    box-shadow: none;
}

.tier-option[data-tier="advanced"].active {
    background: rgba(212,169,78,.1);
    color: #d4a94e;
    box-shadow: none;
}

.tier-option[data-tier="premium"].active {
    background: rgba(212,169,78,.15);
    color: #f0cc6b;
    box-shadow: 0 0 12px rgba(212,169,78,.15);
}

.tier-price {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 2px;
    display: block;
}

/* ── MODULE STATES ── */
.module-locked {
    opacity: 0.25;
    pointer-events: none;
    filter: grayscale(0.8);
    position: relative;
}

.module-locked::before {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    opacity: 0.3;
    z-index: 10;
}

.module-locked .section-title,
.module-locked .control-name,
.module-locked .control-value {
    color: rgba(255,255,255,.15) !important;
    text-shadow: none !important;
}

.module-locked input[type="range"]::-webkit-slider-thumb {
    background: rgba(255,255,255,.1);
    box-shadow: none;
}

.module-cyan .section-title {
    color: #d4a94e !important;
    text-shadow: none;
}

.module-cyan .control-value,
.module-cyan .meter-value {
    color: #d4a94e !important;
    text-shadow: none;
}

.module-cyan input[type="range"]::-webkit-slider-track {
    background: linear-gradient(to right, rgba(255,255,255,.04), rgba(212,169,78,.2));
}

.module-gold .section-title {
    color: #f0cc6b !important;
    text-shadow: none;
}

.module-gold .control-value,
.module-gold .meter-value {
    color: #f0cc6b !important;
    text-shadow: none;
}

.module-gold input[type="range"]::-webkit-slider-track {
    background: linear-gradient(to right, rgba(255,255,255,.04), rgba(240,204,107,.25));
}

.module-gold input[type="range"]::-webkit-slider-thumb {
    background: #f0cc6b;
    box-shadow: 0 0 8px rgba(240,204,107,.3);
}

.tier-premium .app-container::after {
    display: none;
}

.module-powering-on {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── FEATURE LOCK ── */
.feature-lock-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid rgba(212,169,78,.3);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.72rem;
    color: #d4a94e;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0,0,0,.6);
}

.feature-lock-tooltip::before {
    content: '🔒';
    margin-right: 6px;
}

.feature-lock-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(212,169,78,.3);
}

.module-locked:hover .feature-lock-tooltip {
    opacity: 1;
}

/* ── CHECKOUT ── */
.checkout-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #050508;
    border-top: 1px solid rgba(212,169,78,.15);
    overflow: hidden;
    transition: height .4s cubic-bezier(.4,0,.2,1);
    z-index: 9999;
}

.checkout-tray.open {
    height: 500px;
}

.checkout-tray-content {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #d4a94e;
    margin-bottom: 8px;
}

.checkout-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,.4);
    letter-spacing: .02em;
}

.checkout-tier-info {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(212,169,78,.15);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.checkout-tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d4a94e;
    margin-bottom: 8px;
}

.checkout-tier-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0cc6b;
}

.checkout-tier-features {
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,.5);
    line-height: 1.8;
}

.checkout-tier-features li {
    margin-bottom: 4px;
}

.checkout-tier-features li::before {
    content: '✓ ';
    color: #d4a94e;
    font-weight: 700;
    margin-right: 6px;
}

.stripe-form-container {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 24px;
}

.stripe-element {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 14px;
    transition: border-color .2s;
}

.stripe-element:hover {
    border-color: rgba(212,169,78,.2);
}

.checkout-submit-btn {
    width: 100%;
    padding: 16px;
    background: #d4a94e;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all .2s;
}

.checkout-submit-btn:hover:not(:disabled) {
    background: #f0cc6b;
    box-shadow: 0 0 24px rgba(212,169,78,.2);
}

.checkout-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.checkout-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 1rem;
    color: rgba(255,255,255,.5);
}

.checkout-close-btn:hover {
    border-color: rgba(212,169,78,.3);
    color: #d4a94e;
}

.checkout-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    pointer-events: none;
    transition: background .3s;
    z-index: 9998;
}

.checkout-backdrop.active {
    background: rgba(0,0,0,.8);
    pointer-events: auto;
}

/* ── SPEC SHEET ── */
.spec-sheet-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #050508;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.8);
    z-index: 9998;
}

.spec-sheet-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(212,169,78,.6);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding-bottom: 8px;
    font-weight: 600;
}

.spec-sheet-grid {
    display: grid;
    gap: 10px;
}

.spec-row {
    display: grid;
    grid-template-columns: 80px 120px 80px;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    padding: 8px;
    background: rgba(255,255,255,.02);
    border-radius: 4px;
    transition: background .2s;
}

.spec-row:hover {
    background: rgba(212,169,78,.04);
}

.spec-tier {
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

.spec-features {
    color: rgba(255,255,255,.4);
    font-size: 0.62rem;
    line-height: 1.4;
}

.spec-price {
    color: #d4a94e;
    font-weight: 700;
    font-size: 0.82rem;
    text-align: right;
}

.spec-note {
    font-size: 0.58rem;
    color: rgba(255,255,255,.25);
    margin-top: 10px;
    text-align: center;
}
