:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0; /* CRITICAL FOR iOS SAFARI TO PREVENT AUTO EXPANSION */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg, table, input, select, textarea {
    max-width: 100%;
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 450px;
    height: 450px;
    background: #4338ca;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 380px;
    height: 380px;
    background: #047857;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 280px;
    height: 280px;
    background: #0f766e;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, 40px) scale(1.08); }
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 24px;
    width: 95%;
    box-sizing: border-box;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.glass-panel-inner {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.glass-panel-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header-title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.header-title span { color: var(--primary); }
.header-title p { color: var(--text-secondary); font-size: 1.05rem; }

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-btn-pdf {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-btn-pdf:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.header-btn-settings {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.header-btn-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.status-pill:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.18);
}

.pill-label {
    color: #94a3b8;
    font-weight: 500;
}

.pill-val {
    color: #f8fafc;
    font-weight: 600;
}

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.connected {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}
.dot.disconnected { 
    background-color: var(--danger);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.shadow-btn {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}
.shadow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

/* NPK Soil Health */
.soil-health {
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.soil-health h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.npk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.npk-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.npk-item h4 {
    margin-top: 12px;
    font-weight: 600;
}
.npk-item small { color: var(--text-secondary); }

.npk-circle {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 4px solid var(--glass-border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
    box-sizing: border-box;
}

.npk-circle .val {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}
.npk-circle .unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Sensor Grid (Soil Nutrition Average) */
.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sensor-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sensor-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.sensor-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.2;
    word-break: break-all;
}

.sensor-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
    word-break: break-word;
}

/* Agri Status Tags */
.agri-status-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.agri-status-tag.status-optimal {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.agri-status-tag.status-low {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.agri-status-tag.status-high {
    background: rgba(59, 130, 246, 0.15);
    color: #38bdf8;
    border-color: rgba(59, 130, 246, 0.4);
}

.agri-status-tag.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.icon {
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.metric-data {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.metric-data h3 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.metric-data p {
    font-size: 1.65rem;
    font-weight: 600;
    margin: 4px 0;
    line-height: 1.2;
    word-break: break-all;
}

/* Content Split Layout */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.left-column-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Control Panel */
.control-panel, .chart-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.control-panel h2, .chart-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    word-break: break-word;
}

.tank-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tank {
    background: rgba(0,0,0,0.2);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tank h3 { font-size: 1.0rem; margin-bottom: 8px; word-break: break-word; }

.valves-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.valve-item {
    background: rgba(0,0,0,0.2);
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.valve-item span {
    word-break: break-word;
    flex: 1;
    padding-right: 6px;
    font-size: 0.9rem;
}

.valve-item.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Switch */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; box-sizing: border-box; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    transition: .3s;
}
.slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px; left: 4px; bottom: 4px;
    background-color: #94a3b8; transition: .3s;
}
input:checked + .slider { background-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
input:checked + .slider:before { transform: translateX(22px); background-color: white; }
.slider.round { border-radius: 30px; }
.slider.round:before { border-radius: 50%; }

/* Smart Actions */
.smart-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.macro-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-blue { background: #3b82f6; box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-green { background: #10b981; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-red { background: #ef4444; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }

/* Chart Panel Layout */
.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.chart-kpi-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-kpi-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.chart-kpi-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.kpi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kpi-title {
    color: #94a3b8;
    font-weight: 500;
}

.kpi-value {
    color: #ffffff;
    font-weight: 700;
    margin-left: auto;
}

/* Toolbar & Filters */
.chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.filter-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.4);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.chart-time-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
}

.time-label {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 500;
}

.time-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.time-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.time-btn.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: #10b981;
    font-weight: 700;
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.alert-banner {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--danger);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 0.9rem;
    box-sizing: border-box;
    width: 100%;
}
.hidden { display: none !important; }

/* Progress UI */
.progress-banner {
    background: rgba(15, 23, 42, 0.8);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin-bottom: 18px;
    box-sizing: border-box;
    width: 100%;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.bg-blue { background: var(--primary); }
.bg-green { background: var(--success); }

/* Table Responsive Scrolling Wrapper */
.table-responsive-container, [style*="overflow-x: auto"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Universal Weather 12-Hour Forecast (Desktop PC & Mobile Horizontal Scroll) */
#forecast-12h-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    padding: 6px 2px 14px 2px !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
}

#forecast-12h-container::-webkit-scrollbar {
    height: 6px;
}
#forecast-12h-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}
#forecast-12h-container::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
#forecast-12h-container::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}

.forecast-card, #forecast-12h-container > div {
    flex: 0 0 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

.forecast-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.4);
}

.table-scroll-hint {
    display: none;
    font-size: 0.74rem;
    color: #38bdf8;
    text-align: right;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Terminal Log */
.terminal-log {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    max-height: 240px;
    overflow-y: auto;
    color: #94a3b8;
    line-height: 1.5;
    word-break: break-all;
    box-sizing: border-box;
    width: 100%;
}

.log-line { margin-bottom: 3px; }
.log-line.text-blue { color: #38bdf8; }
.log-line.text-green { color: #34d399; }
.log-line.text-red { color: #ef4444; font-weight: bold; }
.log-line.text-yellow { color: #f59e0b; }

/* Input Glass */
.input-glass {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.88rem;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-glass:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Settings Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
}

.modal-content {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    animation: modalPop 0.22s ease-out;
    box-sizing: border-box;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #f8fafc;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.settings-tab-bar {
    display: flex;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.settings-tab-bar::-webkit-scrollbar { display: none; }

.settings-tab-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.settings-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
    box-sizing: border-box;
}

.modal-tab-panel { display: none; width: 100%; box-sizing: border-box; }
.modal-tab-panel.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-footer {
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    box-sizing: border-box;
}

/* Mobile Bottom Floating Navigation Bar (Dock) */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: 60px;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 9999;
    padding: 4px 6px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    max-width: 58px;
    box-sizing: border-box;
}

.dock-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 2px;
}

.dock-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.dock-item:hover, .dock-item:active {
    color: #f8fafc;
}

.dock-item.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

/* ========================================================================= */
/* COMPREHENSIVE RESPONSIVE DESIGN & MOBILE FIXES (iOS & Android)            */
/* ========================================================================= */

@media (max-width: 1100px) {
    .content-split {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    /* Outer container fit */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 70px auto !important;
        padding: 10px 8px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .mobile-bottom-dock {
        display: flex !important;
        height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: max(4px, env(safe-area-inset-bottom, 4px)) !important;
    }

    .table-scroll-hint {
        display: block !important;
    }

    /* Header styling */
    header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-title h1 {
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    .header-title p {
        font-size: 0.8rem !important;
        word-break: break-word !important;
    }

    .header-controls {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 4px !important;
    }

    .header-controls .btn, .header-controls a, .header-btn-pdf, .header-btn-settings {
        width: 100% !important;
        min-height: 36px !important;
        height: 36px !important;
        padding: 4px 8px !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        gap: 5px !important;
    }

    .header-controls .btn span, .header-controls a span {
        font-size: 0.76rem !important;
        white-space: nowrap !important;
    }

    /* Diagnostics Ribbon */
    .system-status-bar {
        padding: 10px 12px !important;
        margin-bottom: 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .status-ribbon {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    .status-pill {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.72rem !important;
        padding: 5px 6px !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    /* Soil Health & NPK 2x2 */
    .soil-health {
        padding: 12px 10px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .npk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .npk-circle {
        width: 76px !important;
        height: 76px !important;
        border-width: 3px !important;
    }

    .npk-circle .val {
        font-size: 1.25rem !important;
    }

    .npk-item h4 {
        font-size: 0.78rem !important;
        margin-top: 6px !important;
    }

    .npk-item small {
        font-size: 0.66rem !important;
    }

    .agri-status-tag {
        font-size: 0.66rem !important;
        padding: 2px 6px !important;
    }

    /* 12-Hour Weather Forecast (Guaranteed Horizontal Touch Scroll on iOS) */
    #forecast-12h-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 4px 2px 10px 2px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        scrollbar-width: thin !important;
    }

    #forecast-12h-container > div, .forecast-card {
        flex: 0 0 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    /* Metrics Grid 2-column on mobile */
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .metric-card {
        padding: 10px !important;
        gap: 8px !important;
        border-radius: 12px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .metric-card .icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        border-radius: 8px !important;
    }

    .metric-data h3 {
        font-size: 0.68rem !important;
        letter-spacing: 0.2px !important;
    }

    .metric-data p {
        font-size: 1.15rem !important;
    }

    /* All sections contained */
    section {
        padding: 12px 10px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #sec-weather div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #sec-guide div[style*="grid-template-columns"],
    #threat-items-grid,
    #sec-sprayer div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"],
    #sec-sprayer div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    #sec-future-advisory div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
    #sec-recipe div[style*="grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))"],
    #sec-recipe div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    #sec-future-advisory div[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"],
    #sec-ai-multiplier div[style*="grid-template-columns: repeat(auto-fit, minmax(130px, 1fr))"],
    #sec-ai-multiplier div[style*="grid-template-columns: repeat(auto-fit, minmax(140px, 1fr))"],
    #sec-sprayer div[style*="grid-template-columns: repeat(auto-fit, minmax(130px, 1fr))"],
    #sec-sprayer div[style*="grid-template-columns: repeat(auto-fit, minmax(140px, 1fr))"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    #sec-recipe div[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* Content Split & Left Column Fix */
    .content-split {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    .left-column-split {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    /* Panduan Kualitas Tanah Ideal */
    .chart-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .chart-panel ul {
        padding-left: 16px !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    .chart-panel li {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        margin-bottom: 5px !important;
        word-break: break-word !important;
    }

    /* Rata-Rata Sensor Kesehatan Tanah */
    .sensor-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sensor-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        overflow: hidden !important;
    }

    .sensor-value {
        font-size: 1.25rem !important;
        word-break: break-all !important;
    }

    /* History Chart & Toolbar Horizontal Scroll */
    #sec-charts {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .chart-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 230px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .chart-toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .chart-filters {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 5px !important;
        box-sizing: border-box !important;
    }
    .chart-filters::-webkit-scrollbar { display: none; }

    .chart-kpi-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 5px !important;
        box-sizing: border-box !important;
    }
    .chart-kpi-bar::-webkit-scrollbar { display: none; }

    .filter-btn, .time-btn {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        min-height: 32px !important;
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
    }

    .chart-kpi-item {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 4px 6px !important;
        font-size: 0.72rem !important;
    }

    /* Kontrol Cerdas & Jalur Irigasi Blok */
    #sec-controls {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tank-status {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .tank {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 12px 10px !important;
    }

    .valves-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .valve-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 12px !important;
    }

    .valve-item span {
        font-size: 0.82rem !important;
        word-break: break-word !important;
        flex: 1 !important;
        padding-right: 6px !important;
    }

    /* Tombol Otomasi */
    .smart-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .macro-buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .macro-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        min-height: 42px !important;
        font-size: 0.82rem !important;
        padding: 10px !important;
        justify-content: center !important;
        text-align: center !important;
        word-break: break-word !important;
    }

    /* Settings Modal Mobile Bottom Sheet */
    .modal {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 92vh !important;
        max-height: 92vh !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
    }

    .modal-header {
        padding: 12px 14px !important;
    }

    .modal-body {
        padding: 12px 14px !important;
    }

    .modal-footer {
        padding: 8px 14px !important;
        flex-direction: column-reverse !important;
    }

    .modal-footer .btn {
        width: 100% !important;
        min-height: 42px !important;
    }

    .settings-tab-bar {
        padding: 6px 8px !important;
    }

    .settings-tab-btn {
        font-size: 0.74rem !important;
        padding: 5px 8px !important;
    }
}

/* Extra Small Phones (iPhone SE, Small Android < 380px) */
@media (max-width: 380px) {
    .container {
        padding: 6px 4px !important;
    }

    .header-title h1 {
        font-size: 1.3rem !important;
    }

    .npk-circle {
        width: 68px !important;
        height: 68px !important;
    }

    .npk-circle .val {
        font-size: 1.1rem !important;
    }

    .status-pill {
        font-size: 0.66rem !important;
        padding: 4px 4px !important;
    }

    .metric-data p {
        font-size: 1.05rem !important;
    }
}

/* ==========================================================================
   DESKTOP & TABLET WORKSPACE TAB NAVIGATION BAR (ZERO INFINITE SCROLL)
   ========================================================================== */
.desktop-workspace-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 22px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.desktop-workspace-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ws-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0; /* CRITICAL FOR iOS SAFARI TO PREVENT FONT/BUTTON STACKING */
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.ws-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.ws-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.25));
    border: 1px solid rgba(96, 165, 250, 0.55);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.ws-tab-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.ws-tab-text {
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.workspace-tab-pane {
    display: none;
    animation: fadeInWorkspaceTab 0.25s ease forwards;
}

.workspace-tab-pane.active {
    display: block;
}

@keyframes fadeInWorkspaceTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .desktop-workspace-nav {
        padding: 6px 8px;
        gap: 6px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    .ws-tab-btn {
        padding: 8px 12px;
        font-size: 0.80rem;
        gap: 5px;
        flex-shrink: 0;
    }
    .ws-tab-icon {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   PIN / PASSWORD SECURITY MODAL FOR MANUAL VALVE & PUMP CONTROLS
   ========================================================================== */
.pin-modal-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    padding: 24px;
    margin: auto;
    position: relative;
    backdrop-filter: blur(20px);
}

.pin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.pin-modal-header h3 {
    margin: 0;
    color: #f87171;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin-input-display {
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-family: monospace;
    margin-bottom: 16px;
    outline: none;
}

.pin-input-display:focus {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.pin-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pin-key-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pin-key-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

.pin-key-btn:active {
    transform: scale(0.96);
    background: rgba(239, 68, 68, 0.3);
}

.pin-key-btn.action-btn {
    font-size: 1.0rem;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.pin-unlocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
}


