/* ============================================================
   ToolSphere Calculators — shared base styles + per-tool styles
   ============================================================ */

/* ---------- Shared shell ---------- */
.age-calc-app,
.bmi-calc-app,
.date-calc-app,
.time-calc-app,
.pct-calc-app,
.loan-calc-app,
.sgpa-calc-app,
.cgpa-calc-app,
.exam-marks-calc-app,
.room-area-calc-app,
.era-calc-app,
.plate-weight-calc-app,
.tip-calc-app,
.discount-calc-app,
.tax-calc-app,
.unit-calc-app,
.timer-calc-app,
.password-strength-calc-app,
.yt-money-app,
.engagement-rate-app {
    --c-accent: #38bdf8;
    --c-accent2: #818cf8;
    --c-ok: #34d399;
    --c-warn: #fbbf24;
    --c-bad: #f87171;
    --c-card: rgba(15, 23, 42, 0.85);
    --c-border: rgba(148, 163, 184, 0.16);
    --c-muted: #94a3b8;
    --c-text: #e2e8f0;
    width: 100%;
}

.tool-widget:has(.age-calc-app),
.tool-widget:has(.bmi-calc-app),
.tool-widget:has(.date-calc-app),
.tool-widget:has(.time-calc-app),
.tool-widget:has(.pct-calc-app),
.tool-widget:has(.loan-calc-app),
.tool-widget:has(.sgpa-calc-app),
.tool-widget:has(.cgpa-calc-app),
.tool-widget:has(.exam-marks-calc-app),
.tool-widget:has(.room-area-calc-app),
.tool-widget:has(.era-calc-app),
.tool-widget:has(.plate-weight-calc-app),
.tool-widget:has(.tip-calc-app),
.tool-widget:has(.discount-calc-app),
.tool-widget:has(.tax-calc-app),
.tool-widget:has(.unit-calc-app),
.tool-widget:has(.timer-calc-app),
.tool-widget:has(.password-strength-calc-app),
.tool-widget:has(.yt-money-app),
.tool-widget:has(.engagement-rate-app) {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.calc-shell {
    border: 1px solid var(--c-border);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(56, 189, 248, .13), transparent 50%),
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(129, 140, 248, .09), transparent 45%),
        linear-gradient(180deg, #111827 0%, #0b1220 100%);
    padding: 1.2rem 1.3rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .30);
}

/* ---------- Trust bar ---------- */
.calc-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.calc-badge {
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: rgba(2, 8, 20, .45);
    font-size: .7rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Mode tabs ---------- */
.calc-mode-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.calc-mode-tab {
    padding: .5rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: rgba(15, 23, 42, .7);
    color: var(--c-muted);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.calc-mode-tab.active,
.calc-mode-tab:hover {
    background: rgba(56, 189, 248, .14);
    border-color: rgba(56, 189, 248, .4);
    color: var(--c-accent);
}

/* ---------- Main grid ---------- */
.calc-main-grid,
.bmi-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

@media (max-width: 700px) {
    .calc-main-grid,
    .bmi-main-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.calc-card {
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .12), transparent 55%),
        linear-gradient(165deg, #111827, #0b1220 70%);
}

.calc-card-head {
    margin-bottom: .85rem;
}

.calc-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.01em;
}

/* ---------- Form controls ---------- */
.calc-field-group {
    margin-bottom: .8rem;
}

.calc-label {
    display: block;
    margin-bottom: .3rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.calc-date-input,
.calc-number-input,
.calc-text-input,
.calc-select {
    width: 100%;
    padding: .55rem .75rem;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: rgba(2, 8, 20, .55);
    color: var(--c-text);
    font-size: .95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}

.calc-date-input:focus,
.calc-number-input:focus,
.calc-text-input:focus,
.calc-select:focus {
    outline: none;
    border-color: var(--c-accent);
}

.calc-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2.2rem;
}

.calc-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(.5);
}

.calc-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.calc-radio-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: var(--c-text);
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.calc-btn-primary {
    width: 100%;
    padding: .65rem 1rem;
    margin-top: .4rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    box-sizing: border-box;
}

.calc-btn-primary:hover { opacity: .9; }
.calc-btn-primary:active { transform: scale(.98); }

.calc-btn-ghost {
    width: 100%;
    padding: .5rem 1rem;
    margin-top: .35rem;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-muted);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s, color .15s;
}

.calc-btn-ghost:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

/* ---------- Result panels ---------- */
.calc-result-card[hidden] { display: none !important; }
.calc-error[hidden] { display: none !important; }

.calc-error {
    grid-column: 1 / -1;
    padding: .75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .12);
    color: #fca5a5;
    font-size: .9rem;
}

/* ---------- Age hero ---------- */
.age-hero-number,
.date-hero-number,
.time-hero {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(90deg, #e0f2fe, #7dd3fc 45%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* ---------- Detail grids ---------- */
.age-detail-grid,
.bmi-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .55rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.age-detail-cell,
.bmi-detail-cell {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: .55rem .7rem;
    background: rgba(2, 8, 20, .4);
}

.age-detail-cell dt,
.bmi-detail-cell dt {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    margin-bottom: .2rem;
}

.age-detail-cell dd,
.bmi-detail-cell dd {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-accent);
    margin: 0;
}

.birthday-cell dd {
    color: var(--c-ok) !important;
}

/* ---------- Zodiac row ---------- */
.age-zodiac-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.age-zodiac-item {
    flex: 1;
    min-width: 90px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: .55rem .7rem;
    background: rgba(2, 8, 20, .4);
}

.age-zodiac-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    margin-bottom: .2rem;
}

.age-zodiac-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-accent2);
}

/* ---------- BMI gauge ---------- */
.bmi-gauge-wrap {
    margin-bottom: 1rem;
}

.bmi-gauge-number {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(90deg, #6ee7b7, #34d399 50%, #a7f3d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.bmi-gauge-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: .65rem;
}

.bmi-bar-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa 0%, #34d399 25%, #fbbf24 60%, #f87171 100%);
    margin-bottom: .3rem;
    overflow: visible;
}

.bmi-bar-fill {
    display: none;
}

.bmi-bar-marker {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .3);
    transform: translateX(-50%);
    transition: left .35s ease;
    left: 0%;
}

.bmi-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: .65rem;
    font-weight: 600;
    color: var(--c-muted);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-top: .25rem;
}

.bmi-height-imperial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.calc-radio-row input[type="radio"] {
    accent-color: var(--c-accent);
}

/* ---------- Unit toggle ---------- */
.calc-unit-toggle {
    display: flex;
    gap: .4rem;
    margin-bottom: .9rem;
    flex-wrap: wrap;
}

.calc-unit-btn {
    padding: .45rem .9rem;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    background: rgba(15, 23, 42, .7);
    color: var(--c-muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.calc-unit-btn.active,
.calc-unit-btn:hover {
    background: rgba(56, 189, 248, .14);
    border-color: rgba(56, 189, 248, .4);
    color: var(--c-accent);
}

.calc-disclaimer {
    font-size: .75rem;
    color: var(--c-muted);
    margin: .5rem 0 0;
    line-height: 1.5;
}

/* ---------- Date add fields grid ---------- */
.date-add-fields,
.time-add-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

/* ---------- Percentage calculator grid ---------- */
.pct-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.pct-card { grid-column: span 1; }

.pct-card-title { font-size: .95rem; }

.pct-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: .5rem;
}

.calc-number-input.pct-small {
    width: 90px;
    flex: 0 0 90px;
    padding: .45rem .6rem;
    font-size: .88rem;
}

.pct-word {
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-muted);
    white-space: nowrap;
}

.calc-btn-primary.pct-go {
    width: auto;
    padding: .45rem .9rem;
    margin-top: 0;
    font-size: .9rem;
}

.pct-result-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .7rem;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, .25);
    background: rgba(56, 189, 248, .08);
    margin-bottom: .3rem;
}

.pct-result-two {
    flex-wrap: wrap;
}

.pct-result-two > div {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 120px;
}

.pct-result-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    white-space: nowrap;
}

.pct-result-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-accent);
}

.pct-example {
    font-size: .72rem;
    color: var(--c-muted);
    margin: 0;
    line-height: 1.4;
}

/* ---------- Features bar ---------- */
.calc-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .65rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

.calc-feature {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .6rem .8rem;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: rgba(2, 8, 20, .3);
}

.calc-feature strong {
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-text);
}

.calc-feature span {
    font-size: .74rem;
    color: var(--c-muted);
    line-height: 1.4;
}

/* ---------- Export bar ---------- */
.calc-export-bar {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, .22);
    background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(99, 102, 241, .06));
}

.calc-export-bar--page {
    margin-bottom: 1rem;
}

.calc-export-bar--inline {
    margin-top: .75rem;
}

.calc-export-label {
    margin: 0 0 .55rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-muted);
}

.calc-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.calc-btn-export {
    padding: .5rem 1rem;
    border-radius: 9px;
    border: 1px solid var(--c-border);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}

.calc-btn-export:active {
    transform: scale(.98);
}

.calc-btn-export--pdf {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: rgba(248, 113, 113, .35);
    color: #fff;
}

.calc-btn-export--xlsx {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: rgba(52, 211, 153, .35);
    color: #fff;
}

.calc-btn-export:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.calc-grade-table-wrap {
    overflow-x: auto;
    margin-bottom: .75rem;
    border-radius: 12px;
    border: 1px solid var(--c-border);
}

.calc-grade-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.calc-grade-table th,
.calc-grade-table td {
    padding: .45rem .5rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
}

.calc-grade-table th {
    background: rgba(2, 8, 20, .45);
    color: var(--c-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.calc-grade-table input {
    width: 100%;
    min-width: 4rem;
    padding: .35rem .45rem;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    background: rgba(2, 8, 20, .55);
    color: var(--c-text);
    font-size: .85rem;
    box-sizing: border-box;
}

.calc-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.calc-btn-outline {
    padding: .45rem .85rem;
    border-radius: 9px;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-accent);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.calc-btn-outline:hover {
    border-color: var(--c-accent);
}

.calc-btn-icon {
    padding: .25rem .45rem;
    border: none;
    background: transparent;
    color: #f87171;
    cursor: pointer;
    font-size: 1rem;
}

.calc-hint {
    margin: .35rem 0 0;
    font-size: .78rem;
    color: var(--c-muted);
}

.sgpa-subjects-wrap,
.cgpa-semesters-wrap,
.exam-subjects-wrap {
    margin-bottom: .75rem;
}

.sgpa-subjects-head,
.cgpa-semesters-head,
.exam-subjects-head {
    display: grid;
    gap: .4rem;
    padding: 0 .25rem .35rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
}

.sgpa-subjects-head,
.sgpa-subject-row {
    grid-template-columns: 1.4fr .55fr .55fr 2rem;
}

.cgpa-semesters-head,
.cgpa-semester-row {
    grid-template-columns: 1.2fr .65fr .65fr 2rem;
}

.exam-subjects-head,
.exam-subject-row {
    grid-template-columns: 1.3fr .55fr .55fr 2rem;
}

.calc-dynamic-row {
    display: grid;
    gap: .4rem;
    align-items: center;
    margin-bottom: .45rem;
}

.calc-dynamic-row .calc-number-input {
    padding: .45rem .55rem;
    font-size: .88rem;
}

.calc-row-remove {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .1);
    color: #f87171;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.calc-row-remove:hover {
    background: rgba(248, 113, 113, .2);
}

/* ---------- YouTube money calculator ---------- */
.yt-money-fetch {
    margin-bottom: 1.1rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(239, 68, 68, 0.14), transparent 55%),
        rgba(2, 8, 20, 0.45);
}

.yt-money-fetch-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: stretch;
}

.yt-money-fetch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: stretch;
}

.yt-money-fetch-actions .calc-btn-primary,
.yt-money-fetch-actions .calc-btn-outline,
.yt-money-fetch-actions .calc-btn-ghost {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
    white-space: nowrap;
    padding: 0.6rem 0.95rem;
}

.yt-money-fetch-actions .calc-btn-primary {
    margin-left: auto;
}

@media (min-width: 760px) {
    .yt-money-fetch-row {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.yt-money-hint,
.yt-money-field-note {
    display: block;
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--c-muted);
    line-height: 1.45;
}

.yt-money-channel {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--c-border);
    background: rgba(15, 23, 42, 0.65);
}

.yt-money-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(239, 68, 68, 0.45);
    background: #0f172a;
    flex-shrink: 0;
}

.yt-money-channel-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.yt-money-channel-meta strong {
    font-size: 1.05rem;
    color: var(--c-text);
}

.yt-money-channel-meta a {
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
}

.yt-money-channel-meta a:hover {
    text-decoration: underline;
}

.yt-money-stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.yt-money-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: rgba(2, 8, 20, 0.5);
    min-width: 5.5rem;
}

.yt-money-pill em {
    font-style: normal;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-muted);
}

.yt-money-pill strong {
    font-size: 0.85rem;
    color: var(--c-text);
}

.yt-money-result-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.82rem;
    color: var(--c-muted);
}

.yt-money-disclaimer {
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--c-muted);
}

.yt-money-auto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.yt-money-auto-card {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--c-border);
    background: rgba(15, 23, 42, 0.65);
}

.yt-money-auto-card.is-ok {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(6, 78, 59, 0.28);
}

.yt-money-auto-card.is-mid {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(120, 53, 15, 0.28);
}

.yt-money-auto-card.is-warn {
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(124, 45, 18, 0.28);
}

.yt-money-auto-card.is-bad {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.28);
}

.yt-money-auto-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-muted);
    margin-bottom: 0.25rem;
}

.yt-money-auto-card strong {
    display: block;
    font-size: 0.98rem;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.yt-money-auto-card p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--c-muted);
}

.yt-money-result-panel {
    margin-bottom: 0.85rem;
}

.yt-money-total strong {
    color: #86efac !important;
    font-size: 1.3rem !important;
}

.yt-money-banner {
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.yt-money-banner.is-bad {
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.yt-money-banner.is-mid {
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.yt-money-banner.is-warn {
    background: rgba(124, 45, 18, 0.35);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #fed7aa;
}

.yt-money-mono-box {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: rgba(2, 8, 20, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.yt-money-mono-box strong {
    color: var(--c-text);
    font-size: 0.9rem;
}

.yt-money-mono-box span,
.yt-money-mono-box p {
    margin: 0;
    font-size: 0.74rem;
    color: var(--c-muted);
    line-height: 1.4;
}

.yt-money-advanced {
    margin: 0.5rem 0 1rem;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    padding: 0.35rem 0.85rem 0.85rem;
}

.yt-money-advanced > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 0.15rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.yt-money-advanced > summary::-webkit-details-marker {
    display: none;
}

.yt-money-advanced-grid {
    margin-top: 0.35rem;
}

@media (max-width: 720px) {
    .yt-money-fetch-actions .calc-btn-primary {
        margin-left: 0;
        flex: 1 1 100%;
    }
    .yt-money-auto-grid {
        grid-template-columns: 1fr;
    }
}
