/* Modern UI layer for /time/today and /time/day/* */
.time-modern{
  width:min(1180px,calc(100% - 28px))!important;
  max-width:1180px!important;
  margin:22px auto 54px!important;
  padding:0!important;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.time-modern > *{margin-top:0!important}
.time-modern > .date-nav{
  margin:0!important;
  position:relative;
  min-height:150px;
  padding:28px clamp(18px,4vw,42px)!important;
  border:1px solid rgba(91,75,219,.14);
  border-radius:28px;
  background:
    radial-gradient(520px 240px at 8% 10%,rgba(91,75,219,.14),transparent 65%),
    radial-gradient(420px 220px at 100% 100%,rgba(14,165,233,.10),transparent 64%),
    linear-gradient(135deg,#fff,#fbfbff 56%,#f5f3ff);
  box-shadow:0 22px 55px rgba(29,23,74,.08);
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:center;
  gap:16px;
  overflow:hidden;
}
.time-modern .navcenter{text-align:center}
.time-modern .navcenter h1{
  margin:0!important;
  font-size:clamp(24px,3vw,36px)!important;
  line-height:1.55;
  letter-spacing:-.6px;
  color:#17133c;
}
.time-modern .navsub{
  margin-top:8px;
  font-size:14px!important;
  font-weight:800;
  color:#6d6784!important;
}
.time-modern .navbtn{
  width:48px;height:48px;
  border:1px solid rgba(91,75,219,.16);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  color:#4d3fc2;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:26px;font-weight:900;
  box-shadow:0 10px 24px rgba(29,23,74,.07);
  transition:.18s ease;
}
.time-modern .navbtn:hover{transform:translateY(-2px);background:#fff;border-color:rgba(91,75,219,.32)}
.time-modern > .time-box{
  margin:-40px auto 2px!important;
  z-index:2;
  min-width:230px;
  padding:11px 22px!important;
  border:1px solid rgba(91,75,219,.16)!important;
  border-radius:18px!important;
  background:#17133c!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(23,19,60,.18)!important;
  font-size:30px!important;
  font-weight:900!important;
  letter-spacing:1px;
  direction:ltr;
  text-align:center;
}
.time-modern > .grid{
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.time-modern > .grid .card{
  min-height:142px;
  padding:18px!important;
  border:1px solid #eceaf6!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#fff,#fdfcff)!important;
  box-shadow:0 12px 30px rgba(23,19,60,.055)!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.time-modern > .grid .card::before{
  content:"";position:absolute;inset:0 auto 0 0;width:4px;
  background:linear-gradient(#7967ec,#59c3ee);
}
.time-modern .k{font-size:12px!important;font-weight:900!important;color:#77728a!important;letter-spacing:.1px}
.time-modern .v.big{margin-top:8px;font-size:clamp(20px,2vw,27px)!important;font-weight:950!important;color:#211a54!important;direction:ltr}
.time-modern .hint{margin-top:6px;color:#8a849c!important;font-size:12px!important;line-height:1.7}
.time-modern .card.section{
  margin:0!important;
  padding:clamp(18px,2.6vw,28px)!important;
  border:1px solid #eceaf6!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(23,19,60,.055)!important;
}
.time-modern .sec-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.time-modern .sec-head h2,.time-modern .card.section > h2{margin:0;font-size:20px!important;color:#17133c}
.time-modern .sec-pill{padding:6px 10px;border-radius:999px;background:#f1efff;color:#5b4bdb;font-size:12px;font-weight:900}
.time-modern .occ-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.time-modern .occ-item{
  min-height:76px;padding:14px 15px!important;border:1px solid #eceaf6!important;border-radius:18px!important;
  background:#fdfdff!important;display:flex;gap:12px;align-items:flex-start;transition:.18s ease;
}
.time-modern .occ-item:hover{transform:translateY(-2px);border-color:#dcd7ff!important;box-shadow:0 12px 24px rgba(23,19,60,.055)}
.time-modern .occ-dot{width:10px;height:10px;border-radius:50%;background:#7764ec;margin-top:9px;box-shadow:0 0 0 5px #f0eeff;flex:0 0 auto}
.time-modern .occ-title{font-size:14px;line-height:1.8;color:#2c2751}
.time-modern .occ-badge,.time-modern .hchip{border-radius:999px!important;font-size:11px!important;padding:3px 8px!important}
.time-modern .birthdays-wrap{
  margin-top:14px;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:12px!important;
}
.time-modern .birth-card{
  min-width:0!important;padding:10px!important;border:1px solid #eceaf6!important;border-radius:19px!important;background:#fff!important;
  box-shadow:0 8px 24px rgba(23,19,60,.045)!important;transition:.18s ease!important;
}
.time-modern .birth-card:hover{transform:translateY(-3px);border-color:#d9d3ff!important;box-shadow:0 16px 32px rgba(23,19,60,.08)!important}
.time-modern .birth-img{width:64px!important;height:64px!important;border-radius:16px!important;overflow:hidden;flex:0 0 auto;background:#f4f2ff}
.time-modern .birth-img img{width:100%;height:100%;object-fit:cover}
.time-modern .birth-body strong{color:#211a54;font-size:14px}
.time-modern .birth-body .job{color:#79738c!important;font-size:12px!important}
.time-modern .birth-body .age{margin-top:4px;font-size:11px!important;font-weight:800;color:#5b4bdb!important}
.time-modern .share{margin:0!important;display:flex!important;gap:10px;justify-content:center;flex-wrap:wrap}
.time-modern .share .btn{border-radius:15px!important;padding:10px 16px!important;box-shadow:none!important}
.time-modern .day-boxes{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.time-modern .day-box{padding:18px;border:1px solid #eeecf7;border-radius:19px;background:#fcfbff}
.time-modern .day-box.about{background:linear-gradient(180deg,#fff,#fdfcff)}
.time-modern .day-box.features{background:linear-gradient(135deg,#f7fbff,#fbffff);border-color:#e2f1f7}
.time-modern .day-box.fortune{background:linear-gradient(135deg,#fffaf6,#fffdfb);border-color:#f4e9dc}
.time-modern .day-box h2,.time-modern .day-box h3{margin:0 0 12px;color:#211a54;font-size:19px}
.time-modern .content{color:#4e4962!important;font-size:14px!important;line-height:2.15!important}
.time-modern .content h2{margin:28px 0 10px!important;font-size:20px!important;color:#211a54!important}
.time-modern .content h3{margin:22px 0 8px!important;font-size:17px!important;color:#352d73!important}
.time-modern .content p{margin:0 0 13px!important}
.time-modern img.featured{display:none!important}
.time-modern .empty-box{border:1px dashed #d9d3ff;border-radius:18px;background:#faf9ff;padding:16px}

@media(max-width:900px){
  .time-modern > .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .time-modern .occ-list{grid-template-columns:1fr}
}
@media(max-width:620px){
  .time-modern{width:calc(100% - 20px)!important;margin-top:12px!important;gap:12px}
  .time-modern > .date-nav{grid-template-columns:42px minmax(0,1fr) 42px;padding:20px 10px!important;border-radius:22px;min-height:132px}
  .time-modern .navbtn{width:40px;height:40px;border-radius:13px;font-size:22px}
  .time-modern .navcenter h1{font-size:21px!important}
  .time-modern .navsub{font-size:12px!important}
  .time-modern > .time-box{margin:-30px auto 0!important;min-width:190px;font-size:25px!important}
  .time-modern > .grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .time-modern > .grid .card{min-height:118px;padding:13px!important;border-radius:18px!important}
  .time-modern .v.big{font-size:18px!important}
  .time-modern .card.section{padding:15px!important;border-radius:20px!important}
  .time-modern .birthdays-wrap{grid-template-columns:1fr!important}
}
