* { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.main-content { min-height:calc(100vh - 160px); padding:clamp(20px,4vw,40px) 12px 48px; background:#fff; }
[data-theme="dark"] .main-content { background:linear-gradient(180deg,rgba(9,15,22,.96),rgba(5,10,16,.92)); }
.mod-container { max-width:900px; margin:0 auto; }
.mod-card {
    background:#fff; border-radius:36px; padding:clamp(18px,3vw,36px);
    box-shadow:0 10px 24px rgba(15,23,42,.08);
    border:1px solid rgba(148,163,184,.22); position:relative; overflow:hidden;
}
[data-theme="dark"] .mod-card {
    background:linear-gradient(155deg,rgba(10,31,47,.97),rgba(5,16,25,.98) 58%,rgba(8,27,40,.97)),#0b1d2b;
    box-shadow:0 20px 48px rgba(0,0,0,.32); border-color:rgba(94,188,245,.24);
}
.mod-card::before {
    content:""; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(circle at top right,rgba(255,194,92,.12),transparent 24%),
               radial-gradient(circle at top left,rgba(74,219,255,.12),transparent 24%);
}
.top-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:22px; }
.mod-title {
    font-weight:800; font-size:clamp(1.4rem,4vw,2.4rem);
    background:linear-gradient(145deg,#0f5fd0,#00a7d8 48%,#f97316);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    margin:0;
}
[data-theme="dark"] .mod-title {
    background:linear-gradient(145deg,#f8fdff,#7bd7ff 48%,#ffd27a);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.month-nav { display:flex; align-items:center; gap:12px; }
.nav-btn {
    background:linear-gradient(180deg,rgba(14,42,60,.96),rgba(8,28,42,.96));
    border:1px solid rgba(98,177,223,.38); border-radius:50%;
    color:#ceecff; font-size:1.1rem; width:36px; height:36px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition:.1s; user-select:none;
}
.nav-btn:hover { border-color:#4adbff; color:#fff; }
.month-label { color:#ceecff; font-weight:700; font-size:1rem; min-width:130px; text-align:center; }
/* Calendar grid */
.cal-shell {
    background:linear-gradient(180deg,rgba(7,24,36,.9),rgba(7,24,36,.7));
    border:1px solid rgba(95,179,228,.22); border-radius:24px; padding:18px; margin-bottom:18px;
}
.day-headers { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:8px; }
.day-header { color:#4a8ca8; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
    text-align:center; padding:4px 0; font-weight:700; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.day-cell {
    aspect-ratio:1/1; border-radius:12px; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:2px;
    background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06);
    cursor:pointer; transition:.12s; position:relative; overflow:hidden; min-height:44px;
}
.day-cell:hover { background:rgba(74,219,255,.1); border-color:rgba(74,219,255,.35); }
.day-cell.today { border-color:rgba(74,219,255,.6); box-shadow:0 0 14px rgba(74,219,255,.2); }
.day-cell.other-month { opacity:.3; cursor:default; }
.day-cell.other-month:hover { background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.06); }
.day-num { font-size:.72rem; color:#8ab8d8; font-weight:600; }
.day-cell.today .day-num { color:#4adbff; font-weight:900; }
.mood-emoji { font-size:1.15rem; line-height:1; }
.day-cell.has-mood { border-color:rgba(255,255,255,.15); }
/* Mood picker */
.picker-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:100;
    display:none; align-items:center; justify-content:center; padding:20px;
}
.picker-overlay.open { display:flex; }
.picker-box {
    background:linear-gradient(155deg,rgba(10,31,47,.98),rgba(5,16,25,.99));
    border:1px solid rgba(94,188,245,.3); border-radius:28px; padding:28px;
    max-width:400px; width:100%; text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.picker-title { color:#ceecff; font-weight:700; font-size:1rem; margin-bottom:18px; }
.mood-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-bottom:18px; }
.mood-option {
    aspect-ratio:1/1; border-radius:14px; font-size:1.8rem; display:flex;
    align-items:center; justify-content:center;
    background:rgba(255,255,255,.05); border:2px solid rgba(255,255,255,.1);
    cursor:pointer; transition:.12s; user-select:none;
}
.mood-option:hover { transform:scale(1.15); border-color:rgba(74,219,255,.5); background:rgba(74,219,255,.1); }
.mood-option.selected { border-color:#4adbff; background:rgba(74,219,255,.15); box-shadow:0 0 16px rgba(74,219,255,.3); }
.picker-actions { display:flex; gap:10px; justify-content:center; }
.btn-confirm {
    background:linear-gradient(160deg,#ffae5a,#f57c2e); border:none;
    font-size:.92rem; font-weight:700; padding:11px 24px; border-radius:60px;
    color:#0e2b37; cursor:pointer; transition:.08s; user-select:none;
}
.btn-confirm:active { transform:translateY(3px); }
.btn-cancel {
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15);
    border-radius:60px; color:#8ab8d8; font-size:.92rem; font-weight:600;
    padding:11px 20px; cursor:pointer; transition:.1s;
}
.btn-cancel:hover { border-color:#4adbff; color:#ceecff; }
/* Stats row */
.stats-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.stat-card {
    flex:1; min-width:130px;
    background:linear-gradient(180deg,rgba(10,33,48,.94),rgba(8,26,38,.84));
    border:1px solid rgba(95,179,228,.18); border-radius:18px; padding:12px 14px;
}
.stat-label { color:#7bd7ff; font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:4px; }
.stat-val { color:#eef8ff; font-size:1rem; font-weight:700; }
