/*
Theme Name: Pikushka-Filichka
Theme URI: https://pikushka.com
Author: Pikushka
Author URI: https://pikushka.com
Description: Clean starter theme with Bootstrap 5 connected.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pikushka-filichka
*/

body {
    font-family: "Poppins", sans-serif;
}

.site-footer {
    background: linear-gradient(
        0deg,
        #b2fff1 0%,
        rgba(178, 255, 241, 0.82) 55%,
        rgba(178, 255, 241, 0) 100%
    );
}

.footer-brand__logo {
    max-width: 200px;
    width: 200px;
    height: auto;
    display: block;
}

.footer-brand__title {
    font-weight: 600;
    color: #253d35;
}

.footer-brand__copy a {
    color: inherit;
    text-decoration: none;
}

.footer-brand {
    text-align: left;
}

.footer-brand__copy {
    font-size: 0.8rem;
}

.site-footer .nav-link {
    color: #000 !important;
    font-weight: 700;
    border: 1px solid #000;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 4px;
    padding: 6px 12px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    transform-origin: center;
}

.site-footer .nav-link:hover {
    background: #fff;
    color: #000 !important;
}

.site-footer .nav-item:nth-child(4n + 1) .nav-link:hover {
    transform: translateY(-2px) rotate(-2deg) scale(1.03);
    box-shadow: 0 7px 0 #0b3d91;
}

.site-footer .nav-item:nth-child(4n + 2) .nav-link:hover {
    transform: translateY(-4px) rotate(1.8deg) scale(1.04);
    box-shadow: 0 7px 0 #0f6b2f;
}

.site-footer .nav-item:nth-child(4n + 3) .nav-link:hover {
    transform: translateY(-3px) rotate(-3deg) scale(1.03);
    box-shadow: 0 7px 0 #8b1e1e;
}

.site-footer .nav-item:nth-child(4n + 4) .nav-link:hover {
    transform: translateY(-5px) rotate(2.4deg) scale(1.04);
    box-shadow: 0 7px 0 #b25a00;
}

.bee-strip {
    position: relative;
    height: 73px;
    background: #ffef6b;
    overflow: hidden;
}

.site-main-header {
    background: linear-gradient(
        180deg,
        #ffef6b 0%,
        rgba(255, 239, 107, 0.82) 55%,
        rgba(255, 239, 107, 0) 100%
    );
}

.site-main-header .nav-link,
.site-main-header .site-logo-cat {
    color: #4b4300 !important;
}

.site-main-header .nav-link {
    color: #000 !important;
    font-weight: 700;
    border: 1px solid #000;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 4px;
    padding: 6px 12px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    transform-origin: center;
}

.site-main-header .nav-link:hover {
    background: #fff;
    color: #000 !important;
}

.site-main-header .nav-item:nth-child(4n + 1) .nav-link:hover {
    transform: translateY(-2px) rotate(-2deg) scale(1.03);
    box-shadow: 0 7px 0 #0b3d91;
}

.site-main-header .nav-item:nth-child(4n + 2) .nav-link:hover {
    transform: translateY(-4px) rotate(1.8deg) scale(1.04);
    box-shadow: 0 7px 0 #0f6b2f;
}

.site-main-header .nav-item:nth-child(4n + 3) .nav-link:hover {
    transform: translateY(-3px) rotate(-3deg) scale(1.03);
    box-shadow: 0 7px 0 #8b1e1e;
}

.site-main-header .nav-item:nth-child(4n + 4) .nav-link:hover {
    transform: translateY(-5px) rotate(2.4deg) scale(1.04);
    box-shadow: 0 7px 0 #b25a00;
}

.site-header-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.site-logo-cat {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.site-logo-cat img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.site-logo-cat svg {
    width: 120px;
    height: 120px;
    display: block;
}

.site-header-nav .nav {
    justify-content: center;
    flex-wrap: wrap;
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    border: 1px solid rgba(64, 55, 0, 0.35);
    border-radius: 9px;
    padding: 9px 13px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center;
}

.coffee-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.coffee-btn:hover {
    transform: rotate(-4deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.13);
}

.coffee-btn span {
    display: inline-block;
    color: #000;
}

@media (max-width: 991.98px) {
    .site-header-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-header-nav .nav {
        justify-content: center;
    }
}

.bee-strip__bee {
    position: absolute;
    top: 50%;
    left: 0;
    width: 64px;
    height: auto;
    transform: translate(-90px, -50%);
    animation: bee-fly 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.bee-strip__particle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 1;
    animation: bee-particle-fade 1100ms ease-out forwards;
}

@keyframes bee-particle-fade {
    0% {
        opacity: 0.95;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx, -14px), var(--dy, 8px)) scale(0.35);
    }
}

@keyframes bee-fly {
    from {
        transform: translate(-90px, -50%);
    }
    to {
        transform: translate(calc(100vw + 90px), -50%);
    }
}

.timers-hub {
    padding: 8px 0 10px;
}

.timers-hub__head {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    background: linear-gradient(140deg, #fff7a2 0%, #b2fff1 58%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
}

.timers-hub__title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    color: #1a2d28;
}

.timers-hub__subtitle {
    margin: 0;
    color: #354f48;
}

.timers-hub__toolbar {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.timer-rate-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 130px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 10;
}

.timer-rate-picker__title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 6px;
}

.timer-rate-picker__option {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    padding: 6px 8px;
    margin: 0 0 6px;
}

.timer-rate-picker__option:last-child {
    margin-bottom: 0;
}

.timer-rate-picker__option:hover {
    border-color: #22c55e;
    background: #ecfdf5;
}

.timers-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.timer-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.timer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.45), transparent 40%);
    pointer-events: none;
}

.timer-card.is-running {
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.22);
}

.timer-card.is-paused {
    border-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.24);
}

.timer-card.is-complete {
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.26);
}

.timer-card__top {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.timer-card__label {
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.timer-card__project {
    width: min(190px, 58%);
    border: 1px solid rgba(31, 41, 55, 0.2);
    border-radius: 8px;
    padding: 5px 8px;
    font-weight: 600;
}

.timer-card__rate {
    display: inline-block;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: #ecfdf5;
    color: #166534;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.timer-card__meta {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timer-card__meta label {
    display: grid;
    gap: 4px;
    font-size: 0.85rem;
    color: #374151;
}

.timer-card__meta select {
    border: 1px solid rgba(31, 41, 55, 0.2);
    border-radius: 8px;
    background: #fff;
    padding: 5px 8px;
    font-weight: 600;
}

.timer-card__value {
    display: grid;
    text-align: right;
    line-height: 1.1;
}

.timer-card__value [data-time] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.timer-card__value [data-money] {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f766e;
}

.timer-track {
    position: relative;
    height: 20px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.12);
    overflow: hidden;
    margin-bottom: 12px;
}

.timer-track__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(90deg, #86efac 0%, #22c55e 48%, #15803d 100%);
    animation: timer-glow 2.4s ease-in-out infinite;
    transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timer-track__fill::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34%;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0), rgba(187, 247, 208, 0.95), rgba(34, 197, 94, 0));
    transform: translateX(-130%);
    animation: timer-runner 2.8s ease-in-out infinite alternate;
}

.timer-track__fill,
.timer-track__fill::after {
    animation-play-state: paused;
}

.timer-card.is-running .timer-track__fill,
.timer-card.is-running .timer-track__fill::after {
    animation-play-state: running;
}

.timer-track__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.timer-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timer-btn {
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
    border-radius: 9px;
    padding: 6px 11px;
    font-weight: 700;
    font-size: 0.86rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.timer-btn:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 6px 0 #111827;
}

.timer-btn--start {
    background: #d1fae5;
}

.timer-btn--stop {
    background: #fde68a;
}

.timer-btn--add {
    background: #cffafe;
}

.timer-btn--clear {
    background: #fecaca;
}

.timer-btn--delete {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #ef4444;
    background: #fff;
    color: #ef4444;
}

.timer-btn--delete:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 3px 0 #ef4444;
}

.timers-hub__table-wrap {
    margin-top: 16px;
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.timers-hub__table-wrap h3 {
    margin: 4px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.timers-hub__bottom-actions {
    margin-top: 12px;
}

.timers-table {
    margin-bottom: 0;
}

.timers-table thead th {
    font-size: 0.85rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timers-table tbody td {
    vertical-align: middle;
    font-weight: 500;
}

.timers-table__empty td {
    color: #6b7280;
}

@keyframes timer-runner {
    0% {
        transform: translateX(-130%);
    }
    100% {
        transform: translateX(340%);
    }
}

@keyframes timer-glow {
    0% {
        filter: saturate(1) brightness(1);
    }
    50% {
        filter: saturate(1.3) brightness(1.1);
    }
    100% {
        filter: saturate(1) brightness(1);
    }
}

.sticky-board-page {
    min-height: 78vh;
}

.sticky-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.sticky-board-main {
    max-width: 980px;
    width: 100%;
    margin-right: auto;
}

.sticky-board-toolbar {
    margin-bottom: 12px;
}

.sticky-btn {
    border: 1px solid #111827;
    border-radius: 9px;
    background: #fff;
    padding: 7px 12px;
    font-weight: 700;
    line-height: 1.1;
}

.sticky-btn--ghost {
    background: #fff7ed;
}

.sticky-btn--danger {
    border-color: #8b1e1e;
    color: #8b1e1e;
    background: #fff0f0;
}

.sticky-canvas {
    position: relative;
    height: 74vh;
    min-height: 74vh;
    border-radius: 16px;
    overflow: auto;
    background:
        linear-gradient(transparent 23px, rgba(0, 0, 0, 0.04) 24px),
        linear-gradient(90deg, transparent 23px, rgba(0, 0, 0, 0.04) 24px),
        linear-gradient(145deg, rgba(255, 255, 255, 0.7) 0%, rgba(178, 255, 241, 0.25) 100%);
    background-size: 24px 24px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sticky-canvas::after {
    content: "";
    display: block;
    width: 1px;
    height: 72vh;
}

.sticky-canvas::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

.sticky-canvas::-webkit-scrollbar-track {
    background: rgba(178, 255, 241, 0.45);
    border-radius: 999px;
}

.sticky-canvas::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2f7e79, #4fb3a4);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
}

.sticky-note {
    position: absolute;
    width: 255px;
    height: 240px;
    cursor: grab;
    user-select: none;
    border-radius: 10px;
    background:
        linear-gradient(transparent 23px, rgba(0, 0, 0, 0.075) 24px),
        #fffdf6;
    background-size: 100% 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: none;
    resize: both;
    min-width: 230px;
    min-height: 220px;
    max-width: 520px;
    max-height: 640px;
    display: flex;
    flex-direction: column;
}

.sticky-note.is-dragging {
    cursor: grabbing;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.sticky-note__head {
    padding: 5px 40px 5px 12px;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
}

.sticky-note__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(139, 30, 30, 0.6);
    color: #8b1e1e;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.sticky-note__body {
    padding: 10px 12px 12px;
    line-height: 1.35;
    min-height: 92px;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    overflow: auto;
    flex: 1 1 auto;
}

.sticky-note__body ul,
.sticky-note__body ol {
    margin: 0 0 0 1.1rem;
    padding: 0;
}

.sticky-note__tasks {
    margin: 8px 0 0;
    padding-left: 1rem;
}

.sticky-note__tasks li {
    font-size: 0.86rem;
}

.sticky-note__tasks li.is-done {
    text-decoration: line-through;
    opacity: 0.72;
}

.sticky-calendar-panel {
    position: sticky;
    top: 18px;
    margin-top: 48px;
    height: 74vh;
    border-radius: 16px;
    background: linear-gradient(160deg, #ffef6b 0%, #fff9c9 45%, #b2fff1 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.11);
    padding: 12px;
    display: flex;
}

.sticky-calendar-list {
    width: 100%;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    padding-right: 6px;
}

.sticky-month {
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.66);
    border-radius: 12px;
    padding: 10px;
}

.sticky-month h4 {
    font-size: 0.9rem;
    text-transform: capitalize;
    margin: 0 0 7px;
    color: #1a2d28;
    font-weight: 700;
}

.sticky-month__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.sticky-month__wd {
    font-size: 0.66rem;
    color: #4b5563;
    text-align: center;
    font-weight: 600;
}

.sticky-day {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: #1f2937;
    justify-self: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.sticky-day:hover {
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.sticky-day.has-event {
    background: #2f7e79;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(47, 126, 121, 0.36);
}

.sticky-note-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.32);
    z-index: 100000;
}

.sticky-note-modal__panel {
    width: min(640px, 94vw);
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 12px;
    position: relative;
    z-index: 100001;
}

.sticky-note-modal__panel--sm {
    width: min(460px, 92vw);
}

.sticky-note-modal__panel h4 {
    margin: 0 0 10px;
}

.sticky-note-modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.sticky-note-modal__top h4 {
    margin: 0;
}

.sticky-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.sticky-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(17, 24, 39, 0.35);
    background: var(--c);
    padding: 0;
}

.sticky-color-swatch.is-active {
    box-shadow: 0 0 0 2px #111827;
}

.sticky-note-modal__panel input,
.sticky-note-modal__panel textarea,
.sticky-note-editor {
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 6px 8px;
}

.sticky-note-editor {
    min-height: 180px;
    max-height: 280px;
    overflow: auto;
    background: #fff;
}

.sticky-editor-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sticky-editor-btn {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #f8fafc;
    border-radius: 8px;
    padding: 5px 9px;
    line-height: 1;
}

.sticky-note-tasks {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.sticky-note-tasks__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sticky-note-tasks__list {
    display: grid;
    gap: 6px;
}

.sticky-task-row {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 6px;
    align-items: center;
}

.sticky-task-row input[type="text"] {
    margin: 0;
}

.sticky-task-row__check {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.sticky-task-row__check input {
    display: none;
}

.sticky-task-row__check span {
    opacity: 0.35;
}

.sticky-task-row.is-done .sticky-task-row__check span {
    opacity: 1;
    color: #2f7e79;
}

.sticky-task-row.is-done input[type="text"] {
    text-decoration: line-through;
    opacity: 0.72;
}

.sticky-task-row__remove {
    border: 1px solid rgba(139, 30, 30, 0.55);
    color: #8b1e1e;
    background: #fff;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    padding: 0;
}

.sticky-note-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .sticky-board-layout {
        grid-template-columns: 1fr;
    }

    .sticky-calendar-panel {
        position: static;
        margin-top: 0;
        height: auto;
    }

    .sticky-calendar-list {
        max-height: 60vh;
    }
}

.admin-only-box {
    margin: 20px 0 24px;
    border-radius: 16px;
    padding: 22px 20px;
    background: linear-gradient(140deg, #fff7a2 0%, #b2fff1 64%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.admin-only-box__title {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 700;
    color: #1f2b28;
}

.admin-only-box__text {
    margin: 0;
    color: #374151;
}

.admin-only-box--center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
}

.admin-only-box__title--animated {
    animation: admin-deny-breathe 2.6s ease-in-out infinite;
}

@keyframes admin-deny-breathe {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(47, 126, 121, 0); }
    50% { transform: scale(1.06); text-shadow: 0 8px 20px rgba(47, 126, 121, 0.26); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(47, 126, 121, 0); }
}

.home-dashboard {
    display: grid;
    gap: 18px;
    padding-bottom: 18px;
    max-width: min(1660px, 94vw);
    margin: 0 auto;
}

.home-dashboard__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.home-dashboard__hero-copy,
.home-dashboard__hero-art,
.home-widget {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(19, 34, 30, 0.1);
    box-shadow: 0 14px 34px rgba(25, 42, 37, 0.09);
}

.home-dashboard__hero-copy {
    padding: 26px 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 239, 107, 0.5), transparent 30%),
        linear-gradient(145deg, #fefde9 0%, #eefef7 48%, #ffffff 100%);
}

.home-launchpad {
    display: grid;
    gap: 14px;
    height: 100%;
    align-content: center;
}

.home-launchpad__row {
    display: grid;
    gap: 10px;
}

.home-launchpad__row--0 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.home-launchpad__row--1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-launchpad__link {
    display: grid;
    gap: 8px;
    justify-items: center;
    align-content: center;
    min-height: 88px;
    border-radius: 16px;
    padding: 12px 8px;
    text-decoration: none;
    color: #16231f;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 24, 39, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.home-launchpad__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 37, 33, 0.1);
    color: #16231f;
    background: #fff;
}

.home-launchpad__icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
}

.home-launchpad__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.home-launchpad__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.home-dashboard__hero-art {
    min-height: 360px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 239, 107, 0.45), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(178, 255, 241, 0.52), transparent 28%),
        linear-gradient(145deg, #15362f 0%, #204c43 42%, #3c8b7d 100%);
}

.home-dashboard__zen-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.home-dashboard__zen-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.home-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 18px;
}

.home-dashboard__grid--lower {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr);
}

.home-widget {
    padding: 18px;
}

.home-widget__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-widget__actions,
.weather48-widget__head-actions,
.moon-sun-widget__head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-widget__status {
    font-size: 0.76rem;
    color: #64748b;
    white-space: nowrap;
}

.home-widget__refresh,
.weather48-widget__refresh,
.moon-sun-widget__refresh {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #9ca3af;
    padding: 0;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.home-widget__refresh svg,
.weather48-widget__refresh svg,
.moon-sun-widget__refresh svg {
    width: 15px;
    height: 15px;
    display: block;
}

.home-widget__refresh:hover,
.weather48-widget__refresh:hover,
.moon-sun-widget__refresh:hover {
    transform: rotate(22deg);
    color: #475569;
    border-color: rgba(71, 85, 105, 0.28);
    background: rgba(148, 163, 184, 0.18);
}

.home-widget__kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f7e79;
}

.home-widget__head h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: #16231f;
}

.home-switch {
    border: 1px solid #111827;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-clock__time {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
    font-weight: 700;
    color: #16231f;
    letter-spacing: 0.04em;
}

.home-clock__date {
    margin-top: 10px;
    color: #516962;
    text-transform: capitalize;
}

.home-clock__meta-strip {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.home-clock__meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f4f4f5;
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: #111827;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-clock__extra-times {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.home-clock__extra-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    padding-top: 8px;
    color: #374151;
    font-size: 0.86rem;
}

.home-clock__extra-time strong {
    color: #111827;
    font-size: 0.95rem;
}

.home-clock__analog {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px;
}

.home-clock__face {
    position: relative;
    width: 258px;
    height: 258px;
    border-radius: 50%;
    border: 5px solid #111827;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f7f7 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.home-clock__face::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(17, 24, 39, 0.12);
}

.home-clock__number {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: #111827;
    z-index: 3;
}

.home-clock__number--1 { transform: translate(66px, -112px); }
.home-clock__number--2 { transform: translate(112px, -66px); }
.home-clock__number--3 { transform: translate(132px, 0); }
.home-clock__number--4 { transform: translate(112px, 66px); }
.home-clock__number--5 { transform: translate(66px, 112px); }
.home-clock__number--6 { transform: translate(0, 132px); }
.home-clock__number--7 { transform: translate(-66px, 112px); }
.home-clock__number--8 { transform: translate(-112px, 66px); }
.home-clock__number--9 { transform: translate(-132px, 0); }
.home-clock__number--10 { transform: translate(-112px, -66px); }
.home-clock__number--11 { transform: translate(-66px, -112px); }
.home-clock__number--12 { transform: translate(0, -132px); }

.home-clock__hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: 50% 100%;
    border-radius: 999px;
    z-index: 2;
}

.home-clock__hand--hour {
    width: 6px;
    height: 54px;
    background: #14211d;
}

.home-clock__hand--minute {
    width: 4px;
    height: 74px;
    background: #111827;
}

.home-clock__hand--second {
    width: 2px;
    height: 86px;
    background: #111827;
    box-shadow: 0 0 16px rgba(17, 24, 39, 0.22);
}

.home-clock__hand--second::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 12px;
    height: 86px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.36));
    filter: blur(6px);
    opacity: 0.85;
}

.home-clock__center {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #111827;
    transform: translate(-50%, -50%);
}

.home-weather {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.home-weather__visual {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.home-weather__icon {
    font-size: 2.2rem;
    line-height: 1;
}

.home-weather__icon--inline {
    font-size: 1.3rem;
    margin-right: 2px;
}

.home-weather__temp {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 700;
    color: #1d3a33;
}

.home-weather__meta {
    color: #476059;
    display: grid;
    gap: 6px;
}

.home-weather__summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-weather__week {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.home-weather__empty {
    color: #5c746d;
}

.home-weather-day {
    border-radius: 14px;
    padding: 10px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 255, 252, 0.78));
    border: 1px solid rgba(17, 24, 39, 0.09);
    text-align: center;
}

.home-weather-day__name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
    color: #16231f;
}

.home-weather-day__icon {
    margin-top: 6px;
    font-size: 1.25rem;
    line-height: 1;
}

.home-weather-day__state {
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.25;
    color: #4f6760;
    min-height: 28px;
}

.home-weather-day__range {
    margin-top: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #111827;
}

.home-converter {
    display: grid;
    gap: 10px;
}

.home-converter__list {
    display: grid;
    gap: 7px;
}

.home-converter__line {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 118px;
    gap: 10px;
    align-items: center;
}

.home-converter__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 7px 9px;
    background: #111827;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-converter__line input {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 10px;
    background: #fff;
    padding: 7px 10px;
    font-weight: 600;
    color: #111827;
}

.home-converter__rate {
    color: #7b8794;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: right;
}

.home-music iframe {
    display: block;
    width: 100%;
    border-radius: 14px;
    background: #fffceb;
}

.home-holidays {
    display: grid;
    gap: 10px;
}

.home-holidays__empty {
    color: #5c746d;
}

.home-holiday-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 11px 12px;
    background: linear-gradient(135deg, rgba(255, 239, 107, 0.24), rgba(178, 255, 241, 0.22));
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.home-holiday-item__date {
    font-weight: 700;
    color: #16231f;
}

.home-holiday-item__title {
    color: #355149;
}

.home-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-link-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: #16231f;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 30%),
        linear-gradient(145deg, #fff7a2 0%, #b2fff1 58%, #ffffff 100%);
    border: 1px solid rgba(17, 24, 39, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-link-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    color: #16231f;
}

.home-link-card strong,
.home-link-card span {
    display: block;
}

.home-link-card strong {
    margin-bottom: 6px;
    font-size: 1rem;
}

.home-link-card span:last-child {
    color: #45615a;
    font-size: 0.9rem;
}

.home-link-card__badge {
    width: fit-content;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 5px 9px;
    background: #111827;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .home-dashboard__hero,
    .home-dashboard__grid,
    .home-dashboard__grid--lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .home-dashboard__hero-copy,
    .home-widget {
        padding: 16px;
    }

    .home-launchpad__row--0,
    .home-launchpad__row--1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dashboard__hero-art {
        min-height: 260px;
    }

    .home-weather,
    .home-holiday-item,
    .home-links,
    .home-converter__line {
        grid-template-columns: 1fr;
    }

    .home-weather__week {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-link-card {
        min-height: auto;
    }

    .home-clock__face {
        width: 232px;
        height: 232px;
    }

    .home-weather__summary-row { align-items: center; }
}

.home-dashboard__footer-widget {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.weather48-widget {
    min-height: 252px;
    border-radius: 24px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #eef8ff 46%, #f9fffe 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: visible;
    grid-column: 1;
    position: relative;
    height: 100%;
}

.weather48-widget.is-night {
    background: linear-gradient(145deg, #0f172a 0%, #152546 42%, #0f2c4f 100%);
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 20px 44px rgba(2, 8, 23, 0.34);
    color: #e2e8f0;
}

.weather48-widget__head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.weather48-widget__meta {
    font-size: 0.82rem;
    color: #475569;
    white-space: nowrap;
}

.weather48-widget.is-night .weather48-widget__meta {
    color: #93c5fd;
}

.weather48-widget__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
    align-items: stretch;
}

.weather48-widget__charts {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 72px;
    gap: 10px;
    min-height: 148px;
}

.weather48-widget__chart {
    position: relative;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 8px 10px 6px;
    transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
    overflow: visible;
}

.weather48-widget__chart:hover {
    transform: translateY(-2px);
}

.weather48-widget.is-night .weather48-widget__chart {
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(96, 165, 250, 0.2);
}

.weather48-widget__chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.weather48-widget__aqi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 10px 8px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.weather48-widget.is-night .weather48-widget__aqi {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(96, 165, 250, 0.22);
}

.weather48-widget__aqi-ring {
    position: relative;
    width: 82px;
    height: 82px;
}

.weather48-widget__aqi-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.weather48-widget__aqi-track,
.weather48-widget__aqi-progress {
    fill: none;
    stroke-width: 8;
}

.weather48-widget__aqi-track {
    stroke: rgba(148, 163, 184, 0.18);
}

.weather48-widget__aqi-progress {
    stroke: #16a34a;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease, stroke 0.4s ease;
}

.weather48-widget__aqi-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.weather48-widget__aqi-value strong {
    font-size: 1.35rem;
    line-height: 1;
}

.weather48-widget__aqi-value span {
    font-size: 0.66rem;
    color: #64748b;
}

.weather48-widget.is-night .weather48-widget__aqi-value span,
.weather48-widget.is-night .weather48-widget__aqi-copy {
    color: #cbd5e1;
}

.weather48-widget__aqi-copy {
    text-align: center;
    color: #334155;
    font-size: 0.82rem;
}

.weather48-widget__aqi-label {
    font-weight: 700;
    margin-bottom: 2px;
}

.weather48-widget__aqi-pm {
    font-size: 0.72rem;
    opacity: 0.9;
}

.weather48-widget__tooltip {
    position: absolute;
    z-index: 30;
    min-width: 180px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.94);
    color: #e2e8f0;
    box-shadow: 0 16px 32px rgba(2, 8, 23, 0.28);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.weather48-widget__tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.weather48-widget__tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #f8fafc;
}

.weather48-widget__tooltip-body {
    display: grid;
    gap: 4px;
    font-size: 0.84rem;
    line-height: 1.35;
}

.moon-sun-widget {
    min-height: 252px;
    border-radius: 24px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #fffef4 0%, #f6f7ff 48%, #ffffff 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.moon-sun-widget.is-night {
    background: linear-gradient(145deg, #0f172a 0%, #21173f 42%, #0b2247 100%);
    border-color: rgba(129, 140, 248, 0.2);
    box-shadow: 0 20px 44px rgba(2, 8, 23, 0.34);
    color: #e2e8f0;
}

.moon-sun-widget__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.moon-sun-widget__star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.82), 0 0 18px rgba(167, 139, 250, 0.28);
    animation: moon-star-twinkle 3.8s ease-in-out infinite;
}

.moon-sun-widget__star::before,
.moon-sun-widget__star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(255, 255, 255, 0.96);
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.moon-sun-widget__star::before {
    width: 1px;
    height: 10px;
}

.moon-sun-widget__star::after {
    width: 10px;
    height: 1px;
}

.moon-sun-widget__star--1 { top: 18px; left: 20px; animation-delay: 0.2s; }
.moon-sun-widget__star--2 { top: 44px; left: 112px; width: 3px; height: 3px; animation-delay: 1s; }
.moon-sun-widget__star--3 { top: 26px; right: 38px; width: 5px; height: 5px; animation-delay: 1.8s; }
.moon-sun-widget__star--4 { top: 88px; right: 120px; width: 3px; height: 3px; animation-delay: 2.4s; }
.moon-sun-widget__star--5 { bottom: 54px; left: 42px; width: 5px; height: 5px; animation-delay: 3s; }
.moon-sun-widget__star--6 { bottom: 82px; right: 36px; animation-delay: 0.7s; }
.moon-sun-widget__star--7 { bottom: 26px; left: 156px; width: 3px; height: 3px; animation-delay: 2.9s; }
.moon-sun-widget__star--8 { top: 128px; left: 86px; width: 2px; height: 2px; animation-delay: 1.4s; }
.moon-sun-widget__star--9 { top: 66px; left: 56px; width: 5px; height: 5px; animation-delay: 2.2s; }
.moon-sun-widget__star--10 { top: 34px; right: 94px; width: 3px; height: 3px; animation-delay: 0.9s; }
.moon-sun-widget__star--11 { bottom: 38px; right: 86px; width: 4px; height: 4px; animation-delay: 3.4s; }
.moon-sun-widget__star--12 { top: 146px; right: 22px; width: 5px; height: 5px; animation-delay: 1.1s; }
.moon-sun-widget__star--13 { top: 104px; left: 126px; width: 4px; height: 4px; animation-delay: 2.7s; }
.moon-sun-widget__star--14 { top: 74px; right: 56px; width: 5px; height: 5px; animation-delay: 0.4s; }
.moon-sun-widget__star--15 { bottom: 92px; left: 188px; width: 3px; height: 3px; animation-delay: 1.6s; }
.moon-sun-widget__star--16 { bottom: 28px; left: 112px; width: 5px; height: 5px; animation-delay: 2.1s; }
.moon-sun-widget__star--17 { top: 18px; left: 168px; width: 4px; height: 4px; animation-delay: 3.1s; }
.moon-sun-widget__star--18 { bottom: 118px; right: 18px; width: 5px; height: 5px; animation-delay: 1.9s; }
.moon-sun-widget__star:nth-child(odd)::before { height: 12px; }
.moon-sun-widget__star:nth-child(even)::after { width: 12px; }

.moon-sun-widget__head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.moon-sun-widget__meta {
    font-size: 0.82rem;
    color: #475569;
    white-space: nowrap;
}

.moon-sun-widget.is-night .moon-sun-widget__meta {
    color: #c4b5fd;
}

.moon-sun-widget__body {
    display: grid;
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    justify-items: center;
    flex: 1 1 auto;
    align-content: center;
}

.moon-sun-widget__moon {
    display: grid;
    justify-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.moon-sun-widget__moon-ring {
    width: 194px;
    height: 194px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    animation: none;
}

.moon-sun-widget__moon-disc {
    position: relative;
    width: 166px;
    height: 166px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 18px rgba(255,255,255,0.2), 0 0 36px rgba(168, 85, 247, 0.12);
    animation: moon-breathe 5.6s ease-in-out infinite;
}

.moon-sun-widget__moon-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: moon-shimmer 6s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(255, 245, 220, 0.26));
}

.moon-sun-widget__moon-crater {
    fill: rgba(155, 140, 113, 0.18);
}

.moon-sun-widget__moon-crater--soft {
    fill: rgba(155, 140, 113, 0.11);
}

.moon-sun-widget__moon-copy {
    text-align: center;
    display: grid;
    gap: 3px;
    margin-top: -4px;
    justify-items: center;
}

.moon-sun-widget__moon-copy strong {
    font-size: 1rem;
    line-height: 1.15;
}

.moon-sun-widget__moon-copy span {
    font-size: 0.76rem;
    color: #64748b;
}

.moon-sun-widget.is-night .moon-sun-widget__moon-copy span {
    color: #cbd5e1;
}

.moon-sun-widget__day {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
    align-self: center;
    justify-self: center;
    width: min(100%, 340px);
}

.moon-sun-widget__progress-copy {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.moon-sun-widget__progress-status {
    display: grid;
    gap: 2px;
    text-align: center;
}

.moon-sun-widget__progress-copy strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.moon-sun-widget__progress-status span {
    font-size: 0.74rem;
    color: #64748b;
}

.moon-sun-widget.is-night .moon-sun-widget__progress-status span {
    color: #cbd5e1;
}

.moon-sun-widget__progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(251, 113, 133, 0.14) 48%, rgba(139, 92, 246, 0.14) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
}

.moon-sun-widget__progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b 0%, #ff8a3d 24%, #fb7185 52%, #a855f7 78%, #7c3aed 100%);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.44);
    transition: width 0.4s ease;
}

.moon-sun-widget__times {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
}

.moon-sun-widget.is-night .moon-sun-widget__times {
    color: #cbd5e1;
}

@keyframes moon-breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(255,255,255,0.2), 0 0 36px rgba(168, 85, 247, 0.12);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 28px rgba(255,255,255,0.28), 0 0 48px rgba(168, 85, 247, 0.18);
    }
}

@keyframes moon-shimmer {
    0%, 100% {
        opacity: 0.76;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes moon-star-twinkle {
    0%, 100% { opacity: 0.12; transform: scale(0.75) rotate(0deg); }
    35% { opacity: 1; transform: scale(1.5) rotate(12deg); }
    55% { opacity: 0.32; transform: scale(0.92) rotate(-10deg); }
    75% { opacity: 0.86; transform: scale(1.18) rotate(8deg); }
}

@media (max-width: 991.98px) {
    .home-dashboard__footer-widget {
        grid-template-columns: 1fr;
    }

    .weather48-widget__body {
        grid-template-columns: 1fr;
    }

    .weather48-widget__aqi {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .moon-sun-widget__body {
        grid-template-columns: 156px minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .weather48-widget {
        padding: 14px;
        border-radius: 22px;
    }

    .weather48-widget__head {
        margin-bottom: 10px;
    }

    .weather48-widget__meta {
        white-space: normal;
    }

    .weather48-widget__charts {
        grid-template-rows: minmax(0, 170px) 76px;
    }

    .weather48-widget__aqi {
        flex-direction: column;
    }

    .moon-sun-widget {
        padding: 14px;
    }

    .moon-sun-widget__body {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .moon-sun-widget__day {
        width: 100%;
    }

    .moon-sun-widget__moon-ring {
        width: 154px;
        height: 154px;
    }

    .moon-sun-widget__moon-disc {
        width: 130px;
        height: 130px;
    }
}
