.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05); /* Subtle dark/light adaptive tint */
    color: var(--text-secondary, #888);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Professional hover states */
.btn-icon:hover {
    background: var(--gikunju-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(0);
}

/* Small layout fix for the wrapper cards */
.task-item {
    border-radius: 8px;
    margin-bottom: 12px;
}
    :root {
        --bg-color: #eef2f7;
        --card-bg: #ffffff;
        --text-primary: #1e293b;
        --text-secondary: #64748b;
        --gikunju-blue: #0084ff;
        --success-green: #10b981;
        --danger-red: #ef4444;
        --warning-orange: #f59e0b;
        --border-color: #e2e8f0;
        --accent-purple: #8b5cf6;
        --input-bg: #ffffff;
        --task-hover-bg: #f0f7ff;
        --overdue-bg: #fff5f5;
        --completed-bg: #f8fafc;
        --modal-overlay: rgba(15, 23, 42, 0.5);
        --bday-bg: #f1f5f9;
    }

    [data-theme="dark"] {
        --bg-color: #0f172a;
        --card-bg: #1e293b;
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        --input-bg: #0f172a;
        --task-hover-bg: #1e293b;
        --overdue-bg: #2d1f1f;
        --completed-bg: #0f172a;
        --modal-overlay: rgba(0, 0, 0, 0.7);
        --bday-bg: #0f172a;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: 'Inter', sans-serif;
        background-color: var(--bg-color);
        color: var(--text-primary);
        transition: background-color 0.3s, color 0.3s;
        display: flex;
        justify-content: center;
        padding: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Core container mimicking physical phone layout / constrained card stack */
    .app-container {
        width: 100%;
        max-width: 480px;
        background-color: var(--bg-color);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    /* Floating Header Action Deck */
    .top-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        position: sticky;
        top: 10px;
        z-index: 100;
        margin: 10px;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    }

    .brand-section {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-container {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--gikunju-blue);
    }

    .logo-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .brand-title {
        font-size: 14px;
        font-weight: 800;
        letter-spacing: -0.3px;
    }

    .nav-actions {
        display: flex;
        gap: 8px;
    }

    .btn-action {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: none;
        background: var(--bg-color);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: transform 0.1s;
    }

    .btn-action:active {
        transform: scale(0.92);
    }

    /* Main body layout wrapper */
    .main-content {
        flex: 1;
        padding: 4px 10px 80px 10px;
    }

    /* Tab Controller Strips */
    .tab-container {
        display: flex;
        background: var(--card-bg);
        padding: 5px;
        border-radius: 14px;
        margin-bottom: 14px;
        border: 1px solid var(--border-color);
    }

    .tab-button {
        flex: 1;
        padding: 10px 5px;
        border: none;
        background: transparent;
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        border-radius: 10px;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .tab-button i {
        font-size: 15px;
    }

    .tab-button.active {
        background: var(--gikunju-blue);
        color: #ffffff;
    }

    /* View Lifecycle States */
    .tab-view {
        display: none;
    }

    .tab-view.active {
        display: block;
    }

    /* Global Dashboard Cards */
    .card {
        background: var(--card-bg);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 14px;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    }

    /* Profile / Identity Card */
    .profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        position: relative;
    }

    .avatar-wrapper {
        position: relative;
        width: 76px;
        height: 76px;
        margin-bottom: 12px;
    }

    .profile-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--card-bg);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .status-dot {
        position: absolute;
        bottom: 4px;
        right: 4px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background-color: var(--success-green);
        border: 2px solid var(--card-bg);
    }

    .profile-name {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .profile-bio {
        font-size: 11.5px;
        color: var(--text-secondary);
        max-width: 85%;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* Counters block mapping */
    .counter-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        margin-top: 4px;
    }

    .counter-tile {
        background: var(--bg-color);
        padding: 10px 4px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .counter-val {
        font-family: 'Share Tech Mono', monospace;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .counter-val.blue { color: var(--gikunju-blue); }
    .counter-val.orange { color: var(--warning-orange); }
    .counter-val.green { color: var(--success-green); }

    .counter-lbl {
        font-size: 9.5px;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--text-secondary);
        letter-spacing: 0.3px;
    }

    /* Modal dialog overrides */
    .modal-mask {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--modal-overlay);
        backdrop-filter: blur(3px);
        z-index: 999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

    .modal-frame {
        background: var(--card-bg);
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        overflow: hidden;
        animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .modal-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-title {
        font-size: 14px;
        font-weight: 700;
    }

    .modal-body {
        padding: 18px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .form-input {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--input-bg);
        color: var(--text-primary);
        font-family: inherit;
        font-size: 13px;
        outline: none;
    }

    .form-input:focus {
        border-color: var(--gikunju-blue);
    }

    .modal-foot {
        padding: 12px 18px;
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        border-radius: 10px;
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        font-family: inherit;
    }

    .btn-secondary {
        background: var(--bg-color);
        color: var(--text-primary);
    }

    .btn-primary {
        background: var(--gikunju-blue);
        color: #ffffff;
    }

    /* List item objects */
    .empty-state {
        text-align: center;
        padding: 30px 10px;
        color: var(--text-secondary);
        font-size: 12px;
    }

    .empty-state i {
        font-size: 24px;
        margin-bottom: 8px;
        opacity: 0.5;
    }

    /* Tactical Quick Links Strip */
    .tool-routing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
    .tool-route-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; transition: background 0.15s; }
    .tool-route-card:hover { background: var(--task-hover-bg); }
    .tool-icon-frame { width: 34px; height: 34px; border-radius: 8px; background: rgba(0, 132, 255, 0.1); color: var(--gikunju-blue); display: flex; align-items: center; justify-content: center; font-size: 14px; }
    .tool-icon-frame.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
    .tool-route-meta { display: flex; flex-direction: column; }
    .tool-route-name { font-size: 12px; font-weight: 700; }
    .tool-route-desc { font-size: 9.5px; color: var(--text-secondary); }

    /* Telemetry Panel Overrides */
    .asset-quote-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
    .asset-quote-row:last-child { border-bottom: none; }
    .asset-identity { display: flex; align-items: center; gap: 8px; }
    .asset-ticker-box { display: flex; flex-direction: column; }
    .asset-symbol { font-size: 12.5px; font-weight: 700; }
    .asset-fullname { font-size: 9.5px; color: var(--text-secondary); }
    .asset-valuation-block { display: flex; flex-direction: column; align-items: flex-end; font-family: 'Share Tech Mono', monospace; }
    .asset-price { font-size: 13.5px; font-weight: 700; }
    .asset-delta { font-size: 10.5px; font-weight: bold; }
    .asset-delta.up { color: var(--success-green); }
    .asset-delta.down { color: var(--danger-red); }
    .asset-delta.stale { color: var(--text-secondary); }
    .telemetry-footer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: var(--text-secondary); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-color); font-family: 'Share Tech Mono', monospace; }

    /* Task Module Interface Styles */
    .task-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 10px; position: relative; overflow: hidden; }
    .task-item.overdue { background: var(--overdue-bg); border-color: rgba(239, 68, 68, 0.2); }
    .task-item.completed { background: var(--completed-bg); opacity: 0.75; }
    .task-core-block { display: flex; gap: 10px; align-items: flex-start; flex: 1; }
    .task-checkbox-wrapper { margin-top: 2px; }
    .custom-checkbox { width: 16px; height: 16px; border: 2px solid var(--text-secondary); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 10px; color: transparent; transition: all 0.15s; }
    .task-item.completed .custom-checkbox { background: var(--success-green); border-color: var(--success-green); color: #ffffff; }
    .task-details { display: flex; flex-direction: column; gap: 3px; flex: 1; }
    .task-title-text { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
    .task-item.completed .task-title-text { text-decoration: line-through; color: var(--text-secondary); }
    .task-schedule-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-secondary); font-family: 'Share Tech Mono', monospace; }
    .task-item.overdue .task-schedule-row { color: var(--danger-red); font-weight: bold; }
    .task-group-badge { font-size: 9px; padding: 2px 6px; border-radius: 4px; background: var(--bg-color); font-weight: bold; text-transform: uppercase; color: var(--text-secondary); font-family: 'Inter', sans-serif; }
    .task-controls { display: flex; gap: 4px; align-items: center; }
    .task-btn { width: 26px; height: 26px; border: none; background: transparent; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; font-size: 11px; }
    .task-btn:hover { background: var(--bg-color); color: var(--text-primary); }
    .task-btn.delete-trigger:hover { color: var(--danger-red); background: rgba(239, 68, 68, 0.1); }

    /* Context Engine - Floating Node System Matrix */
    .fluid-progress-track { width: 100%; height: 5px; background: var(--border-color); border-radius: 10px; margin-top: 8px; overflow: hidden; position: relative; }
    .fluid-current-flow { height: 100%; width: 0%; background-color: var(--gikunju-blue); border-radius: 10px; position: relative; transition: width 0.5s ease-out; }
    .fluid-current-flow::before, .fluid-current-flow::after { content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-image: linear-gradient(-45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent); background-size: 20px 20px; animation: fluidCurrentFlowFirst 2s linear infinite; }
    .fluid-current-flow::after { animation: fluidCurrentFlowSecond 2s linear infinite; opacity: 0.5; }
    @keyframes fluidCurrentFlowFirst { from { background-position: 0 0; } to { background-position: 200px 0; } }
    @keyframes fluidCurrentFlowSecond { from { background-position: 0 0; } to { background-position: -200px 0; } }

    /* Layout structural containers for split lists */
    .kanban-sub-deck { margin-top: 10px; }
    
    /* System Diagnostics Indicator node */
    .sys-pulse-container { display: inline-flex; align-items: center; gap: 5px; }
    .sys-pulse-node { width: 7px; height: 7px; border-radius: 50%; background-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); animation: greenPulse 2s infinite; }
    @keyframes greenPulse { 0% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.2); } 50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); } 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.2); } }

    /* Micro-LED displays inside the app architecture */
    .digital-led { font-family: 'Share Tech Mono', monospace; color: #ff3333; background-color: #0d0d0d; font-size: 18px; padding: 5px 10px; border-radius: 6px; border: 2px solid #222; text-shadow: 0 0 6px #ff3333, 0 0 12px #ff3333; box-shadow: inset 0 0 8px rgba(255, 51, 51, 0.2); letter-spacing: 0.5px; display: inline-flex; align-items: center; white-space: nowrap; }
    #digital-led-clock { font-size: 18px; }
    .chronometer-box { margin-top: 4px; display: flex; }
    #live-age-box { font-size: 13.5px; padding: 5px 8px; }
    .digital-led span { font-size: 10px; color: rgba(255, 51, 51, 0.55); text-shadow: none; margin-left: 1px; margin-right: 3px; font-weight: bold; }
    .digital-led span.ms { font-size: 11px; color: #ff3333; text-shadow: 0 0 5px #ff3333; margin-left: 1px; margin-right: 0; }

    .bday-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--bday-bg); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; margin-top: 12px; color: var(--text-primary); }
    .section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 700; }
    .checklist-group-title { font-size: 11px; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; margin: 14px 0 8px 0; display: flex; align-items: center; gap: 6px; }

/* Footer Container: Back to native variables */
.footerr {
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  margin: 10px;
  padding: 12px;
  border-radius: 16px;
  gap: 4px;
  position: sticky;
  top: 10px;
  z-index: 100;

  /* Using the exact system variables */
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Theme-Adaptive Text Shine using Variables */
#copyright {
  text-align: center;
  font-weight: bold;
  
  /* Slides from the secondary (dimmer) text color, 
    flashes the primary (bright) text color in the middle, 
    and goes back to secondary. 
  */
  background: linear-gradient(
    90deg, 
    var(--text-secondary) 0%, 
    var(--text-primary) 50%, 
    var(--text-secondary) 100%
  );
  background-size: 200% auto;
  
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  animation: textShine 3s linear infinite;
}

/* Keep the movement animation */
@keyframes textShine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}
