/**
 * ImportPro Ghana - Main Stylesheet
 * Mobile-first, lightweight marketing and admin styles
 */

:root {
    --primary: #085041;
    --primary-light: #0b6a56;
    --primary-dark: #05382e;
    --accent: #d4af37;
    --accent-light: #e7c454;
    --white: #ffffff;
    --off-white: #f8faf8;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --text: #1b2430;
    --text-secondary: #536072;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow: 0 6px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all .2s ease;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .75rem;
    color: var(--gray-900);
    line-height: 1.2;
    font-family: var(--font-heading);
}

p {
    margin: 0 0 1rem;
}

ul {
    padding-left: 1.2rem;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 4.5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: .75rem;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .8rem;
    border-radius: var(--radius-full);
    background: rgba(8, 80, 65, .08);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.35rem;
    border: 0;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--gray-900);
}

.btn-accent:hover {
    background: var(--accent-light);
    color: var(--gray-900);
}

.btn-outline {
    border: 1px solid rgba(8, 80, 65, .18);
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(8, 80, 65, .06);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,.3);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,.12);
    color: var(--white);
}

.btn-sm {
    padding: .7rem 1rem;
    font-size: .85rem;
}

.btn-lg {
    padding: 1rem 1.5rem;
}

.btn-full {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: .75rem;
    font-weight: 700;
}

.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-secondary); }

.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,.88);
    font-size: .82rem;
}

.top-bar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-links a {
    color: rgba(255,255,255,.88);
    font-weight: 600;
}

.top-bar-links a:hover {
    color: var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--primary);
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-copy strong {
    display: block;
    font-size: 1rem;
}

.logo-copy small {
    display: block;
    color: var(--text-secondary);
    font-size: .76rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.nav-link {
    padding: .7rem .9rem;
    border-radius: 10px;
    color: var(--gray-700);
    font-size: .92rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(8, 80, 65, .08);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .1);
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--gray-800);
    border-radius: 2px;
}

.hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.18), transparent 28%),
        linear-gradient(180deg, rgba(8,80,65,.07), transparent 40%),
        var(--off-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-top: 1rem;
}

.hero p.lead {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 680px;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-box {
    padding: 1rem;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: var(--shadow-sm);
}

.stat-box strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
}

.hero-panel,
.highlight-panel {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.6rem;
}

.hero-panel ul,
.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.hero-panel li,
.check-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .85rem;
}

.hero-panel li::before,
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 700;
}

.offer-grid,
.blog-grid,
.faq-grid,
.feature-grid,
.info-grid,
.metric-grid {
    display: grid;
    gap: 1.5rem;
}

.offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.offer-card.featured {
    border-color: rgba(212,175,55,.45);
    box-shadow: var(--shadow-lg);
}

.offer-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.price-row {
    display: flex;
    align-items: flex-end;
    gap: .6rem;
}

.price-main {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--primary);
}

.price-compare {
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 600;
}

.card-kicker {
    color: var(--accent);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
}

.card-actions {
    margin-top: auto;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.form-card,
.content-card,
.calc-card,
.result-card,
.auth-card,
.admin-card {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-card,
.content-card,
.calc-card,
.result-card,
.auth-card,
.admin-card,
.hero-panel,
.highlight-panel {
    padding: 1.6rem;
}

label {
    display: block;
    margin-bottom: .45rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-800);
}

.input,
.select,
textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: .9rem 1rem;
    font-size: .95rem;
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--text);
}

.input:focus,
.select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 80, 65, .08);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-hint {
    margin-top: .35rem;
    font-size: .8rem;
    color: var(--text-secondary);
}

.alert {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: .92rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error,
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: .85rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.notice-list li:last-child {
    border-bottom: 0;
}

.faq-item {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: var(--white);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 1.1rem 1.2rem;
    text-align: left;
    font: inherit;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 1.2rem 1.2rem;
    color: var(--text-secondary);
}

.faq-item.open .faq-answer {
    display: block;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.kpi-card {
    padding: 1rem;
    border-radius: 14px;
    background: var(--off-white);
    border: 1px solid rgba(15, 23, 42, .06);
}

.kpi-card strong {
    display: block;
    margin-top: .2rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.cta-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 3rem 0;
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
    color: var(--white);
}

.cta-band .eyebrow {
    background: rgba(255,255,255,.12);
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer {
    background: #081c18;
    color: rgba(255,255,255,.78);
    padding: 3rem 0 1.5rem;
}

.site-footer h4,
.site-footer a {
    color: var(--white);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li,
.site-footer p {
    margin-bottom: .7rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-meta {
    color: rgba(255,255,255,.56);
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
    z-index: 90;
    font-size: 1.3rem;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(8, 28, 24, .92);
    backdrop-filter: blur(10px);
    transform: translateY(120%);
    transition: transform .25s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.blog-card h3 a {
    color: inherit;
}

.blog-meta {
    font-size: .82rem;
    color: var(--text-secondary);
    margin-bottom: .8rem;
}

.post-content {
    color: var(--text);
}

.post-content p,
.post-content li {
    color: var(--text);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb-sep {
    color: var(--gray-400);
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px dashed rgba(15, 23, 42, .12);
}

.result-page {
    background: var(--off-white);
}

.result-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.result-card {
    max-width: 760px;
    width: 100%;
}

.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-icon {
    background: #dcfce7;
    color: #15803d;
}

.failed-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.result-details {
    margin: 1.5rem 0;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.result-row:last-child {
    border-bottom: 0;
}

.result-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.result-value {
    font-weight: 700;
    color: var(--gray-900);
    text-align: right;
}

.download-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--off-white);
}

.download-card h4 {
    margin-bottom: .35rem;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.5rem;
}

.calc-results {
    display: none;
}

.calc-results.visible {
    display: block;
}

.calc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.calc-summary-card {
    padding: 1rem;
    border-radius: 14px;
    background: var(--off-white);
    border: 1px solid rgba(15, 23, 42, .06);
}

.calc-summary-card strong {
    display: block;
    margin-top: .3rem;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.calc-summary-card.primary {
    background: var(--primary);
}

.calc-summary-card.primary small,
.calc-summary-card.primary strong {
    color: var(--white);
}

.calc-recommendation {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
}

.calc-recommendation.excellent {
    background: #dcfce7;
    color: #166534;
}

.calc-recommendation.good {
    background: #ecfccb;
    color: #3f6212;
}

.calc-recommendation.average {
    background: #ffedd5;
    color: #9a3412;
}

.calc-recommendation.low {
    background: #fee2e2;
    color: #991b1b;
}

.admin-shell {
    min-height: 100vh;
    background: var(--gray-100);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--gray-900);
    color: var(--white);
    padding: 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: block;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.admin-brand small {
    display: block;
    color: var(--gray-400);
}

.admin-nav {
    display: grid;
    gap: .35rem;
}

.admin-nav a {
    display: block;
    padding: .8rem .95rem;
    border-radius: 12px;
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255,255,255,.08);
    color: var(--white);
}

.admin-main {
    padding: 1.5rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-topbar h1 {
    margin-bottom: .2rem;
}

.admin-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.metric-card {
    padding: 1.2rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: var(--shadow-sm);
}

.metric-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: .35rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .95rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
    font-size: .92rem;
}

th {
    color: var(--text-secondary);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

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

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(8,80,65,.12), rgba(8,80,65,.03));
}

.auth-card {
    max-width: 440px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo .logo-mark {
    margin: 0 auto .8rem;
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-section,
    .calc-layout,
    .admin-layout,
    .offer-grid,
    .blog-grid,
    .feature-grid,
    .footer-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .form-grid,
    .calc-summary-grid,
    .kpi-row,
    .grid-2,
    .grid-3,
    .grid-4,
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 820px) {
    .main-nav {
        position: fixed;
        top: 120px;
        left: 1rem;
        right: 1rem;
        padding: .75rem;
        border-radius: 18px;
        background: var(--white);
        border: 1px solid rgba(15, 23, 42, .08);
        box-shadow: var(--shadow-lg);
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-block;
    }

    .header-actions .btn {
        display: none;
    }

    .top-bar-inner,
    .cta-band-inner,
    .footer-bottom,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats,
    .form-grid,
    .calc-summary-grid,
    .kpi-row,
    .grid-2,
    .grid-3,
    .grid-4,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-row {
        flex-direction: column;
    }

    .result-value {
        text-align: left;
    }
}

@media (max-width: 540px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding-top: 4rem;
    }

    .container {
        width: min(100% - 1.25rem, 1120px);
    }

    .btn,
    .btn-lg {
        width: 100%;
    }

    .hero-actions,
    .inline-actions,
    .cta-band-actions,
    .table-actions {
        flex-direction: column;
    }
}

/* Duty calculator */
.duty-mode {
    display: flex;
    gap: 0.4rem;
    margin: 1.25rem 0 1rem;
    padding: 0.3rem;
    background: var(--off-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
}

.duty-mode-btn {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.duty-mode-btn.active {
    background: var(--primary);
    color: var(--white);
}

.duty-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.duty-check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--primary);
}

.duty-breakdown h3 {
    margin-bottom: 0.75rem;
}

.duty-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.duty-line strong {
    white-space: nowrap;
    color: var(--gray-900);
}

.duty-line.total {
    border-bottom: none;
    border-top: 2px solid var(--primary);
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}
.calc-share {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.calc-share h4 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.calc-share-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.calc-share-row .input {
    flex: 1;
    min-width: 0;
}

.calc-share-status {
    min-height: 1.2em;
    margin: 0.5rem 0;
    color: var(--primary);
}

.calc-share-status.is-error {
    color: #b91c1c;
}

@media (max-width: 560px) {
    .calc-share-row {
        flex-direction: column;
    }
}
