/* RESET */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #f5f7fb;
}

/* DASHBOARD */
.rp-dashboard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.rp-topbar {
  height: 60px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.rp-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rp-brand {
  font-size: 18px;
  font-weight: 600;
}

/* TOGGLE */
#rpToggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* RIGHT */
.rp-right {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* TOP MENU */
.rp-top-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-top-menu li {
  cursor: pointer;
  color: #fff;
}

.rp-top-menu a {
  color: #fff;
  text-decoration: none;
}

/* MOBILE MENU BTN */
#rpMobileMenu {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* DROPDOWN */
.rp-mobile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #0f172a;
  border-radius: 8px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.rp-mobile-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.rp-mobile-dropdown a:hover {
  background: #1f2937;
}

.rp-mobile-dropdown.show {
  display: flex;
}

/* MAIN */
.rp-main {
  display: flex;
  flex: 1;
}

/* SIDEBAR */
.rp-sidebar {
  width: 240px;
  background: #0f172a;
  color: #fff;
  overflow-y: auto;
  transition: 0.3s;
  
}

.rp-sidebar.collapsed {
  width: 70px;
}

/* MENU */
.rp-menu {
  list-style: none;
  margin: 0;
  padding: 20px 10px;
}

.rp-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.rp-menu-item:hover {
  background: #1f2937;
}

.rp-menu-item.active {
  background: #2563eb;
}

.rp-letter {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border-radius: 6px;
}

.rp-text {
  white-space: nowrap;
}

.rp-sidebar.collapsed .rp-text {
  display: none;
}

/* CONTENT */
.rp-content {
  flex: 1;
  padding: 30px;
  overflow: auto;
}

/* PRODUCT GRID */
.rp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* PRODUCT CARD (LATEST) */
.rp-product-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: .25s;
  position: relative;
}

.rp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.rp-product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}

.rp-product-card h3 {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0;
  color: #111827;
}

/* ACTIONS */
.rp-product-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* BUTTON BASE */
.rp-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PRIMARY BUTTON */
.rp-btn-primary {
  background: #2563eb;
  color: #fff;
  flex: 1;
}

.rp-btn-primary:hover {
  background: #1d4ed8;
}

/* SECONDARY BUTTON */
.rp-btn-secondary {
  background: #256eff;
  color: #111;
  width: 36px;
}

.rp-btn-secondary:hover {
  background: #e5e7eb;
}

/* ACCESS BUTTON (LATEST) */
.rp-btn-access {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.rp-btn-access:hover {
  background: #1d4ed8;
}

/* ICON BUTTON */
.rp-btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 16px;
  transition: .2s;
}

.rp-btn-icon:hover {
  background: #e5e7eb;
}

/* RIBBON */
.rp-ribbon {
  position: absolute;
  top: 12px;
  left: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 4px;
  transform: rotate(-10deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* PAGE VIEWER */
.rp-page-viewer {
  width: 100%;
  height: calc(100vh - 120px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.rp-page-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .rp-sidebar {
    position: fixed;
    top: 60px;
    left: -240px;
    height: 100%;
    z-index: 1000;
  }

  .rp-sidebar.open {
    left: 0;
  }

  .rp-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-top-menu {
    display: none;
  }

  #rpMobileMenu {
    display: block;
  }
}

@media (max-width: 480px) {
  .rp-products-grid {
    grid-template-columns: 1fr;
  }
}
.rp-disabled{
opacity:0.6;
cursor:not-allowed;
pointer-events:none;
}

.rp-dashboard-home{
display:grid;
gap:20px;
}

.rp-dashboard-frame{
height:240px;
border-radius:10px;
overflow:hidden;
border:1px solid rgba(255,255,255,0.08);
}

.rp-dashboard-frame iframe{
width:100%;
height:100%;
border:0;
}



/* USER WELCOME CARD */

.rp-user-card{
display:flex;
justify-content:space-between;
align-items:center;
background:linear-gradient(120deg,#0f2b46,#061a2d);
padding:28px;
border-radius:14px;
margin-bottom:25px;
color:#fff;
box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.rp-user-card h2{
font-size:24px;
font-weight:600;
margin:0;
color:white;
}

.rp-user-email{
opacity:0.85;
font-size:14px;
margin-top:6px;
}

.rp-live-time-label{
font-size:12px;
opacity:0.7;
}

.rp-live-time{
font-size:26px;
font-weight:600;
color:#66d1ff;
}


/* GRID LAYOUT */

.rp-dashboard-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
}

@media(max-width:900px){
.rp-dashboard-grid{
grid-template-columns:1fr;
}
}


/* DASHBOARD CARDS */

.rp-card{
background:linear-gradient(160deg,#0c1f34,#081423);
padding:20px;
border-radius:14px;
border:1px solid rgba(255,255,255,0.05);
box-shadow:0 8px 20px rgba(0,0,0,0.35);
position:relative;
}


/* CARD TITLES */

.rp-card-title{
font-size:15px;
font-weight:600;
margin-bottom:15px;
color:#9edbff;
letter-spacing:0.5px;
}


/* IFRAME CONTAINER */

.rp-dashboard-frame{
height:260px;
border-radius:12px;
overflow:hidden;
border:1px solid rgba(255,255,255,0.08);
background:#081423;
}

.rp-dashboard-frame iframe{
width:100%;
height:100%;
border:0;
}


/* NOTICE LIST (INSIDE IFRAME PAGE) */

.rp-list{
max-height:260px;
overflow:auto;
}


/* NOTICE ITEM */

.rp-item{
position:relative;
padding:14px 16px;
margin-bottom:12px;
border-radius:10px;
background:#11263f;
border:1px solid rgba(255,255,255,0.06);
transition:0.25s;
}

.rp-item:hover{
background:#153153;
}


/* TITLE */

.rp-item strong{
display:block;
font-size:14px;
margin-bottom:4px;
color:#ffffff;
}


/* CONTENT */

.rp-item p{
font-size:13px;
color:#cfd9e6;
margin:0;
}


/* DATE */

.rp-date{
position:absolute;
top:10px;
right:12px;
font-size:11px;
color:#8bbce6;
}


/* STATUS DOT */

.rp-status-dot{
width:8px;
height:8px;
background:#00e676;
border-radius:50%;
display:inline-block;
margin-right:8px;
}


/* SCROLLBAR */

.rp-list::-webkit-scrollbar{
width:6px;
}

.rp-list::-webkit-scrollbar-track{
background:transparent;
}

.rp-list::-webkit-scrollbar-thumb{
background:#2f5b88;
border-radius:10px;
}

.rp-list::-webkit-scrollbar-thumb:hover{
background:#3e78b0;
}

/* MAIN DASHBOARD */

.rp-dashboard{
height:100vh;
display:flex;
flex-direction:column;
overflow:hidden;
}


/* TOPBAR */

.rp-topbar{
flex:0 0 auto;
}


/* MAIN AREA */

.rp-main{
flex:1;
display:flex;
overflow:hidden;
}


/* SIDEBAR */

.rp-sidebar{
width:240px;
background:#0c1f34;
height:100%;
display:flex;
flex-direction:column;
overflow:hidden;
}


/* SIDEBAR MENU SCROLL */

.rp-menu{
flex:1;
overflow-y:auto;
padding:10px 0;
}

.rp-bottom-menu{
flex:0 0 auto;
border-top:1px solid rgba(255,255,255,0.05);
padding:10px 0;
}


/* CONTENT AREA */

.rp-content{
flex:1;
overflow-y:auto;
padding:25px;

}


/* CONTENT AREA SCROLL */

#rp-content-area{
min-height:100%;
}


/* SCROLLBAR STYLE */

.rp-sidebar::-webkit-scrollbar,
.rp-content::-webkit-scrollbar,
.rp-menu::-webkit-scrollbar{
width:6px;
}

.rp-sidebar::-webkit-scrollbar-thumb,
.rp-content::-webkit-scrollbar-thumb,
.rp-menu::-webkit-scrollbar-thumb{
background:#2f5b88;
border-radius:10px;
}


/* MOBILE */

@media (max-width:768px){

.rp-sidebar{
position:fixed;
left:-260px;
top:60px;
height:calc(100vh - 60px);
z-index:999;
transition:0.3s;
}

.rp-sidebar.open{
left:0;
}

.rp-content{
padding:18px;
}

}

.rp-popup-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
opacity:0;
visibility:hidden;
transition:0.3s;
}

.rp-popup-overlay.show{
opacity:1;
visibility:visible;
}

.rp-popup-box{
width:420px;
max-width:90%;
background:#0c1f34;
border-radius:14px;
padding:20px;
color:#fff;
box-shadow:0 20px 40px rgba(0,0,0,0.5);
}

.rp-popup-header{
display:flex;
justify-content:space-between;
margin-bottom:15px;
}

.rp-popup-close{
background:none;
border:none;
color:#fff;
font-size:20px;
cursor:pointer;
}

.rp-loading{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
min-height:220px;
gap:12px;
font-size:14px;
color:#777;
}

.rp-spinner{
width:36px;
height:36px;
border:3px solid #e5e7eb;
border-top:3px solid #2563eb;
border-radius:50%;
animation:rpSpin 0.8s linear infinite;
}

.rp-loading-text{
font-weight:500;
letter-spacing:.3px;
}

@keyframes rpSpin{
0%{transform:rotate(0deg);}
100%{transform:rotate(360deg);}
}
.rp-skeleton-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:16px;
padding:10px;
}

.rp-skeleton-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
gap:18px;
padding:15px;
width:100%;
min-height:70vh;
transition:opacity .35s ease, transform .35s ease;
}

.rp-skeleton-hide{
opacity:0;
transform:translateY(8px);
}

.rp-skeleton-card{
height:150px;
border-radius:10px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

@keyframes rpSkeleton{
0%{background-position:100% 0}
100%{background-position:-100% 0}
}

.rp-order-skeleton{
display:flex;
flex-direction:column;
gap:14px;
padding:10px;
}

.rp-order-skeleton-row{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px;
border-radius:8px;
background:#fff;
box-shadow:0 1px 3px rgba(0,0,0,0.05);
}

.rp-order-skeleton-left{
flex:1;
}

.rp-sk-line{
height:12px;
border-radius:6px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
margin-bottom:8px;
}

.rp-sk-title{
width:60%;
height:14px;
}

.rp-sk-small{
width:40%;
height:10px;
}

.rp-sk-btn{
width:70px;
height:28px;
border-radius:6px;
}

@keyframes rpSkeleton{
0%{background-position:100% 0}
100%{background-position:-100% 0}
}

.rp-skeleton-product{
pointer-events:none;
}

.rp-sk-image{
width:100%;
height:150px;
border-radius:8px;
margin-bottom:10px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

.rp-sk-line{
height:10px;
border-radius:6px;
margin:8px auto;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

.rp-sk-cat{width:40%;}
.rp-sk-title{width:70%;height:12px;}

.rp-sk-price-row{
display:flex;
justify-content:center;
gap:6px;
margin-top:6px;
}

.rp-sk-price{width:50px;height:14px;}
.rp-sk-price-small{width:35px;height:12px;}

.rp-sk-btn{
height:34px;
border-radius:6px;
margin-top:10px;
background:linear-gradient(
90deg,
#f3f4f6 25%,
#e5e7eb 37%,
#f3f4f6 63%
);
background-size:400% 100%;
animation:rpSkeleton 1.4s ease infinite;
}

@keyframes rpSkeleton{
0%{background-position:100% 0}
100%{background-position:-100% 0}
}

/* APP THEME */

:root{
--bg:#f4f7fb;
--panel:#ffffff;
--nav:#0f172a;
--primary:#6366f1;
--primary2:#8b5cf6;
--text:#0f172a;
--muted:#64748b;
--border:#e5e7eb;
}

body{
background:var(--bg);
}


/* topbar */

.rp-topbar{
height:72px;
background:#fff;
color:var(--text);
padding:0 24px;
border-bottom:1px solid var(--border);
box-shadow:0 4px 20px rgba(0,0,0,.03);
position:sticky;
top:0;
z-index:999;
}

.rp-brand{
display:flex;
align-items:center;
gap:14px;
}

.rp-brand-icon{
width:42px;
height:42px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
background:linear-gradient(
135deg,
var(--primary),
var(--primary2)
);
color:#fff;
}

.rp-brand-title{
font-size:18px;
font-weight:700;
line-height:1.1;
}

.rp-brand-sub{
font-size:12px;
color:var(--muted);
}

.rp-toggle-btn{
border:none;
background:#eef2ff;
width:42px;
height:42px;
border-radius:12px;
color:#4338ca;
}



/* top menu */

.rp-top-menu li,
.rp-top-menu a{
color:#334155;
font-weight:600;
}

.rp-top-menu li:hover{
color:var(--primary);
}



/* sidebar */

.rp-sidebar{
background:#0b1120;
border-right:1px solid rgba(255,255,255,.04);
}

/* ================= COMPACT MENU ================= */

.rp-menu{
    padding:10px 10px;
}

.rp-menu-item{
    padding:8px 12px;
    margin-bottom:2px;
    border-radius:12px;
    min-height:44px;
}

.rp-letter{
    width:30px;
    height:30px;
    border-radius:9px;
}

.rp-text{
    font-size:14px;
}

.rp-menu-item:hover{
background:#172554;
}

.rp-menu-item.active{
background:linear-gradient(
135deg,
var(--primary),
var(--primary2)
);
}

.rp-letter{
width:34px;
height:34px;
border-radius:10px;
background:rgba(255,255,255,.08);
}



/* bottom menu pinned */
.rp-bottom-menu{
padding:14px 12px;
background:#0b1120;
}



/* content */

.rp-content{
background:#f6f8fc;
padding:30px;
}



/* dashboard cards */

.rp-user-card{
background:
radial-gradient(circle at 20% 20%,rgba(255,255,255,.12),transparent 40%),
linear-gradient(135deg,#111827,#312e81);
border:none;
border-radius:24px;
padding:34px;
}

.rp-card{
background:#fff;
border:none;
border-radius:20px;
box-shadow:0 8px 35px rgba(0,0,0,.04);
}

.rp-card-title{
color:#111827;
font-size:17px;
font-weight:700;
}

.rp-dashboard-frame{
border:none;
border-radius:14px;
}



/* prettier scroll */
.rp-content::-webkit-scrollbar,
.rp-menu::-webkit-scrollbar{
width:8px;
}

.rp-content::-webkit-scrollbar-thumb,
.rp-menu::-webkit-scrollbar-thumb{
background:#cbd5e1;
border-radius:20px;
}



/* popup */
.rp-popup-box{
background:#fff;
color:#111827;
border-radius:20px;
}



/* mobile bottom nav feel */
@media(max-width:768px){

.rp-topbar{
height:64px;
padding:0 16px;
}

.rp-brand-sub{
display:none;
}

.rp-content{
padding:18px;
}

.rp-sidebar{
width:260px;
box-shadow:10px 0 30px rgba(0,0,0,.15);
}

.rp-user-card{
padding:24px;
}

}


/* extra small */
@media(max-width:540px){

.rp-dashboard-grid{
gap:18px;
}

.rp-user-card h2{
font-size:21px;
}

}

@media(max-width:768px){

.rp-top-menu{
display:none;
}

.rp-content{
padding-bottom:90px;
}

.rp-mobile-bottom-nav{
position:fixed;
left:0;
bottom:0;
width:100%;
height:65px;
background:#fff;
display:flex;
justify-content:space-around;
align-items:center;
border-top:1px solid #e5e7eb;
box-shadow:0 -4px 20px rgba(0,0,0,.06);
z-index:9999;
}

.rp-mobile-bottom-nav button{
background:none;
border:none;
display:flex;
flex-direction:column;
align-items:center;
gap:4px;
font-size:18px;
font-weight:600;
color:#475569;
}

.rp-mobile-bottom-nav button span{
font-size:11px;
}

}

@media(min-width:769px){
.rp-mobile-bottom-nav{
display:none;
}
}
.rp-mobile-bottom-nav{
transition:
transform .3s ease;
}

.rp-mobile-bottom-nav button.active{
color:#6366f1;
}

.rp-mobile-bottom-nav button{
background:none;
border:none;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:4px;
font-size:18px;
font-weight:600;
color:#64748b;
padding:8px 14px;
border-radius:14px;
transition:.25s;
}


/* hover */
.rp-mobile-bottom-nav button:hover{
background:#eef2ff;
color:#6366f1;
}


/* ACTIVE */
.rp-mobile-bottom-nav button.active{

background:linear-gradient(
135deg,
#6366f1,
#8b5cf6
);

color:#fff;

box-shadow:
0 6px 18px rgba(
99,102,241,.28
);

transform:translateY(-2px);

}

.rp-mobile-bottom-nav button.active span{
color:#fff;
}


.rp-mobile-bottom-nav button span{
font-size:11px;
font-weight:600;
}
/* logout item */

.rp-logout-item{
margin-top:8px;
}

.rp-logout-item a{
display:flex;
align-items:center;
gap:12px;
text-decoration:none;
width:100%;
color:#fca5a5;
padding:12px 14px;
border-radius:14px;
transition:.25s;
}

.rp-logout-item .rp-letter{
background:rgba(239,68,68,.15);
color:#f87171;
}

.rp-logout-item:hover{
background:rgba(239,68,68,.08);
}

.rp-logout-item:hover a{
color:#fff;
}

.rp-logout-item:hover .rp-letter{
background:#ef4444;
color:#fff;
transform:scale(1.05);
}


/* collapsed sidebar */
.rp-sidebar.collapsed .rp-logout-item .rp-text{
display:none;
}
/* mobile drawer overlay */
@media(max-width:768px){

.rp-sidebar{
position:fixed;
top:64px;
left:-270px;
width:260px;
height:calc(100vh - 64px);
z-index:10050; /* above bottom nav */
transition:left .28s ease;
box-shadow:12px 0 30px rgba(0,0,0,.2);
}

.rp-sidebar.open{
left:0;
}

/* dim overlay */
.rp-sidebar-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.35);
backdrop-filter:blur(2px);
z-index:10040;
display:none;
}

.rp-sidebar-overlay.show{
display:block;
}


/* keep bottom nav below sidebar */
.rp-mobile-bottom-nav{
z-index:9999;
}

}
.rp-mobile-bottom-nav button.active{
background:linear-gradient(
135deg,#6366f1,#8b5cf6
);
color:#fff;
box-shadow:0 6px 18px rgba(99,102,241,.25);
}

/* ===== POPUP OVERLAY ===== */

.rp-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rp-popup-overlay.show {
    display: flex;
}

.rp-popup-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: rpPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rpPopIn {
    from {
        transform: scale(0.88) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.rp-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1e293b, #312e81);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-popup-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.rp-popup-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.rp-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.rp-popup-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.rp-popup-body {
    padding: 22px 20px 18px;
    font-size: 14px;
    line-height: 1.75;
    color: #cbd5e1;
}

.rp-popup-body p {
    margin: 0;
}

.rp-popup-footer {
    padding: 0 20px 20px;
}

.rp-popup-dismiss {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6366f1, #312e81);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.rp-popup-dismiss:hover {
    opacity: 0.88;
}

/* mobile */
@media (max-width: 480px) {
    .rp-popup-box {
        border-radius: 14px;
    }
    .rp-popup-header {
        padding: 15px 16px;
    }
    .rp-popup-body {
        padding: 18px 16px 14px;
    }
    .rp-popup-footer {
        padding: 0 16px 16px;
    }
}

/* ===== END POPUP CSS ===== */

/* -----------------------
BOTTOM NAV SCROLL HIDE/SHOW
----------------------- */

.rp-mobile-bottom-nav {
    transition: transform 0.3s ease;
}

.rp-mobile-bottom-nav.rp-nav-hidden {
    transform: translateY(100%);
}

/* -----------------------
SIDEBAR OVERLAY
----------------------- */

.rp-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 10040;
    display: none;
    transition: opacity 0.3s;
}

.rp-sidebar-overlay.show {
    display: block;
}

/* -----------------------
SIDEBAR ARRANGEMENT
----------------------- */

.rp-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rp-menu {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px;
    scrollbar-width: thin;
    scrollbar-color: #2f5b88 transparent;
}

.rp-bottom-menu {
    padding: 10px 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0b1120;
}

.rp-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 14px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background 0.2s;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    list-style: none;
}

.rp-menu-item:hover {
    background: #172554;
    color: #fff;
}

.rp-menu-item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.rp-letter {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.rp-menu-item.active .rp-letter {
    background: rgba(255, 255, 255, 0.2);
}

.rp-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* collapsed sidebar */
.rp-sidebar.collapsed {
    width: 68px;
}

.rp-sidebar.collapsed .rp-text {
    display: none;
}

.rp-sidebar.collapsed .rp-letter {
    margin: 0 auto;
}

.rp-sidebar.collapsed .rp-menu-item {
    justify-content: center;
    padding: 11px 8px;
}

/* sidebar scrollbar */
.rp-menu::-webkit-scrollbar {
    width: 4px;
}

.rp-menu::-webkit-scrollbar-thumb {
    background: #2f5b88;
    border-radius: 10px;
}

/* -----------------------
MOBILE SIDEBAR
----------------------- */

@media (max-width: 768px) {

    .rp-sidebar {
        position: fixed;
        top: 64px;
        left: -270px;
        width: 260px;
        height: calc(100vh - 64px);
        z-index: 10050;
        transition: left 0.28s ease;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.3);
    }

    .rp-sidebar.open {
        left: 0;
    }

}

/* Topbar z-index fix */
.rp-topbar {
    z-index: 9000;
    position: sticky; /* already hai, bas confirm karein */
}

/* Sidebar mobile — topbar aur bottom nav ke UPAR */
@media (max-width: 768px) {
    .rp-sidebar {
        top: 0;              /* topbar se bhi upar se shuru */
        height: 100vh;       /* full height */
        z-index: 99999;      /* sab ke upar */
    }

    .rp-sidebar-overlay {
        z-index: 99998;      /* sidebar ke just neeche */
    }

    /* Toggle button mobile mein hide */
    #rpToggle {
        display: none;
    }
}

/* Bottom nav z-index kam rakho sidebar se */
.rp-mobile-bottom-nav {
    z-index: 9999; /* sidebar se neeche */
}
@media (max-width: 768px) {
    .rp-desktop-only {
        display: none !important;
    }
}

.rp-bottom-menu {
    padding: 10px 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0b1120;
    /* Koi extra padding-left nahi — ul se inherit nahi hoga ab */
}

/* Ensure bottom menu ke andar ke items same padding lein */
.rp-bottom-menu .rp-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 14px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 4px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    list-style: none;
}

.rp-logout-item {
    padding: 0 !important;
}

.rp-logout-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
}

.rp-logout-item a:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #fff;
}

.rp-logout-item a .rp-letter {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.rp-all-products-header {
    margin-bottom: 16px;
}

.rp-search-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.rp-search-input::placeholder {
    color: #94a3b8;
}

.rp-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.rp-cat-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.rp-cat-btn:hover {
    background: rgba(99,102,241,0.15);
    color: #fff;
}

.rp-cat-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.rp-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 0 6px;
}

.rp-page-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    transition: .2s;
}

.rp-page-btn:hover {
    background: rgba(99,102,241,0.2);
    color: #fff;
}

.rp-page-info {
    font-size: 13px;
    color: #64748b;
}

.rp-all-empty {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 15px;
}

.rp-product-category {
    font-size: 11px;
    color: #6366f1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 4px;
    text-align: center;
}
/* HELP TABS */
.rp-help-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0;
}

.rp-help-tab {
    background: none;
    border: none;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    transition: .2s;
}

.rp-help-tab:hover {
    color: #fff;
}

.rp-help-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

/* HELP PANEL */
.rp-help-panel .rp-page-viewer {
    height: calc(100vh - 220px);
}

/* ================= GRID ================= */

.rp-skeleton-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:18px;
width:100%;
}

/* ================= CARD ================= */

.rp-skeleton-card{
background:#fff;
border-radius:18px;
padding:12px;
overflow:hidden;
border:1px solid #edf2f7;
display:flex;
flex-direction:column;
height:320px;
box-sizing:border-box;
}

/* ================= SHIMMER EFFECT ================= */

.rp-sk-thumb,
.rp-sk-cat,
.rp-sk-title,
.rp-sk-btn{

background:linear-gradient(
90deg,
#f1f5f9 0%,
#e2e8f0 20%,
#f8fafc 40%,
#e2e8f0 60%,
#f1f5f9 100%
);

background-size:250% 100%;

animation:rpShimmer 2.2s linear infinite;
}

/* ================= IMAGE ================= */

.rp-sk-thumb{
height:170px;
min-height:170px;
border-radius:14px;
margin-bottom:14px;
width:100%;
flex-shrink:0;
}

/* ================= CATEGORY ================= */

.rp-sk-cat{
height:12px;
width:80px;
border-radius:30px;
margin:0 auto 14px;
flex-shrink:0;
}

/* ================= TITLE ================= */

.rp-sk-title{
height:15px;
width:72%;
border-radius:30px;
margin:0 auto 18px;
flex-shrink:0;
}

/* ================= BUTTON ================= */

.rp-sk-btn{
height:42px;
width:100%;
border-radius:12px;
margin-top:auto;
flex-shrink:0;
}

/* ================= ANIMATION ================= */

@keyframes rpShimmer{

0%{
background-position:200% 0;
}

100%{
background-position:-200% 0;
}

}
/* ALL PRODUCTS FIX */
/* ================= ALL PRODUCTS GRID ================= */

#rpAllGrid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:18px;
align-items:stretch;
}

/* ================= SKELETON FIX ================= */

#rpAllGrid .rp-skeleton-grid{
display:contents;
}

/* ================= CARD FIX ================= */

#rpAllGrid .rp-skeleton-card{
width:100%;
min-width:0;
}