.calculator-page { background: #f4f3ef; }
.calculator-header { position: absolute; background: rgba(31, 31, 33, .72); backdrop-filter: blur(12px); }
.calculator-header .main-nav a.active { color: var(--green); }
.calc-intro { padding: calc(var(--header-height) + 72px) 0 68px; color: #fff; background: radial-gradient(circle at 84% 24%, rgba(84, 198, 83, .2), transparent 27%), linear-gradient(125deg, #1b1a1c, #303033); }
.calc-intro-grid { display: grid; grid-template-columns: 1.05fr .7fr; gap: 80px; align-items: end; }
.calc-intro h1 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.8rem); }
.calc-intro h1 span { color: var(--green); }
.calc-intro-copy p { margin: 0 0 20px; color: rgba(255,255,255,.76); font-size: 1.12rem; line-height: 1.7; }
.calc-intro-copy small { display: block; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.48); line-height: 1.5; }
.calc-workspace { padding: 48px 0 100px; }
.calc-layout { display: grid; grid-template-columns: minmax(320px,.7fr) minmax(580px,1.3fr); gap: 24px; align-items: start; }
.calc-form, .calc-results { border: 1px solid #deddd8; border-radius: 18px; background: #fff; box-shadow: 0 16px 44px rgba(28,27,28,.06); }
.calc-form { position: sticky; top: 22px; padding: 30px; }
.form-heading, .results-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 27px; }
.form-heading > span, .results-heading > span { width: 35px; height: 35px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #173d1c; background: var(--green-soft); font-size: .72rem; font-weight: 900; }
.form-heading h2, .results-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.form-heading p, .results-heading p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
.calc-form > label, .calc-form fieldset { margin: 0 0 23px; padding: 0; display: grid; gap: 9px; border: 0; }
.calc-form > label > span, .calc-form legend { padding: 0; color: #49474b; font-size: .84rem; font-weight: 800; }
.calc-form label em { margin-left: 5px; color: #969398; font-size: .72rem; font-style: normal; font-weight: 500; }
.calc-form input[type="number"], .calc-form select { width: 100%; min-height: 52px; padding: 0 14px; color: var(--ink); border: 1px solid #d7d5d1; border-radius: 9px; outline: 0; background: #fbfbf9; font: inherit; font-weight: 700; }
.calc-form input:focus, .calc-form select:focus { border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(84,198,83,.14); }
.input-unit { position: relative; }
.input-unit input { padding-right: 104px !important; }
.input-unit b { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #827f84; font-size: .77rem; }
.calc-form label > small { color: #969398; line-height: 1.45; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { min-height: 43px; padding: 8px 10px; display: grid; place-items: center; border: 1px solid #d9d7d3; border-radius: 8px; color: #5a575c; background: #fff; text-align: center; font-size: .76rem; font-weight: 750; transition: .18s ease; }
.choice-grid input:checked + span { color: #173d1c; border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.schedule-options label:last-child { grid-column: 1 / -1; }
.form-source { margin: 8px -30px -30px; padding: 20px 30px; border-radius: 0 0 17px 17px; background: #f5f5f1; }
.form-source span { color: var(--green-deep); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.form-source p { margin: 7px 0 0; color: #77747a; font-size: .72rem; line-height: 1.55; }
.calc-results { padding: 30px; }
.scenario-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.scenario-tabs button { position: relative; min-height: 139px; padding: 20px 16px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border: 1px solid #d9d7d3; border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; font: inherit; transition: .18s ease; }
.scenario-tabs button:hover { transform: translateY(-2px); border-color: #a9a6aa; }
.scenario-tabs button.selected { color: #fff; border-color: var(--graphite); background: var(--graphite); box-shadow: 0 12px 24px rgba(27,26,28,.16); }
.scenario-tabs button small { color: var(--green-deep); font-weight: 900; }
.scenario-tabs button.selected small { color: var(--green); }
.scenario-tabs button strong { font-size: .94rem; }
.scenario-tabs button span { color: #8a878c; font-size: .7rem; line-height: 1.4; }
.scenario-tabs button.selected span { color: rgba(255,255,255,.58); }
.scenario-tabs button i { position: absolute; top: -9px; right: 10px; padding: 4px 7px; border-radius: 10px; color: #173d1c; background: var(--green); font-size: .58rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.result-hero { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #39383b; border-radius: 14px; color: #fff; background: linear-gradient(125deg,#222124,#302f32); overflow: hidden; }
.result-hero > div { min-height: 132px; padding: 22px; display: flex; flex-direction: column; justify-content: end; border-left: 1px solid rgba(255,255,255,.12); }
.result-hero > div:first-child { border-left: 0; }
.result-hero small { margin-bottom: auto; color: rgba(255,255,255,.52); font-size: .71rem; }
.result-hero strong { color: var(--green); font-size: clamp(1.7rem,3vw,2.4rem); line-height: 1; }
.result-hero span { margin-top: 4px; color: rgba(255,255,255,.62); font-size: .7rem; }
.energy-card, .timeline-card { margin-top: 16px; padding: 24px; border: 1px solid #deddd8; border-radius: 14px; }
.energy-title { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.energy-title > div { display: grid; }
.energy-title small { color: #8b888d; }
.energy-title strong { margin-top: 4px; font-size: 1.65rem; }
.energy-title span { color: #8b888d; font-size: .72rem; }
.energy-bar { height: 16px; margin: 21px 0 15px; display: flex; border-radius: 9px; background: #ecebe7; overflow: hidden; }
.energy-bar span { min-width: 0; transition: width .35s ease; }
.self-bar { background: var(--green); }
.surplus-bar { background: #d4d2ce; }
.energy-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.energy-legend > div { display: grid; grid-template-columns: 11px 1fr auto; gap: 7px; align-items: center; color: #77747a; font-size: .72rem; }
.energy-legend i { width: 9px; height: 9px; border-radius: 50%; }
.self-dot { background: var(--green); }.surplus-dot { background: #d4d2ce; }
.energy-legend strong { color: var(--ink); }
.surplus-note { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid #e4e2de; color: #858287; font-size: .7rem; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.metric-grid > div { min-height: 103px; padding: 17px; display: flex; flex-direction: column; border-radius: 11px; background: #f5f5f1; }
.metric-grid small { color: #817e83; font-size: .69rem; }
.metric-grid strong { margin: auto 0 3px; font-size: 1.08rem; }
.metric-grid span { color: #99969a; font-size: .64rem; }
.timeline-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.timeline-heading h3 { margin: 0; font-size: 1rem; }.timeline-heading span { color: #969398; font-size: .67rem; }
.timeline-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 18px; background: #e2e0dc; border: 1px solid #e2e0dc; border-radius: 9px; overflow: hidden; }
.timeline-grid > div { min-height: 98px; padding: 14px; display: grid; background: #fff; }
.timeline-grid small { color: var(--green-deep); font-weight: 900; }.timeline-grid strong { align-self: end; font-size: .92rem; }.timeline-grid span { color: #969398; font-size: .61rem; }
.timeline-card details { margin-top: 17px; padding-top: 15px; border-top: 1px solid #e4e2de; }
.timeline-card summary { color: var(--green-deep); cursor: pointer; font-size: .75rem; font-weight: 850; }
.detail-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-grid > div { padding: 15px; border-radius: 9px; background: #f5f5f1; }.detail-grid small { color: #817e83; }.detail-grid strong { display: block; margin-top: 5px; }
.detail-grid p { grid-column: 1 / -1; margin: 5px 0 0; color: #858287; font-size: .7rem; line-height: 1.55; }
.result-warning { margin-top: 14px; padding: 14px 16px; display: grid; border-radius: 9px; color: #694b00; background: #fff3cd; font-size: .75rem; }
.result-cta { width: 100%; margin-top: 18px; }
.legal-note { margin: 14px 3px 0; color: #98959a; font-size: .64rem; line-height: 1.5; }
.calc-footer { padding-top: 26px; }.calc-footer .footer-bottom { padding-top: 0; border: 0; }.calc-footer .footer-bottom > div { display: flex; gap: 22px; }

@media (max-width: 1100px) {
  .calc-intro { padding-top: calc(var(--header-height) + 60px); }
  .calc-layout { grid-template-columns: 1fr; }.calc-form { position: static; }.calc-intro-grid { grid-template-columns: 1fr; gap: 30px; }.calc-intro-copy { max-width: 690px; }
}
@media (max-width: 720px) {
  .calc-intro { padding: calc(var(--header-height) + 42px) 0 45px; }.calc-intro h1 { font-size: 2.6rem; }.calc-intro .eyebrow { display: inline-flex; }.calc-intro-copy p { font-size: .95rem; }
  .calc-workspace { padding: 18px 0 65px; }.calc-form,.calc-results { padding: 20px; border-radius: 13px; }.form-source { margin: 5px -20px -20px; padding: 18px 20px; }
  .scenario-tabs { grid-template-columns: 1fr; }.scenario-tabs button { min-height: 94px; }.result-hero { grid-template-columns: 1fr; }.result-hero > div { min-height: 101px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }.result-hero > div:first-child { border-top: 0; }
  .energy-title,.energy-legend,.metric-grid,.detail-grid { grid-template-columns: 1fr; }.timeline-grid { grid-template-columns: 1fr; }.timeline-grid > div { min-height: 82px; }.detail-grid p { grid-column: auto; }.calc-footer .footer-bottom,.calc-footer .footer-bottom > div { flex-direction: column; }
}

/* Protected settings page */
.admin-page { min-height: 100vh; color: #252327; background: #eeede9; font-family: "Noto Sans Georgian","Inter",sans-serif; }
.admin-shell { width: min(1160px,calc(100% - 32px)); margin: 0 auto; padding: 30px 0 80px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding: 18px 22px; border-radius: 14px; color: #fff; background: #252427; }
.admin-top img { width: 180px; }.admin-top div { display: flex; gap: 18px; align-items: center; }.admin-top a { color: #b7b4b8; font-size: .78rem; }.admin-top .logout { color: var(--green); }
.auth-card { width: min(520px,100%); margin: 90px auto; padding: 30px; border: 1px solid #d9d7d3; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(20,20,20,.08); }
.auth-card h1 { margin: 0 0 8px; color: #252327; font-size: 1.7rem; letter-spacing: -.03em; }.auth-card p { color: #77747a; font-size: .85rem; line-height: 1.6; }
.auth-card label { margin-top: 17px; display: grid; gap: 7px; font-size: .78rem; font-weight: 800; }.auth-card input { min-height: 50px; padding: 0 13px; border: 1px solid #d7d5d1; border-radius: 8px; font: inherit; }.auth-card button,.admin-actions button { min-height: 50px; padding: 0 20px; border: 0; border-radius: 8px; color: #173d1c; background: var(--green); cursor: pointer; font: inherit; font-weight: 900; }
.auth-error,.admin-message { margin-top: 14px; color: #a02020; font-size: .76rem; }.auth-help { color: #98959a !important; font-size: .7rem !important; }
.admin-intro { display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: end; margin-bottom: 30px; }.admin-intro h1 { margin: 0; color: #252327; font-size: clamp(2.2rem,5vw,4.2rem); }.admin-intro p { margin: 0; color: #747176; line-height: 1.7; }
.admin-group { margin-top: 18px; padding: 26px; border: 1px solid #d9d7d3; border-radius: 14px; background: #fff; }.admin-group h2 { margin: 0 0 20px; font-size: 1.25rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.admin-field { padding: 16px; border-radius: 10px; background: #f6f6f3; }.admin-field label { display: grid; grid-template-columns: 1fr 185px; gap: 16px; align-items: center; }.admin-field label > span { display: grid; font-size: .82rem; font-weight: 850; }.admin-field label small { margin-top: 3px; color: #8c898e; font-weight: 500; }.admin-input { position: relative; }.admin-input input { width: 100%; min-height: 45px; padding: 0 65px 0 11px; border: 1px solid #d7d5d1; border-radius: 7px; font: inherit; font-weight: 800; }.admin-input b { position: absolute; right: 9px; top: 50%; max-width: 58px; transform: translateY(-50%); color: #8d8a8f; text-align: right; font-size: .58rem; }.admin-field p { margin: 11px 0 0; color: #858287; font-size: .68rem; line-height: 1.5; }
.admin-actions { position: sticky; bottom: 16px; margin-top: 20px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d0ceca; border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 12px 30px rgba(30,30,30,.11); backdrop-filter: blur(10px); }.admin-actions p { margin: 0; color: #77747a; font-size: .75rem; }.admin-actions .admin-message { color: var(--green-deep); }
@media(max-width:800px){.admin-intro,.admin-grid{grid-template-columns:1fr}.admin-field label{grid-template-columns:1fr}.admin-top div a:first-child{display:none}.admin-actions{align-items:flex-start;flex-direction:column}.admin-actions button{width:100%}}
