:root {
    --main: #ff2a7a;
    --gold: #ffcc00;
    --bg: #05060a;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e0e6ed;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    padding: 60px 20px;
    background-image: radial-gradient(circle at 50% 0%, #1a0b16 0%, #05060a 100%);
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.75rem;
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: 0.3s;
}

.back-btn:hover { border-color: var(--main); background: rgba(255, 42, 122, 0.1); }

.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 1000;
}

.lang-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.7rem;
    backdrop-filter: blur(10px);
}

.lang-btn.active { background: var(--main); border-color: var(--main); color: #fff; }

.container {
    max-width: 900px;
    margin: 40px auto;
}

.goal-panel {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(30px);
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.goal-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.input-group label { font-size: 0.7rem; color: #888; margin-bottom: 8px; letter-spacing: 2px; }
.input-group input {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus { border-color: var(--main); box-shadow: 0 0 15px rgba(255, 42, 122, 0.2); }

.progress-wrapper {
    background: rgba(0,0,0,0.4);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
    border: 1px solid var(--border);
}

.progress-fill {
    background: linear-gradient(90deg, var(--main), var(--gold));
    height: 100%;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 30px var(--main);
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.tax-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--gold);
    opacity: 0.8;
}

/* Switch UI */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #333; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; transition: .4s; border-radius: 50%; }
input:checked + .slider { background: var(--gold); }
input:checked + .slider:before { transform: translateX(22px); }

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

.add-btn {
    background: var(--main);
    color: #fff;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
}

.add-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 42, 122, 0.4); }

.asset-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.5fr 2fr auto;
    gap: 15px;
    background: var(--glass);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    border-radius: 16px;
    align-items: center;
    backdrop-filter: blur(20px);
}

.asset-input select, .asset-input input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.profit-col { text-align: right; font-weight: 700; font-size: 1.2rem; }
.profit-positive { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
.profit-negative { color: #ff0055; }

.del-btn {
    background: transparent;
    border: 1px solid rgba(255,0,85,0.3);
    color: #ff0055;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.total-summary {
    text-align: right;
    margin-top: 30px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.calc-btn {
    width: 100%;
    background: transparent;
    border: 2px dashed var(--border);
    color: var(--text);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    transition: 0.3s;
}

.calc-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 204, 0, 0.05); }

/* EPIC OVERLAY (Cinema Style) */
.epic-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 2s ease;
    backdrop-filter: blur(40px);
}

.epic-overlay.active { opacity: 1; pointer-events: all; }

.epic-content { text-align: center; opacity: 0; transform: scale(0.9); transition: 3s cubic-bezier(0.2, 0.8, 0.2, 1) 1s; }
.epic-overlay.active .epic-content { opacity: 1; transform: scale(1); }

.epic-title {
    font-size: 5rem; font-weight: 200; letter-spacing: 20px; color: #fff;
    margin-bottom: 40px; text-transform: uppercase;
}

@media (max-width: 700px) {
    .asset-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .profit-col { grid-column: span 2; text-align: center; margin-top: 10px; }
    .del-btn { position: absolute; top: 10px; right: 10px; }
    .epic-title { font-size: 2rem; letter-spacing: 10px; }
    .goal-inputs { flex-direction: column; }
}
