/* Google Fonts - Outfit & Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #FDFBF8; /* Soft creamy beige background */
    --container-bg: rgba(255, 255, 255, 0.65);
    --sidebar-bg: rgba(246, 240, 233, 0.85); /* Milky tea beige sidebar background */
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(180, 140, 110, 0.15); /* Warm light wood/clay border */
    --text-color: #4A3A35; /* Soft espresso brown text */
    --text-muted: #8E7D75; /* Gentle warm cocoa-grey text */
    
    /* Warm rose pink & peach gradients */
    --primary-grad: linear-gradient(135deg, #FF7B90, #FFA8B6);
    --primary-solid: #FF6B8B;
    --danger-grad: linear-gradient(135deg, #FF6B6B, #FFA07A);
    --danger-solid: #FF6B6B;
    --success-grad: linear-gradient(135deg, #A8E6CF, #81C784);
    --success-solid: #5CA38A;
    --amber-grad: linear-gradient(135deg, #FFE082, #FFB74D);
    --amber-solid: #F57C00;

    /* Shadows and soft glows */
    --glass-blur: blur(24px);
    --shadow-premium: 0 12px 40px rgba(139, 92, 26, 0.06);
    --glow-blue: 0 4px 15px rgba(255, 107, 139, 0.18);
    --glow-red: 0 4px 15px rgba(255, 107, 107, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background aesthetic glowing orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FFA8B6 0%, transparent 80%);
    top: -10%;
    left: -10%;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #FFE082 0%, transparent 80%);
    bottom: -10%;
    right: -10%;
}
.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #FFD2FC 0%, transparent 80%);
    top: 40%;
    left: 45%;
}

/* Core layouts */
.app-container {
    width: 95vw;
    height: 90vh;
    max-width: 1480px;
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-premium);
    z-index: 10;
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
}

/* Sidebar navigation */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-grad);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: var(--glow-blue);
}
.brand-name h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.brand-name span {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item svg {
    transition: transform 0.3s ease;
}
.nav-item:hover {
    color: var(--text-color);
    background: rgba(180, 140, 110, 0.08);
}
.nav-item:hover svg {
    transform: scale(1.1);
}
.nav-item.active {
    color: #fff;
    background: var(--primary-grad);
    box-shadow: var(--glow-blue);
}
.nav-item.active svg {
    stroke: #fff;
}

.user-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.user-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-info h4 {
    font-size: 13px;
    font-weight: 600;
}
.user-info p {
    font-size: 10px;
}
.status-badge-online {
    color: var(--success-solid);
    display: flex;
    align-items: center;
    gap: 4px;
}
.status-badge-online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--success-solid);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success-solid);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.25);
}

/* Top bar style */
.top-bar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
}
.device-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-solid);
    border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--success-solid);
    animation: pulse 1.8s infinite;
}
.pulse-dot.red {
    background-color: var(--danger-solid);
}
.pulse-dot.red::after {
    background-color: var(--danger-solid);
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}
.device-name {
    font-size: 15px;
    font-weight: 600;
}
.battery-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Common Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(139, 92, 26, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.card:hover {
    border-color: rgba(180, 140, 110, 0.25);
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #fff;
}
.btn:active {
    transform: scale(0.96);
}
.btn-primary {
    background: var(--primary-grad);
    box-shadow: var(--glow-blue);
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}
.btn-danger {
    background: var(--danger-grad);
    box-shadow: var(--glow-red);
}
.btn-danger:hover {
    box-shadow: 0 0 25px rgba(255, 8, 68, 0.4);
}
.btn-secondary-small {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-color);
}
.btn-secondary-small:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Tabs structure */
.content-body {
    padding: 32px;
    flex-grow: 1;
}
.tab-panel {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Panel 1: Dashboard Styles */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}
.metric-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
.metric-value {
    margin: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.metric-value .number {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
}
.metric-value .number-small {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
}
.metric-value .unit {
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 8px;
}
.text-red {
    background: var(--danger-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-green {
    background: var(--success-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar {
    height: 100%;
    background: var(--primary-grad);
    border-radius: 3px;
}
.card-desc {
    font-size: 11px;
    color: var(--text-muted);
}
.mini-graph-placeholder {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.shield-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    background: rgba(0, 230, 118, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.dashboard-details {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}
.chart-card {
    height: 380px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}
.badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    border: 1px solid var(--border-color);
}
.chart-container {
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.apps-summary-card {
    height: 380px;
}
.view-all-link {
    font-size: 12px;
    color: #4facfe;
    text-decoration: none;
}
.app-rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.app-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
}
.game-icon { background: rgba(0, 242, 254, 0.08); border-color: rgba(0, 242, 254, 0.2); }
.study-icon { background: rgba(0, 230, 118, 0.08); border-color: rgba(0, 230, 118, 0.2); }
.video-icon { background: rgba(255, 8, 68, 0.08); border-color: rgba(255, 8, 68, 0.2); }

.app-meta {
    flex-grow: 1;
}
.app-meta h4 {
    font-size: 14px;
    font-weight: 600;
}
.app-category {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}
.cat-game { background: rgba(255, 8, 68, 0.15); color: #ff5252; }
.cat-study { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.cat-social { background: rgba(255, 179, 0, 0.15); color: #ffb300; }

.app-time {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: 80px;
}
.time-num {
    font-size: 13px;
    font-weight: 600;
}
.time-bar {
    height: 4px;
    border-radius: 2px;
}
.time-bar.red { background: var(--danger-solid); }
.time-bar.green { background: var(--success-solid); }
.time-bar.amber { background: var(--amber-solid); }

/* Panel 2: App Control Styles */
.full-card {
    height: auto;
    min-height: 500px;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.panel-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.desc {
    font-size: 13px;
    color: var(--text-muted);
}
.filter-bar {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.filter-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-control-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.app-control-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 240px 1fr 180px;
    align-items: center;
    transition: background 0.2s ease;
}
.app-control-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.app-info-block {
    display: flex;
    align-items: center;
    gap: 16px;
}
.app-info-block h4 {
    font-size: 14px;
    font-weight: 600;
}
.app-info-block span {
    font-size: 11px;
    color: var(--text-muted);
}
.app-limits {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.limit-slider {
    -webkit-appearance: none;
    width: 140px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}
.limit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-solid);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
    transition: transform 0.1s ease;
}
.limit-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.slider-val {
    font-weight: 600;
    color: var(--primary-solid);
}
.slider-disabled {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}
.app-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
.status-label {
    font-size: 12px;
    font-weight: 600;
    width: 60px;
    text-align: right;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
}
.switch input:checked + .slider {
    background: var(--primary-grad);
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Panel 3: Eye Care Styles */
.eyecare-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}
.setting-title-row {
    display: flex;
    gap: 16px;
}
.setting-title-row .icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border: 1px solid var(--border-color);
}
.setting-title-row h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.setting-title-row p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.action-row.flex-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.control-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}
.control-row input[type="range"] {
    flex-grow: 1;
    margin: 0 12px;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
.control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--amber-solid);
    cursor: pointer;
}
.status-text {
    font-size: 12px;
    font-weight: 600;
}
.time-range-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.time-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1e293b;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}
.time-input:focus {
    border-color: #ff7b90;
    background: rgba(255, 123, 144, 0.05);
}

/* Panel 4: Safety Fence Map Styles */
.map-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 24px;
    height: 380px;
}
.map-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.control-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.control-item label {
    font-size: 12px;
    color: var(--text-muted);
}
.control-item select {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
}
.control-item select option {
    background: #fff;
    color: var(--text-color);
}
.control-item input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 8px 0;
}
.control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-solid);
    cursor: pointer;
}
.status-indicator-green {
    font-size: 12px;
    border: 1px solid rgba(0, 230, 118, 0.15);
    background: rgba(0, 230, 118, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--success-solid);
}
.status-indicator-red {
    font-size: 12px;
    border: 1px solid rgba(255, 23, 68, 0.25);
    background: rgba(255, 23, 68, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--danger-solid);
}

.mock-map {
    position: relative;
    background: rgba(8, 12, 24, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
}
.map-fence-circle {
    border: 2px dashed rgba(0, 168, 255, 0.6);
    background: rgba(0, 168, 255, 0.08);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 20px rgba(0, 168, 255, 0.1);
    transition: width 0.3s ease, height 0.3s ease;
}
.map-marker {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.map-child-marker {
    position: absolute;
    font-size: 24px;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: top 0.6s ease, left 0.6s ease;
}
.map-child-marker .ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--success-solid);
    transform: scale(1.5);
    opacity: 0;
    animation: marker-ping 1.5s infinite;
}
@keyframes marker-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Panel 5: Activation & Subscription Styles */
.activation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.card-status-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}
.sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
.badge-unactive {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.badge-active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success-solid);
    border: 1px solid rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.input-group input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s ease;
}
.input-group input:focus {
    border-color: var(--primary-solid);
}
.activation-msg {
    font-size: 12px;
    margin-bottom: 24px;
    min-height: 18px;
}
.activation-msg.success { color: var(--success-solid); }
.activation-msg.error { color: #ff5252; }

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-item {
    display: flex;
    gap: 12px;
}
.feat-icon {
    font-size: 20px;
}
.feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.feature-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.promo-card {
    background: rgba(0, 242, 254, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.15);
    box-shadow: var(--glow-blue);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.promo-price {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-solid);
}
.promo-price span {
    font-size: 14px;
    color: var(--text-muted);
}
.steps-list {
    list-style-position: inside;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}
.steps-list b {
    color: var(--text-color);
}
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}
.wechat-community h4 {
    font-size: 14px;
    margin-bottom: 6px;
}
.wechat-community p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.qrcode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
}
.qr-box {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.qr-pattern {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #f1f5f9;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.qr-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 4px solid #060913;
    background: #fff;
}
.qr-tl { top: 4px; left: 4px; }
.qr-tr { top: 4px; right: 4px; }
.qr-bl { bottom: 4px; left: 4px; }
.qr-dots {
    width: 50px;
    height: 50px;
    background-image: radial-gradient(#060913 2px, transparent 2px);
    background-size: 6px 6px;
}
.qr-center-logo {
    position: absolute;
    background: var(--primary-grad);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tablet Device Simulator (Right Side) */
.device-simulator-panel {
    display: none !important;
}
.simulator-title {
    text-align: center;
    margin-bottom: 12px;
}
.simulator-title h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.simulator-title p {
    font-size: 10px;
    color: var(--text-muted);
}

/* 3D-ish Tablet CSS Frame */
.tablet-frame {
    width: 310px;
    height: 480px;
    background: #1e293b;
    border: 12px solid #0f172a;
    border-radius: 36px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 10px rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Hardware Buttons */
.tab-button {
    position: absolute;
    background: #0f172a;
    border-radius: 2px;
}
.tab-power {
    width: 3px;
    height: 30px;
    top: 50px;
    right: -15px;
}
.tab-vol-up {
    width: 3px;
    height: 40px;
    top: 110px;
    right: -15px;
}
.tab-vol-down {
    width: 3px;
    height: 40px;
    top: 160px;
    right: -15px;
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* Amber Night Light Filter */
.eye-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 179, 0, 0); /* Transitions to warm amber */
    z-index: 99;
    pointer-events: none;
    transition: background-color 0.4s ease;
}

.screen-status-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.screen-main-content {
    width: 100%;
    height: 100%;
    padding-top: 20px;
}

/* Launcher display screen */
.launcher-display {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #111827, #1f2937);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.screen-widget {
    text-align: center;
    margin-top: 20px;
}
.widget-time {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #fff;
}
.widget-date {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.app-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    cursor: pointer;
}
.icon-shape {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, filter 0.3s ease;
}
.app-icon-item:hover .icon-shape {
    transform: scale(1.1);
}
.icon-shape.banned {
    filter: grayscale(1) contrast(0.8);
    opacity: 0.5;
}
.icon-label {
    font-size: 9px;
    color: #f1f5f9;
}
.app-lock-badge {
    position: absolute;
    top: -4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ef4444;
    border: 1px solid #7f1d1d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.app-lock-badge.show {
    opacity: 1;
    transform: scale(1);
}

.simulator-hint {
    font-size: 9px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

/* Lock Screen Overlay display */
.locked-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.locked-display.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.lock-shield {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
    animation: shield-beat 2s infinite ease-in-out;
}
@keyframes shield-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.locked-display h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 8px;
}
.lock-reason {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 30px;
}
.device-owner-hint {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
    width: 100%;
}

/* Warnings overlays */
.warning-display, .dark-warning-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.warning-display.active, .dark-warning-display.active {
    opacity: 1;
    pointer-events: auto;
}
.warning-alert-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.warning-emoji {
    font-size: 32px;
    margin-bottom: 12px;
}
.warning-alert-box h3 {
    font-size: 16px;
    color: var(--amber-solid);
    margin-bottom: 6px;
}
.warning-alert-box p {
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 12px;
}
.sub-alert-text {
    font-size: 9px;
    color: var(--text-muted);
}

.simulator-controls {
    margin-top: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.simulator-controls button {
    width: 100%;
}

/* Animations for interactions */
.visual-shake {
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Responsiveness */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 80px 1fr;
    }
    .brand-name, .user-info h4, .user-info p {
        display: none;
    }
    .brand {
        justify-content: center;
    }
    .nav-item span {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .user-card {
        justify-content: center;
        padding: 6px;
    }
}

@media (max-width: 900px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    .app-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 90vh;
        width: 100%;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        height: 70px;
        padding: 12px 24px;
        align-items: center;
    }
    .brand {
        margin-bottom: 0;
    }
    .nav-menu {
        flex-direction: row;
        gap: 4px;
        justify-content: flex-end;
    }
    .user-card {
        display: none;
    }
    .device-simulator-panel {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 32px 24px;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-details {
        grid-template-columns: 1fr;
    }
    .app-control-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .app-status {
        justify-content: space-between;
    }
    .eyecare-settings-grid {
        grid-template-columns: 1fr;
    }
    .map-section {
        grid-template-columns: 1fr;
        height: auto;
    }
    .mock-map {
        height: 250px;
    }
    .activation-layout {
        grid-template-columns: 1fr;
    }
}

/* Multi-device selector tabs & Screens grid styles */
.device-tab {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.device-tab:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
}
.device-tab.active {
    background: rgba(255, 107, 139, 0.12);
    border-color: var(--primary-solid);
    color: var(--primary-solid);
    font-weight: bold;
}
.device-tab .online-dot {
    width: 6px;
    height: 6px;
    background-color: var(--success-solid);
    border-radius: 50%;
}
.screens-grid {
    width: 100%;
}
.screen-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
.screen-card:hover {
    border-color: rgba(0, 198, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 198, 255, 0.05);
}
.screen-card-title {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.screen-card-body {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.screen-card-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.screen-card-controls {
    margin-top: 12px;
    width: 100%;
    display: flex;
    gap: 8px;
}
.screen-card-controls .btn {
    flex: 1;
    font-size: 11px;
    padding: 6px 0;
}

/* Custom Leaflet Map styling for neon theme */
.leaflet-container {
    background-color: #0b1120 !important;
}
.custom-kid-marker {
    background: transparent;
    border: none;
}
@keyframes marker-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Button tab mode segmented controls */
.btn-tab-mode {
    background: #ffffff !important;
    border: 1.5px solid #e1d8d2 !important;
    color: var(--text-color) !important;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}
.btn-tab-mode:hover {
    background: #fdfbf8 !important;
    border-color: #ff7b90 !important;
}
.btn-tab-mode.active {
    background: var(--primary-grad) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 123, 144, 0.25) !important;
}

