/* 
   Kredilab - Premium Design System (Mor & Magenta on Black)
   Custom variables, glassmorphic grids, glowing input boxes, and rhythmic light sweep animations
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-black: #000000;
    --bg-dark-gray: #09060e;
    --bg-card: rgba(18, 11, 28, 0.45);
    --border-color: rgba(236, 72, 153, 0.15); /* Magenta hint */
    --border-glow: rgba(124, 58, 237, 0.3); /* Purple hint */
    
    /* Neon gradients */
    --primary-purple: #7c3aed;
    --primary-purple-glow: rgba(124, 58, 237, 0.6);
    --secondary-magenta: #ec4899;
    --secondary-magenta-glow: rgba(236, 72, 153, 0.6);
    
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.35);
    
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-black);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 40%);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Navigation Styles */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span.kredi {
    background: linear-gradient(135deg, var(--secondary-magenta), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span.lab {
    color: var(--text-white);
    position: relative;
}

.logo span.lab::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: -8px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-magenta);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary-magenta);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

nav a:hover, nav a.active {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

nav .admin-link {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(236, 72, 153, 0.05);
    transition: all var(--transition-speed);
}

nav .admin-link:hover {
    border-color: var(--secondary-magenta);
    background: rgba(236, 72, 153, 0.15);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Base Page (Hidden by default, active is shown) */
.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 3-Second Diagonal Light Sweep Button Animation */
.sweep-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sweep-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(35deg);
    pointer-events: none;
    /* 3-second cycle: 1.2s sweeps, 1.8s rests */
    animation: sweepAnimation 3s infinite linear;
}

@keyframes sweepAnimation {
    0% {
        left: -150%;
    }
    40% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* HOME PAGE STYLES */
.home-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #ecd0ff 70%, var(--secondary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.6;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 650px;
    margin: 0 auto;
}

.choice-card {
    background: var(--bg-card);
    border: 1px solid rgba(192, 192, 192, 0.7);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    padding: 3.5rem 2rem;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 1;
}

.choice-card.bireysel-card {
    border-color: rgba(192, 192, 192, 0.7);
}

.choice-card.ticari-card {
    border-color: rgba(192, 192, 192, 0.7);
}

.choice-card:hover {
    transform: translateY(-8px);
}

.choice-card.bireysel-card:hover {
    border-color: var(--secondary-magenta);
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.25);
    background: rgba(236, 72, 153, 0.05);
}

.choice-card.ticari-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.05);
}

.choice-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px currentColor);
    transition: transform 0.4s ease;
}

.bireysel-card .choice-icon {
    color: var(--secondary-magenta);
}

.ticari-card .choice-icon {
    color: var(--primary-purple);
}

.choice-card:hover .choice-icon {
    transform: scale(1.15);
}

.choice-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.choice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CATEGORY PAGES (BIREYSEL & TICARI) */
.page-header {
    margin-bottom: 3rem;
    position: relative;
}

.back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed);
}

.back-btn:hover {
    color: var(--text-white);
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-title.bireysel-title {
    background: linear-gradient(135deg, #ffffff, var(--secondary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title.ticari-title {
    background: linear-gradient(135deg, #ffffff, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid rgba(192, 192, 192, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bireysel-grid .category-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.15);
    transform: translateY(-5px);
    background: rgba(236, 72, 153, 0.03);
}

.ticari-grid .category-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
    background: rgba(124, 58, 237, 0.03);
}

.category-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.bireysel-grid .category-card:hover .category-icon-wrapper {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--secondary-magenta);
    color: var(--secondary-magenta);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.ticari-grid .category-card:hover .category-icon-wrapper {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.premium-icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

/* CALCULATOR DETAIL PAGE STYLES */
.calc-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    margin-top: 1rem;
}

.calc-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.bireysel-calc .calc-panel {
    border-left: 4px solid var(--secondary-magenta);
}

.ticari-calc .calc-panel {
    border-left: 4px solid var(--primary-purple);
}

.calc-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-addon {
    position: absolute;
    right: 1.25rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 1.25rem;
    padding-right: 3.5rem; /* Addon spacing */
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all var(--transition-speed);
    outline: none;
}

/* Silik/Dim placeholder that vanishes when typing */
.form-group input::placeholder {
    color: var(--text-dim);
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.form-group input:focus::placeholder {
    opacity: 0.3;
}

.bireysel-calc input:focus {
    border-color: var(--secondary-magenta);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
    background: rgba(236, 72, 153, 0.02);
}

.ticari-calc input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.02);
}

.bireysel-calc input:focus + .input-addon,
.bireysel-calc input:focus ~ label {
    color: var(--secondary-magenta);
}

.ticari-calc input:focus + .input-addon,
.ticari-calc input:focus ~ label {
    color: var(--primary-purple);
}

/* Range sliders (Optional premium visual) */
.range-slider {
    margin-top: 0.5rem;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.bireysel-calc .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-magenta);
    cursor: pointer;
    box-shadow: 0 0 8px var(--secondary-magenta);
}

.ticari-calc .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-purple);
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary-purple);
}

/* Calculate button styles */
.calculate-btn {
    width: 100%;
    border: none;
    padding: 1.15rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    border-radius: 12px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bireysel-calc .calculate-btn {
    background: linear-gradient(135deg, var(--secondary-magenta), #be185d);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.bireysel-calc .calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
}

.ticari-calc .calculate-btn {
    background: linear-gradient(135deg, var(--primary-purple), #5b21b6);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.ticari-calc .calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
}

/* RESULTS PANEL STYLES */
.results-panel {
    background: linear-gradient(145deg, rgba(20, 10, 30, 0.8), rgba(5, 3, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.results-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.results-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.bireysel-calc .results-title {
    color: var(--secondary-magenta);
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.ticari-calc .results-title {
    color: var(--primary-purple);
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    transition: all 0.5s ease;
}

.result-item.highlight .result-value {
    background: linear-gradient(135deg, #ffffff, var(--secondary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.2));
}

.ticari-calc .result-item.highlight .result-value {
    background: linear-gradient(135deg, #ffffff, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.2));
}

.tax-disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ADMIN PANEL STYLES */
.admin-container {
    max-width: 500px;
    margin: 2rem auto;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid rgba(236, 72, 153, 0.15);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.admin-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, var(--secondary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-card p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.admin-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-magenta), var(--primary-purple));
    color: var(--text-white);
    border: none;
    padding: 1.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5);
}

/* ADMIN DASHBOARD STYLES */
.admin-dashboard {
    max-width: 1200px;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav-tabs {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.admin-tab-btn.active {
    background: var(--secondary-magenta);
    color: var(--text-white);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.admin-tab-btn.active.purple-tab {
    background: var(--primary-purple);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.admin-content-section {
    display: none;
}

.admin-content-section.active {
    display: block;
}

/* Admin Formula Grid */
.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.formula-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    transition: all var(--transition-speed);
}

.formula-card.bireysel-item {
    border-left: 3px solid var(--secondary-magenta);
}

.formula-card.ticari-item {
    border-left: 3px solid var(--primary-purple);
}

.formula-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.formula-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.formula-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.formula-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.bireysel-item .formula-badge {
    background: rgba(236, 72, 153, 0.15);
    color: var(--secondary-magenta);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.ticari-item .formula-badge {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-purple);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.formula-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    font-weight: 600;
    color: var(--text-white);
}

.edit-formula-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.edit-formula-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bireysel-item .edit-formula-btn:hover {
    border-color: var(--secondary-magenta);
    color: var(--secondary-magenta);
}

.ticari-item .edit-formula-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* SETTINGS / PASSWORD SECTION */
.settings-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.settings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.settings-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.toast-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 10, 25, 0.95);
    border-left: 4px solid var(--secondary-magenta);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast-message.active {
    transform: translateY(0);
    opacity: 1;
}

/* FORMULA EDIT DIALOG / MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal {
    background: #0f0b18;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .admin-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-modal-btn:hover {
    color: var(--text-white);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.modal-save-btn {
    background: linear-gradient(135deg, var(--secondary-magenta), var(--primary-purple));
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.modal-save-btn:hover {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

/* Footer */
footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

footer a:hover {
    color: var(--text-white);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .calc-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .choice-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home-title {
        font-size: 2.6rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* Custom Select Dropdown & Option styles for dark mode compatibility */
select {
    background-color: var(--bg-card) !important;
    color: var(--text-white) !important;
}

select option {
    background-color: #09060e !important;
    color: #ffffff !important;
    padding: 10px;
}
