:root{
  --rf-blue:#075cff;
  --rf-blue-2:#0b7cff;
  --rf-navy:#06153d;
  --rf-ink:#06153d;
  --rf-muted:#607295;
  --rf-line:#d8e7ff;
  --rf-soft:#eef6ff;
  --rf-soft-2:#f7fbff;
  --rf-bad:#d92d20;
  --rf-shadow:0 12px 28px rgba(6,21,61,.08);
  --rf-shadow-lg:0 28px 70px rgba(6,21,61,.13);
}

*{box-sizing:border-box}
html,body{min-height:100%}

body{
  margin:0;
  font-family:'Plus Jakarta Sans',ui-sans-serif,system-ui,sans-serif;
  color:var(--rf-ink);
  font-weight:700;
  background:
    radial-gradient(circle at 10% 0%,rgba(0,184,255,.16),transparent 30%),
    radial-gradient(circle at 92% 18%,rgba(7,92,255,.13),transparent 28%),
    linear-gradient(135deg,#edf5ff 0%,#fff 45%,#f4f9ff 100%);
}

.rf-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.rf-main{
  flex:1;
  display:flex;
  flex-direction:column;
}

a{text-decoration:none;color:inherit}
button,input{font:inherit}

.rf-shell{
  width:min(100% - 32px,1120px);
  margin-inline:auto;
}

/* Navbar */
.rf-nav-wrap{
  position:sticky;
  top:14px;
  z-index:50;
  margin-top:14px;
}

.rf-nav{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid var(--rf-line);
  box-shadow:var(--rf-shadow);
  backdrop-filter:blur(18px);
}

.rf-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding-left:2px;
  min-width:max-content;
}

.rf-brand-logo{
  width:42px;
  height:42px;
  border-radius:15px;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--rf-line);
  display:block;
}

.rf-brand-title{
  font-size:16px;
  font-weight:950;
  color:var(--rf-ink);
  letter-spacing:-.02em;
}

.rf-nav-right{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:999px;
  background:rgba(238,246,255,.62);
  border:1px solid rgba(216,231,255,.62);
}

.rf-nav-link,
.rf-dropdown-trigger,
.rf-icon-btn{
  border:0;
  background:transparent;
  color:var(--rf-navy);
  font-weight:950;
  font-size:13px;
  border-radius:999px;
  padding:12px 14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.rf-nav-link:hover,
.rf-dropdown-trigger:hover,
.rf-icon-btn:hover{
  background:#fff;
}

.rf-nav-separator{
  width:1px;
  height:26px;
  background:var(--rf-line);
  margin:0 2px;
}

.rf-dropdown{
  position:relative;
}

.rf-dropdown-panel{
  position:absolute;
  top:calc(100% + 14px);
  right:0;
  width:280px;
  background:#fff;
  border:1px solid var(--rf-line);
  box-shadow:var(--rf-shadow-lg);
  border-radius:24px;
  padding:10px;
  display:none;
}

.rf-dropdown:hover .rf-dropdown-panel{
  display:block;
}

.rf-drop-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:13px;
  border-radius:18px;
}

.rf-drop-item:hover{
  background:var(--rf-soft-2);
}

.rf-drop-icon{
  width:34px;
  height:34px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--rf-soft);
  color:var(--rf-blue);
  font-size:15px;
  flex:0 0 auto;
}

.rf-drop-item strong{
  display:block;
  font-size:13px;
}

.rf-drop-item small{
  display:block;
  color:var(--rf-muted);
  font-size:11px;
  line-height:1.5;
  margin-top:3px;
}

.rf-icon-btn{
  width:44px;
  height:44px;
  padding:0;
  justify-content:center;
  background:#fff;
  border:1px solid var(--rf-line);
  position:relative;
}

.rf-dot{
  position:absolute;
  top:10px;
  right:10px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--rf-bad);
  border:2px solid #fff;
}

.rf-profile-btn{
  border:0;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:999px;
  padding:7px 12px 7px 7px;
  background:linear-gradient(135deg,var(--rf-blue),var(--rf-blue-2));
  color:#fff;
  font-weight:950;
  font-size:13px;
}

.rf-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  color:var(--rf-blue);
  display:grid;
  place-items:center;
  font-weight:950;
}

/* Footer */
.rf-footer{
  margin-top:auto;
  background:#06153d;
  color:#dbeaff;
  border-radius:34px 34px 0 0;
  padding:38px 0 26px;
}

.rf-footer-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr .75fr .9fr;
  gap:22px;
}

.rf-footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.rf-footer-logo{
  display:inline-flex;
  align-items:center;
}

.rf-footer-logo img{
  width:142px;
  max-height:44px;
  object-fit:contain;
  display:block;
}

.rf-footer p{
  color:#adc6f5;
  font-size:13px;
  line-height:1.75;
  margin:0;
}

.rf-footer h3{
  font-size:13px;
  color:#fff;
  margin:0 0 14px;
}

.rf-footer a{
  display:block;
  color:#adc6f5;
  font-size:13px;
  margin:10px 0;
}

.rf-footer a:hover{
  color:#fff;
}

.rf-footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:28px;
  padding-top:20px;
  color:#adc6f5;
  font-size:12px;
}

@media(max-width:900px){
  .rf-nav{
    border-radius:26px;
  }

  .rf-nav-right{
    gap:4px;
  }

  .rf-dropdown-trigger,
  .rf-nav-link{
    display:none;
  }

  .rf-nav-separator{
    display:none;
  }

  .rf-footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:620px){
  .rf-shell{
    width:min(100% - 24px,1120px);
  }

  .rf-brand-copy span{
    display:none;
  }

  .rf-profile-btn span:last-child{
    display:none;
  }

  .rf-footer{
    border-radius:26px 26px 0 0;
  }

  .rf-footer-grid{
    grid-template-columns:1fr;
  }
}


/* Shared navbar panels: profile, notification, hover bridge */
.rf-profile-menu,.rf-notif-menu{position:relative}
.rf-profile-chevron{font-size:10px;opacity:.8}
.rf-profile-panel{
  position:absolute;right:0;top:calc(100% + 2px);width:260px;background:#fff;border:1px solid var(--rf-line);
  border-radius:24px;padding:10px;box-shadow:var(--rf-shadow-lg);display:none;z-index:80
}
.rf-profile-menu:hover .rf-profile-panel{display:block}
.rf-profile-head{padding:12px;border-radius:18px;background:var(--rf-soft-2);margin-bottom:6px}
.rf-profile-head strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-profile-head span{display:block;font-size:11px;color:var(--rf-muted);margin-top:4px}
.rf-profile-panel a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;font-size:13px;font-weight:900;color:var(--rf-ink)}
.rf-profile-panel a:hover{background:var(--rf-soft)}
.rf-profile-panel a.danger{color:#d92d20}

.rf-notif-panel{
  position:absolute;right:0;top:calc(100% + 2px);width:310px;background:#fff;border:1px solid var(--rf-line);
  border-radius:24px;padding:12px;box-shadow:var(--rf-shadow-lg);display:none;z-index:80
}
.rf-notif-menu:hover .rf-notif-panel{display:block}
.rf-notif-head{padding:13px;border-radius:18px;background:var(--rf-soft-2);margin-bottom:8px}
.rf-notif-head strong{display:block;font-size:14px}
.rf-notif-head small{display:block;color:var(--rf-muted);font-size:11px;line-height:1.5;margin-top:4px}
.rf-notif-panel a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;font-size:13px;font-weight:900;color:var(--rf-ink)}
.rf-notif-panel a:hover{background:var(--rf-soft)}

.rf-dropdown,.rf-profile-menu,.rf-notif-menu{padding-bottom:16px;margin-bottom:-16px}
.rf-dropdown-panel{top:calc(100% + 2px)}
.rf-dropdown:after,.rf-profile-menu:after,.rf-notif-menu:after{content:"";position:absolute;left:0;right:0;top:100%;height:18px}

@media(max-width:620px){
  .rf-brand-title{display:none}
}

/* Rainyfeel shared page loader */
.rf-page-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(245,249,255,.58);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
}
.rf-page-loader.show{display:flex}
.rf-loader-box{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--rf-line);
  border-radius:999px;
  padding:14px 18px;
  box-shadow:var(--rf-shadow-lg);
  color:var(--rf-ink);
  font-size:13px;
}
.rf-loader-spinner{
  width:18px;
  height:18px;
  border:3px solid #d8e7ff;
  border-top-color:var(--rf-blue);
  border-radius:50%;
  animation:rfSpin .8s linear infinite;
}
@keyframes rfSpin{to{transform:rotate(360deg)}}
