/*
 * AgroPoint Admin V7
 * Dedicated Filament design system. Intentionally independent from resources/css/app.css.
 * Only real font weights (400 / 500 / 700) are used to avoid synthetic Georgian glyphs.
 */
:root {
    --ag7-deep: #0d493b;
    --ag7-deep-2: #12604d;
    --ag7-green: #18a85f;
    --ag7-accent: #63e981;
    --ag7-accent-soft: #eafbee;
    --ag7-canvas: #f5f8f6;
    --ag7-surface: #ffffff;
    --ag7-text: #143a30;
    --ag7-muted: #6d7f78;
    --ag7-line: #dfe8e3;
    --ag7-line-strong: #cedbd5;
    --ag7-danger: #d83f45;
    --ag7-warning: #b77818;
    --ag7-radius: 16px;
    --ag7-radius-sm: 11px;
    --ag7-shadow: 0 10px 30px rgba(13, 73, 59, .07);
    --ag7-shadow-hover: 0 16px 38px rgba(13, 73, 59, .11);
    --ag7-font: "Segoe UI", "Noto Sans Georgian", "DejaVu Sans", Arial, sans-serif;
}

html { background: var(--ag7-canvas); }
body.fi-body,
.fi-body button,
.fi-body input,
.fi-body select,
.fi-body textarea {
    font-family: var(--ag7-font) !important;
}
.fi-body {
    background:
        radial-gradient(circle at 88% -10%, rgba(99, 233, 129, .08), transparent 26rem),
        var(--ag7-canvas) !important;
    color: var(--ag7-text) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.fi-body * { box-sizing: border-box; }

/* ---------- top bar ---------- */
.fi-topbar,
.fi-sidebar-header-ctn {
    background: linear-gradient(110deg, #0d493b 0%, #12604d 100%) !important;
    border-color: rgba(255,255,255,.08) !important;
    box-shadow: none !important;
}
.fi-topbar { min-height: 62px !important; }
.fi-topbar nav { min-height: 62px !important; }
.fi-topbar .fi-logo,
.fi-sidebar-header-ctn .fi-logo { max-height: 38px !important; }
.fi-topbar button,
.fi-topbar a { outline-offset: 3px; }
.fi-topbar-open-sidebar-btn svg { color: #fff !important; }

/* ---------- sidebar ---------- */
.fi-sidebar {
    background: #fff !important;
    border-right: 1px solid var(--ag7-line) !important;
    box-shadow: 6px 0 22px rgba(18, 63, 51, .025) !important;
}
.fi-sidebar-nav {
    padding: 16px 11px 20px !important;
    gap: 4px !important;
    scrollbar-width: thin;
    scrollbar-color: #c8d7d0 transparent;
}
.fi-sidebar-nav::-webkit-scrollbar { width: 5px; }
.fi-sidebar-nav::-webkit-scrollbar-thumb { background: #c8d7d0; border-radius: 99px; }
.fi-sidebar-group { padding: 2px !important; }
.fi-sidebar-group-label {
    margin: 13px 8px 6px !important;
    color: #7b8d85 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    letter-spacing: .055em !important;
    text-transform: none !important;
    font-weight: 700 !important;
}
.fi-sidebar-item-button {
    min-height: 43px !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    color: #465b54 !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    transition: background-color .15s ease, color .15s ease !important;
}
.fi-sidebar-item-icon { width: 19px !important; height: 19px !important; color: #8b9994 !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: #edf8f1 !important;
    color: #087d43 !important;
    box-shadow: inset 3px 0 0 #24c96b !important;
}
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: #0b9b50 !important; }
@media (hover:hover) {
    .fi-sidebar-item-button:hover { background: #f4f8f6 !important; color: #1c4a3d !important; }
}
.fi-sidebar-item-label { overflow: hidden; text-overflow: ellipsis; }
.fi-sidebar-item-badge {
    min-width: 24px !important;
    height: 24px !important;
    padding-inline: 7px !important;
    border: 1px solid #cfe8d7 !important;
    border-radius: 999px !important;
    background: #effaf2 !important;
    color: #0b8a49 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* ---------- main page rhythm ---------- */
.fi-main-ctn { background: transparent !important; }
.fi-main {
    width: min(100%, 1520px) !important;
    max-width: 1520px !important;
    padding-top: 26px !important;
    padding-bottom: 40px !important;
}
.fi-header {
    gap: 14px !important;
    margin-bottom: 22px !important;
    align-items: flex-end !important;
}
.fi-header-heading {
    color: var(--ag7-text) !important;
    font-size: clamp(25px, 2vw, 31px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.02em !important;
    font-weight: 700 !important;
}
.fi-header-subheading {
    max-width: 820px !important;
    margin-top: 4px !important;
    color: var(--ag7-muted) !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}
.fi-breadcrumbs { margin-bottom: 5px !important; }
.fi-breadcrumbs-item,
.fi-breadcrumbs-item a {
    color: #7d8d87 !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}
.fi-header-actions { gap: 8px !important; }

/* ---------- buttons ---------- */
.fi-btn {
    min-height: 41px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
.fi-btn.fi-color-primary {
    background: #5fe97d !important;
    color: #103d31 !important;
    border-color: #5fe97d !important;
}
@media (hover:hover) {
    .fi-btn.fi-color-primary:hover { background: #50dc6f !important; box-shadow: 0 8px 18px rgba(57, 195, 93, .18) !important; }
}
.fi-btn.fi-color-danger { color: #bd2d34 !important; }
.fi-btn.fi-color-danger:not(.fi-outlined) { background: #fff1f1 !important; }
.fi-icon-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border: 1px solid var(--ag7-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #557068 !important;
    box-shadow: none !important;
}
.fi-icon-btn:hover { background: #f4f8f6 !important; border-color: #c9d8d1 !important; color: #1c604c !important; }
.fi-icon-btn.fi-color-danger { border-color: #f1d0d2 !important; color: #d23e44 !important; }
.fi-icon-btn.fi-color-danger:hover { background: #fff3f3 !important; border-color: #eaaeb1 !important; }

/* ---------- sections / cards ---------- */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-chart {
    overflow: hidden;
    border: 1px solid var(--ag7-line) !important;
    border-radius: var(--ag7-radius) !important;
    background: #fff !important;
    box-shadow: var(--ag7-shadow) !important;
}
.fi-section-header {
    padding: 17px 19px !important;
    background: #fff !important;
    border-bottom: 1px solid #edf2ef !important;
}
.fi-section-header-heading {
    color: var(--ag7-text) !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}
.fi-section-header-description {
    margin-top: 4px !important;
    color: var(--ag7-muted) !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}
.fi-section-content { padding: 19px !important; }

/* ---------- form controls ---------- */
.fi-fo-field-wrp-label,
.fi-fo-field-label-content {
    color: #284e43 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}
.fi-fo-field-label-required-mark { color: #d9484c !important; }
.fi-fo-field-wrp-helper-text,
.fi-fo-field-wrp-hint,
.fi-fo-field .text-sm.text-gray-500 {
    color: #71837c !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}
.fi-fo-field-wrp-error-message {
    color: #c92e35 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}
.fi-input-wrp,
.fi-fo-select-wrp {
    min-height: 44px !important;
    border-color: var(--ag7-line-strong) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(14, 58, 47, .02) !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.fi-input-wrp:focus-within,
.fi-fo-select-wrp:focus-within {
    border-color: #59bb7a !important;
    box-shadow: 0 0 0 3px rgba(70, 196, 105, .12) !important;
}
.fi-input,
.fi-select-input,
.fi-textarea {
    color: #1d3d34 !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}
.fi-input::placeholder,
.fi-textarea::placeholder { color: #98a7a1 !important; opacity: 1 !important; }
.fi-fo-rich-editor,
.fi-fo-markdown-editor,
.fi-fo-file-upload-input-ctn,
.fi-fo-repeater-item,
.fi-fo-builder-item {
    border-color: var(--ag7-line) !important;
    border-radius: 12px !important;
}
.fi-fo-rich-editor-toolbar { background: #f8faf9 !important; border-bottom-color: #e9efec !important; }
.fi-fo-toggle button { outline-offset: 2px; }

/* ---------- tables ---------- */
.fi-ta-ctn { border-radius: 16px !important; }
.fi-ta-header {
    min-height: 60px !important;
    padding: 11px 14px !important;
    border-bottom: 1px solid var(--ag7-line) !important;
    background: #fff !important;
}
.fi-ta-search-field { min-width: min(320px, 48vw) !important; }
.fi-ta-content { overflow-x: auto !important; }
.fi-ta-table { width: 100% !important; min-width: 760px; }
.fi-ta-header-cell {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    background: #f5f8f6 !important;
    color: #62766e !important;
    border-bottom: 1px solid #e8efeb !important;
}
.fi-ta-header-cell-label,
.fi-ta-header-cell button {
    font-size: 11.8px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: .005em !important;
}
.fi-ta-row { min-height: 64px !important; transition: background-color .12s ease !important; }
.fi-ta-row:not(:last-child) { border-bottom-color: #edf2ef !important; }
@media (hover:hover) { .fi-ta-row:hover { background: #fbfdfc !important; } }
.fi-ta-cell { padding-top: 13px !important; padding-bottom: 13px !important; }
.fi-ta-text-item-label,
.fi-ta-text-item {
    color: #213e35 !important;
    font-size: 13.3px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}
.fi-ta-text-item-description {
    margin-top: 3px !important;
    color: #80908a !important;
    font-size: 11.8px !important;
    line-height: 1.4 !important;
}
.fi-ta-actions { gap: 7px !important; padding-inline: 10px !important; white-space: nowrap !important; }
.fi-ta-record-checkbox { transform: scale(.94); }
.fi-ta-footer {
    min-height: 58px !important;
    padding: 10px 14px !important;
    border-top: 1px solid #e8efeb !important;
    background: #fff !important;
}
.fi-ta-pagination { font-size: 12.5px !important; }
.fi-ta-empty-state { min-height: 250px !important; padding: 42px 22px !important; }
.fi-ta-empty-state-heading { color: var(--ag7-text) !important; font-size: 16px !important; font-weight: 700 !important; }
.fi-ta-empty-state-description { max-width: 520px; color: var(--ag7-muted) !important; font-size: 12.5px !important; line-height: 1.55 !important; }
.fi-badge {
    min-height: 23px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

/* ---------- wizard ---------- */
.fi-sc-wizard {
    overflow: visible !important;
    border: 1px solid var(--ag7-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: var(--ag7-shadow) !important;
}
.fi-sc-wizard-header {
    border-radius: 16px 16px 0 0;
    padding: 12px 14px !important;
    background: #f8faf9 !important;
    border-bottom: 1px solid #e9efec !important;
}
.fi-sc-wizard-header-step-btn {
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
}
.fi-sc-wizard-header-step-label {
    color: #2f554a !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}
.fi-sc-wizard-header-step-description {
    margin-top: 2px !important;
    color: #81918b !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}
.fi-sc-wizard-step { padding: 20px !important; }
.fi-sc-wizard-footer { padding: 12px 20px 18px !important; }

/* ---------- dropdowns / modals / notifications ---------- */
.fi-dropdown-panel,
.fi-modal-window {
    border: 1px solid var(--ag7-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 50px rgba(13, 60, 48, .14) !important;
}
.fi-dropdown-list-item { min-height: 40px !important; border-radius: 8px !important; font-size: 13px !important; }
.fi-modal-header-heading { color: var(--ag7-text) !important; font-size: 18px !important; font-weight: 700 !important; }
.fi-modal-description { color: var(--ag7-muted) !important; font-size: 13px !important; line-height: 1.55 !important; }
.fi-no-notification { border-radius: 12px !important; }

/* ---------- topbar quick links ---------- */
.ag-admin-quickbar { display: flex; align-items: center; gap: 7px; padding-right: 8px; }
.ag-admin-quicklink {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
    background: rgba(255,255,255,.035); color: rgba(255,255,255,.92);
    font-size: 11.5px; line-height: 1.2; font-weight: 700;
    transition: background-color .15s ease, border-color .15s ease;
}
.ag-admin-quicklink svg { width: 15px; height: 15px; flex: none; }
.ag-admin-quicklink:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.27); }
.ag-admin-quicklink-primary { background: #63e981; border-color: #63e981; color: #103c31; }
.ag-admin-quicklink-primary:hover { background: #55dc72; color: #103c31; }

/* ---------- dashboard: practical command center, not a marketing landing ---------- */
.ag-workspace-shell { display: grid; gap: 14px; margin-bottom: 8px; }
.ag-workspace-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 26px; align-items: center;
    min-height: 218px; padding: 28px 30px;
    border-radius: 18px; background: #0d493b; color: #fff;
    box-shadow: 0 14px 34px rgba(12, 62, 49, .13);
}
.ag-workspace-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image: linear-gradient(90deg, rgba(8,50,40,.96) 0%, rgba(13,76,59,.9) 52%, rgba(13,76,59,.58) 100%), var(--ag-workspace-image);
    background-size: cover; background-position: center;
}
.ag-workspace-hero::after {
    content:""; position:absolute; inset:0; z-index:-1;
    background: linear-gradient(90deg, transparent 0 70%, rgba(99,233,129,.04));
}
.ag-workspace-kicker { display: block; margin-bottom: 7px; color: #9ff0ad; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.ag-workspace-hero h1 { max-width: 740px; margin: 0; color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.16; font-weight: 700; letter-spacing: -.025em; }
.ag-workspace-hero p { max-width: 720px; margin: 11px 0 0; color: rgba(255,255,255,.73); font-size: 13.5px; line-height: 1.6; }
.ag-workspace-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ag-workspace-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:39px; padding:8px 12px; border-radius:10px; font-size:12px; line-height:1.2; font-weight:700; transition:background-color .15s ease,border-color .15s ease; }
.ag-workspace-btn svg { width:16px; height:16px; }
.ag-workspace-btn.primary { background:#63e981; color:#103c31; border:1px solid #63e981; }
.ag-workspace-btn.glass { color:#fff; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.06); }
.ag-workspace-hero-panel { padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(5,42,32,.42); }
.ag-workspace-panel-label { display:block; margin-bottom:5px; color:rgba(255,255,255,.55); font-size:10.5px; line-height:1.4; font-weight:500; }
.ag-workspace-mini-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:40px; padding:8px 4px; color:#fff; border-bottom:1px solid rgba(255,255,255,.1); font-size:12.5px; }
.ag-workspace-mini-row:last-child { border-bottom:0; }
.ag-workspace-mini-row strong { color:#78ef8c; font-size:15px; font-weight:700; }
.ag-workspace-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ag-workspace-stat { position:relative; min-height:104px; padding:17px 17px 15px; border:1px solid var(--ag7-line); border-radius:14px; background:#fff; box-shadow:0 7px 20px rgba(13,73,59,.045); }
.ag-workspace-stat::before { content:""; position:absolute; left:0; top:16px; bottom:16px; width:3px; border-radius:3px; background:#23b963; }
.ag-workspace-stat strong { display:block; color:var(--ag7-text); font-size:25px; line-height:1; font-weight:700; }
.ag-workspace-stat span { display:block; margin-top:7px; color:#31574c; font-size:12px; font-weight:700; }
.ag-workspace-stat small { display:block; margin-top:4px; color:#85958f; font-size:10.5px; line-height:1.35; }
.ag-workspace-listing-center,
.ag-workspace-actions-section,
.ag-workspace-guide { padding:20px; border:1px solid var(--ag7-line); border-radius:16px; background:#fff; box-shadow:var(--ag7-shadow); }
.ag-workspace-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:14px; }
.ag-workspace-section-head span { color:#159653; font-size:10.5px; font-weight:700; }
.ag-workspace-section-head h2 { margin:4px 0 0; color:var(--ag7-text); font-size:18px; line-height:1.32; font-weight:700; letter-spacing:-.01em; }
.ag-workspace-text-link { display:inline-flex; align-items:center; gap:5px; flex:none; color:#117b4a; font-size:11.5px; font-weight:700; }
.ag-workspace-text-link svg { width:14px; height:14px; }
.ag-workspace-listing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.ag-workspace-listing-card { overflow:hidden; display:grid; grid-template-rows:112px 1fr; min-height:282px; border:1px solid #e3ebe7; border-radius:14px; background:#fff; }
.ag-workspace-listing-media { background-image:var(--ag-listing-image); background-size:cover; background-position:center; }
.ag-workspace-listing-copy { padding:14px; }
.ag-workspace-listing-meta { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.ag-workspace-listing-meta span { padding:3px 7px; border-radius:999px; background:#eff8f2; color:#4f7166; font-size:9.8px; font-weight:700; }
.ag-workspace-listing-copy h3 { margin:0; color:var(--ag7-text); font-size:15px; line-height:1.35; font-weight:700; }
.ag-workspace-listing-copy p { min-height:43px; margin:6px 0 12px; color:#75867f; font-size:11px; line-height:1.5; }
.ag-workspace-listing-actions { display:flex; align-items:center; gap:9px; }
.ag-workspace-manage-link { display:inline-flex; align-items:center; gap:4px; color:#107e4a; font-size:11px; font-weight:700; }
.ag-workspace-manage-link svg { width:13px; height:13px; }
.ag-workspace-actions-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ag-workspace-action-card { display:grid; grid-template-columns:38px minmax(0,1fr) 16px; align-items:center; gap:10px; min-height:91px; padding:13px; border:1px solid #e3ebe7; border-radius:13px; background:#fff; transition:border-color .15s ease,background-color .15s ease; }
.ag-workspace-action-card:hover { border-color:#bfd9cb; background:#fbfdfc; }
.ag-workspace-action-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#edf9f0; color:#149652; }
.ag-workspace-action-icon svg { width:19px; height:19px; }
.ag-workspace-action-copy { display:flex; flex-direction:column; min-width:0; }
.ag-workspace-action-copy strong { color:var(--ag7-text); font-size:11.8px; line-height:1.35; font-weight:700; }
.ag-workspace-action-copy small { margin-top:3px; color:#81918b; font-size:9.8px; line-height:1.4; }
.ag-workspace-arrow { color:#9aaba4; }
.ag-workspace-arrow svg { width:15px; height:15px; }
.ag-workspace-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ag-workspace-guide-grid > div { display:grid; grid-template-columns:34px 1fr; column-gap:10px; row-gap:2px; padding:13px; border:1px solid #e6ede9; border-radius:12px; background:#f8faf9; }
.ag-workspace-guide-grid b { grid-row:1/3; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#fff; border:1px solid #d9e5df; color:#138e4e; font-size:10px; }
.ag-workspace-guide-grid strong { color:var(--ag7-text); font-size:11.5px; font-weight:700; }
.ag-workspace-guide-grid span { color:#7b8d86; font-size:10px; line-height:1.4; }

/* ---------- custom plan / balance widgets ---------- */
.ag-plan-widget,
.ag-balance-widget { overflow:hidden; border:1px solid var(--ag7-line); border-radius:16px; background:#fff; box-shadow:var(--ag7-shadow); }
.ag-plan-widget { padding:19px; }
.ag-plan-widget-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:14px; }
.ag-plan-widget-head > div > span,
.ag-balance-summary > span { color:#138e4e; font-size:10px; font-weight:700; }
.ag-plan-widget-head h3 { margin:4px 0; color:var(--ag7-text); font-size:18px; font-weight:700; }
.ag-plan-widget-head p { max-width:700px; margin:0; color:var(--ag7-muted); font-size:11.5px; line-height:1.55; }
.ag-plan-widget-head > a { display:inline-flex; align-items:center; min-height:36px; padding:7px 10px; border:1px solid var(--ag7-line); border-radius:9px; background:#f8faf9; color:#147a49; font-size:11px; font-weight:700; }
.ag-current-plan { display:grid; grid-template-columns:1.3fr 1fr .7fr; gap:10px; padding:13px 15px; margin-bottom:14px; border-radius:12px; background:#114d3e; color:#fff; }
.ag-current-plan > div { display:flex; flex-direction:column; gap:2px; }
.ag-current-plan small { color:rgba(255,255,255,.62); font-size:9.5px; }
.ag-current-plan strong { font-size:11.5px; font-weight:700; }
.ag-current-plan strong.active { color:#80f093; }
.ag-plan-select-wrap { display:grid; gap:12px; }
.ag-selected-plan-card { display:grid; grid-template-columns:1fr 1.8fr; gap:12px; padding:14px; border:1px solid #e2ebe6; border-radius:12px; background:#f7faf8; }
.ag-selected-plan-main { display:flex; flex-direction:column; }
.ag-selected-plan-main small { color:#81928b; font-size:9.5px; }
.ag-selected-plan-main strong { margin-top:2px; color:var(--ag7-text); font-size:14px; font-weight:700; }
.ag-selected-plan-main span { margin-top:5px; color:#137d49; font-size:19px; font-weight:700; }
.ag-plan-features { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.ag-plan-features > div { display:flex; flex-direction:column; justify-content:center; min-height:58px; padding:7px; border:1px solid #e4ece8; border-radius:10px; background:#fff; text-align:center; }
.ag-plan-features b { color:var(--ag7-text); font-size:15px; font-weight:700; }
.ag-plan-features span { color:#80918b; font-size:8.8px; }
.ag-plan-widget-action { display:flex; justify-content:flex-end; }
.ag-balance-widget { display:grid; grid-template-columns:1fr 1.2fr; }
.ag-balance-summary { padding:20px; background:#114d3e; color:#fff; }
.ag-balance-summary > span { color:#80f093; }
.ag-balance-summary strong { display:block; margin-top:6px; font-size:28px; font-weight:700; }
.ag-balance-summary p { max-width:520px; margin:8px 0 0; color:rgba(255,255,255,.68); font-size:10.5px; line-height:1.5; }
.ag-balance-form { display:grid; align-content:center; gap:10px; padding:20px; }
.ag-balance-form > div:last-child { display:flex; justify-content:flex-end; }

/* ---------- Google Maps ---------- */
.ag-location-map { overflow:hidden; border:1px solid var(--ag7-line) !important; border-radius:13px !important; }
.ag-location-map .gm-style { border-radius:13px; }
.gm-style .gm-style-iw-c { border-radius:12px !important; box-shadow:0 10px 30px rgba(0,0,0,.14) !important; }

/* ---------- built-in Filament auth / simple pages ---------- */
.fi-simple-layout {
    position:relative !important;
    min-height:100vh !important;
    overflow:hidden;
    background:
        radial-gradient(circle at 78% 15%, rgba(99,233,129,.10), transparent 24rem),
        #f3f7f5 !important;
}
.fi-simple-layout::before {
    content:"";
    position:fixed; inset:0 52% 0 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(99,233,129,.22), transparent 16rem),
        linear-gradient(145deg,#0b4235 0%,#12604d 64%,#187258 100%);
}
.fi-simple-layout::after {
    content:"AGROPOINT";
    position:fixed; left:clamp(34px,6vw,92px); bottom:clamp(42px,8vh,92px);
    color:rgba(255,255,255,.15); font-size:clamp(48px,7vw,108px); line-height:1; font-weight:700; letter-spacing:-.05em;
}
.fi-simple-main-ctn {
    position:relative !important; z-index:2;
    width:48% !important; min-width:520px !important; min-height:100vh !important;
    margin-left:auto !important; padding:48px clamp(38px,6vw,86px) !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
}
.fi-simple-main {
    width:100% !important; max-width:470px !important; padding:32px !important;
    border:1px solid var(--ag7-line) !important; border-radius:18px !important;
    background:rgba(255,255,255,.98) !important; box-shadow:0 24px 70px rgba(13,73,59,.12) !important;
}
.fi-simple-header { margin-bottom:22px !important; gap:8px !important; }
.fi-simple-header .fi-logo { max-height:52px !important; }
.fi-simple-header-heading { color:var(--ag7-text) !important; font-size:25px !important; line-height:1.2 !important; font-weight:700 !important; letter-spacing:-.02em !important; }
.fi-simple-header-subheading { color:var(--ag7-muted) !important; font-size:12.5px !important; line-height:1.55 !important; }
.fi-simple-page-content form { gap:15px !important; }
.fi-simple-main .fi-btn { width:100%; min-height:44px !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .ag-workspace-actions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ag-workspace-listing-grid { grid-template-columns: 1fr; }
    .ag-workspace-listing-card { grid-template-columns: 180px 1fr; grid-template-rows:1fr; min-height:170px; }
    .ag-workspace-listing-copy p { min-height:0; }
}
@media (max-width: 900px) {
    .fi-main { padding-inline: 18px !important; }
    .ag-workspace-hero { grid-template-columns:1fr; min-height:auto; }
    .ag-workspace-hero-panel { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .ag-workspace-panel-label { grid-column:1/-1; }
    .ag-workspace-mini-row { border:0; padding:9px; border-radius:9px; background:rgba(255,255,255,.055); }
    .ag-workspace-guide-grid { grid-template-columns:1fr; }
    .fi-simple-layout::before { inset:0 60% 0 0; }
    .fi-simple-main-ctn { width:62% !important; min-width:0 !important; }
}
@media (max-width: 767px) {
    .fi-main { padding:16px 11px 30px !important; }
    .fi-header { align-items:flex-start !important; gap:10px !important; margin-bottom:16px !important; }
    .fi-header-heading { font-size:23px !important; }
    .fi-header-actions { width:100%; justify-content:flex-start !important; flex-wrap:wrap !important; }
    .fi-header-actions .fi-btn { min-height:40px !important; }
    .fi-section-header { padding:14px !important; }
    .fi-section-content { padding:14px !important; }
    .fi-ta-header { padding:10px !important; }
    .fi-ta-search-field { min-width:0 !important; width:100% !important; }
    .fi-ta-table { min-width:720px; }
    .fi-ta-cell { padding-top:11px !important; padding-bottom:11px !important; }
    .fi-sc-wizard-header { overflow-x:auto !important; padding:9px !important; }
    .fi-sc-wizard-header-step-btn { flex:0 0 190px !important; min-height:54px !important; }
    .fi-sc-wizard-step { padding:14px !important; }
    .ag-workspace-hero { padding:21px 18px; border-radius:15px; }
    .ag-workspace-hero h1 { font-size:26px; }
    .ag-workspace-hero-panel { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .ag-workspace-stats { grid-template-columns:1fr 1fr; gap:8px; }
    .ag-workspace-stat { min-height:96px; padding:14px; }
    .ag-workspace-listing-center,
    .ag-workspace-actions-section,
    .ag-workspace-guide { padding:14px; border-radius:14px; }
    .ag-workspace-section-head { align-items:flex-start; flex-direction:column; gap:7px; }
    .ag-workspace-section-head h2 { font-size:16px; }
    .ag-workspace-listing-card { grid-template-columns:1fr; grid-template-rows:105px 1fr; min-height:0; }
    .ag-workspace-actions-grid { grid-template-columns:1fr; }
    .ag-workspace-action-card { min-height:78px; }
    .ag-plan-widget { padding:14px; }
    .ag-plan-widget-head { flex-direction:column; gap:8px; }
    .ag-selected-plan-card { grid-template-columns:1fr; }
    .ag-plan-features { grid-template-columns:1fr 1fr; }
    .ag-current-plan { grid-template-columns:1fr 1fr; }
    .ag-current-plan > div:last-child { grid-column:1/-1; }
    .ag-balance-widget { grid-template-columns:1fr; }
    .ag-balance-summary,.ag-balance-form { padding:16px; }
    .fi-simple-layout::before,.fi-simple-layout::after { display:none; }
    .fi-simple-main-ctn { width:100% !important; min-height:100vh !important; padding:22px 14px !important; }
    .fi-simple-main { max-width:470px !important; padding:24px 20px !important; border-radius:15px !important; }
}
@media (max-width: 480px) {
    .ag-workspace-stats { grid-template-columns:1fr; }
    .ag-workspace-hero-panel { grid-template-columns:1fr; }
    .ag-workspace-panel-label { grid-column:auto; }
    .ag-workspace-hero-actions { display:grid; grid-template-columns:1fr; }
    .ag-workspace-btn { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
