/* RR Subscriptions – Frontend Dashboard CSS */

/* ── Reset for our scope ── */
.rr-layout *, .rr-layout *::before, .rr-layout *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --rr-orange:     #f47321;
    --rr-orange-dk:  #d9621a;
    --rr-green:      #2e7d4f;
    --rr-green-dk:   #1e6e3e;
    --rr-bg:         #1c1c1c;
    --rr-sidebar:    #111111;
    --rr-topbar:     #141414;
    --rr-card:       #232323;
    --rr-border:     #2e2e2e;
    --rr-text:       #ffffff;
    --rr-muted:      #888888;
    --rr-dim:        #aaaaaa;
    --rr-font-h:     'Space Grotesk', sans-serif;
    --rr-font-b:     'Manrope', sans-serif;
}

/* ── Full-viewport layout ── */
.rr-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--rr-bg);
    color: var(--rr-text);
    font-family: var(--rr-font-b);
    font-size: 14px;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9000;
}

/* ── Sidebar ── */
.rr-sidebar {
    width: 228px;
    flex-shrink: 0;
    background: var(--rr-sidebar);
    display: flex;
    flex-direction: column;
    padding: 26px 0 20px;
    border-right: 1px solid var(--rr-border);
    transition: transform .28s ease;
    z-index: 200;
}
.rr-brand { padding: 0 22px 36px; }
.rr-brand__name { font-family: var(--rr-font-h); font-weight: 700; font-size: 17px; letter-spacing: -.3px; text-transform: uppercase; color: var(--rr-orange); }
.rr-brand__sub  { font-family: var(--rr-font-b); font-weight: 500; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rr-muted); margin-top: 3px; }
.rr-nav { list-style: none; }
.rr-nav li a {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 22px;
    color: var(--rr-muted);
    text-decoration: none;
    font-family: var(--rr-font-b); font-weight: 700; font-size: 12px; letter-spacing: .3px; text-transform: uppercase;
    transition: color .15s, background .15s;
}
.rr-nav li a:hover { color: #fff; background: rgba(255,255,255,.04); }
.rr-nav--active a {
    color: var(--rr-orange) !important;
    background: rgba(244,115,33,.08) !important;
    border-left: 3px solid var(--rr-orange);
    padding-left: 19px !important;
}
.rr-nav li a svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Overlay */
.rr-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 199; }
.rr-sidebar-overlay.open { display: block; }

/* ── Main ── */
.rr-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* ── Topbar ── */
.rr-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 0 24px; height: 64px;
    background: var(--rr-topbar); border-bottom: 1px solid var(--rr-border);
    flex-shrink: 0;
}
.rr-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--rr-muted); padding: 4px; transition: color .15s; }
.rr-hamburger:hover { color: #fff; }
.rr-hamburger svg { width: 20px; height: 20px; display: block; }
.rr-user { display: flex; align-items: center; gap: 11px; }
.rr-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #2a2a2a; border: 2px solid var(--rr-orange);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--rr-font-h); font-size: 12px; font-weight: 700; color: var(--rr-orange);
    overflow: hidden; flex-shrink: 0;
}
.rr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rr-user__name   { font-family: var(--rr-font-h); font-weight: 700; font-size: 13px; letter-spacing: -.2px; text-transform: uppercase; }
.rr-user__status { font-family: var(--rr-font-b); font-size: 10px; font-weight: 700; color: #3ecf5a; text-transform: uppercase; letter-spacing: .3px; margin-top: 1px; }
.rr-search { margin-left: auto; position: relative; flex-shrink: 1; }
.rr-search input {
    background: #1e1e1e; border: 1px solid var(--rr-border); border-radius: 4px;
    padding: 8px 14px 8px 34px; color: var(--rr-dim);
    font-family: var(--rr-font-b); font-size: 12px; width: 230px; outline: none;
    transition: border-color .2s;
}
.rr-search input::placeholder { color: var(--rr-muted); }
.rr-search input:focus { border-color: var(--rr-orange); }
.rr-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--rr-muted); width: 13px; height: 13px; }
.rr-topicons { display: flex; gap: 12px; margin-left: 10px; flex-shrink: 0; }
.rr-topicons button, .rr-topicons a { background: none; border: none; cursor: pointer; color: var(--rr-muted); padding: 3px; transition: color .15s; display: flex; align-items: center; }
.rr-topicons button:hover, .rr-topicons a:hover { color: #fff; }
.rr-topicons svg { width: 19px; height: 19px; display: block; }
.rr-topicons__search { display: none; }

/* ── Scroll ── */
.rr-scroll { flex: 1; overflow-y: auto; padding: 24px 24px 60px; }
.rr-scroll::-webkit-scrollbar { width: 4px; }
.rr-scroll::-webkit-scrollbar-thumb { background: #2e2e2e; }

/* ── Top row ── */
.rr-top-row { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin-bottom: 24px; }
.rr-hero {
    background: var(--rr-card); border: 1px solid var(--rr-border);
    padding: 32px 36px; position: relative; overflow: hidden; min-height: 190px;
}
.rr-hero h1 { font-family: var(--rr-font-h); font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -1.5px; text-transform: uppercase; margin-bottom: 14px; }
.rr-hero p  { font-family: var(--rr-font-b); font-size: 14px; line-height: 22px; color: var(--rr-dim); max-width: 380px; }
.rr-hero__arrow { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); opacity: .09; }
.rr-hero__arrow svg { width: 120px; height: 120px; }
.rr-hero__link { margin-top: 20px; font-family: var(--rr-font-b); font-size: 13px; color: var(--rr-dim); }
.rr-hero__link a { color: var(--rr-orange); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--rr-orange); }
.rr-premium { background: var(--rr-orange); padding: 24px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; overflow: hidden; }
.rr-premium::after { content: ''; position: absolute; top: -50px; right: -50px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.09); }
.rr-premium__icon { background: rgba(0,0,0,.22); padding: 7px 8px; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.rr-premium__icon svg { width: 13px; height: 13px; color: #fff; }
.rr-premium h2 { font-family: var(--rr-font-h); font-weight: 700; font-size: 20px; letter-spacing: -.6px; text-transform: uppercase; color: #fff; z-index: 1; }

/* ── Mid row ── */
.rr-mid-row { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin-bottom: 24px; align-items: start; }
.rr-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rr-sec-head h2 { font-family: var(--rr-font-h); font-weight: 700; font-size: 15px; letter-spacing: -.4px; text-transform: uppercase; }
.rr-sec-head a  { font-family: var(--rr-font-b); font-weight: 700; font-size: 11px; color: var(--rr-orange); text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
.rr-sec-head a:hover { text-decoration: underline; }

/* Cards */
.rr-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rr-ccard { background: var(--rr-card); border: 1px solid var(--rr-border); overflow: hidden; cursor: pointer; transition: border-color .2s; text-decoration: none; display: block; }
.rr-ccard:hover { border-color: #3a3a3a; }
.rr-ccard__img { height: 145px; background: #1a1a1a; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.rr-ccard__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rr-ccard__body { padding: 12px 14px 14px; }
.rr-ctag { font-family: var(--rr-font-b); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rr-orange); margin-bottom: 5px; }
.rr-ctitle { font-family: var(--rr-font-b); font-weight: 700; font-size: 13px; line-height: 18px; color: #fff; }

/* Biblioteca */
.rr-bib-list { display: flex; flex-direction: column; gap: 3px; }
.rr-bib-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--rr-card); border: 1px solid var(--rr-border); cursor: pointer; transition: border-color .2s; }
.rr-bib-item:hover { border-color: #3a3a3a; }
.rr-bib-ico { width: 32px; height: 32px; background: #2d2d2d; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-bib-ico svg { width: 14px; height: 14px; color: var(--rr-muted); }
.rr-bib-info { flex: 1; min-width: 0; }
.rr-bib-title { font-family: var(--rr-font-b); font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-bib-meta  { font-family: var(--rr-font-b); font-size: 10px; color: var(--rr-muted); margin-top: 1px; }
.rr-bib-dl { background: none; border: none; cursor: pointer; color: var(--rr-muted); padding: 3px; transition: color .15s; flex-shrink: 0; text-decoration: none; display: flex; }
.rr-bib-dl:hover { color: var(--rr-orange); }
.rr-bib-dl svg { width: 14px; height: 14px; display: block; }

/* Suporte */
.rr-suporte { margin-top: 12px; background: var(--rr-card); border: 1px solid var(--rr-border); border-left: 3px solid var(--rr-orange); padding: 18px 16px 18px 14px; }
.rr-suporte h3 { font-family: var(--rr-font-h); font-weight: 700; font-size: 13px; letter-spacing: -.2px; text-transform: uppercase; margin-bottom: 6px; }
.rr-suporte p  { font-family: var(--rr-font-b); font-size: 11px; color: var(--rr-muted); line-height: 16px; margin-bottom: 14px; }
.rr-btn-wa { display: inline-flex; align-items: center; gap: 7px; background: var(--rr-green); color: #fff; border: none; padding: 9px 14px; font-family: var(--rr-font-b); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; transition: background .2s; text-decoration: none; }
.rr-btn-wa:hover { background: var(--rr-green-dk); color: #fff; }
.rr-btn-wa svg { width: 12px; height: 12px; }

/* Eco */
.rr-eco-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.rr-eco-btn { display: flex; align-items: center; gap: 8px; background: var(--rr-card); border: 1px solid var(--rr-border); padding: 11px 18px; color: var(--rr-dim); font-family: var(--rr-font-b); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap; text-decoration: none; }
.rr-eco-btn:hover { border-color: var(--rr-orange); color: #fff; }
.rr-eco-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Blocked ── */
.rr-blocked { text-align: center; padding: 60px 24px; max-width: 480px; margin: 0 auto; }
.rr-blocked__icon { color: var(--rr-orange); margin-bottom: 20px; }
.rr-blocked h2 { font-family: var(--rr-font-h); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.rr-blocked p  { color: var(--rr-dim); line-height: 1.7; }
.rr-blocked__plans { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.rr-blocked__plan { background: var(--rr-card); border: 1px solid var(--rr-border); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.rr-blocked__plan strong { font-family: var(--rr-font-h); font-size: 14px; }
.rr-blocked__plan em { font-size: 11px; color: var(--rr-orange); font-style: normal; }
.rr-blocked__cta { display: inline-block; background: var(--rr-orange); color: #fff; padding: 12px 28px; font-family: var(--rr-font-b); font-weight: 700; font-size: 13px; text-decoration: none; transition: background .2s; }
.rr-blocked__cta:hover { background: var(--rr-orange-dk); color: #fff; }
.rr-blocked__sub { margin-top: 16px; font-size: 12px; }
.rr-blocked__sub a { color: var(--rr-orange); }

/* ── Pricing ── */
.rr-pricing { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 32px 0; }
.rr-pricing__card { background: var(--rr-card); border: 1px solid var(--rr-border); border-top: 3px solid var(--rr-orange); padding: 28px 24px; min-width: 260px; flex: 1; max-width: 320px; }
.rr-pricing__name { font-family: var(--rr-font-h); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rr-pricing__desc { color: var(--rr-dim); font-size: 13px; margin-bottom: 20px; }
.rr-pricing__price { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 6px; }
.rr-pricing__currency { font-size: 14px; font-weight: 700; color: var(--rr-dim); margin-bottom: 4px; }
.rr-pricing__amount { font-family: var(--rr-font-h); font-size: 36px; font-weight: 700; line-height: 1; }
.rr-pricing__cycle { font-size: 12px; color: var(--rr-dim); margin-bottom: 4px; }
.rr-pricing__trial { font-size: 11px; color: var(--rr-orange); font-weight: 700; margin-bottom: 20px; }
.rr-pricing__features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.rr-pricing__features li { font-size: 13px; color: var(--rr-dim); }
.rr-pricing__features li::before { content: '✓ '; color: var(--rr-green); font-weight: 700; }
.rr-pricing__cta { display: block; background: var(--rr-orange); color: #fff; padding: 12px; text-align: center; font-family: var(--rr-font-b); font-weight: 700; font-size: 13px; text-decoration: none; transition: background .2s; }
.rr-pricing__cta:hover { background: var(--rr-orange-dk); color: #fff; }

/* ── My Account ── */
.rr-account { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.rr-account h2 { font-family: var(--rr-font-h); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.rr-account__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rr-account__card { background: var(--rr-card); border: 1px solid var(--rr-border); padding: 20px; }
.rr-account__card h3 { font-family: var(--rr-font-h); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.rr-account__table { width: 100%; border-collapse: collapse; }
.rr-account__table th, .rr-account__table td { padding: 8px 4px; border-bottom: 1px solid var(--rr-border); font-size: 13px; text-align: left; }
.rr-account__table th { font-weight: 700; color: var(--rr-muted); width: 130px; }
.rr-btn-primary { display: inline-block; background: var(--rr-orange); color: #fff; padding: 10px 20px; font-weight: 700; font-size: 13px; text-decoration: none; }
.rr-btn-cancel  { color: #c0392b; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .rr-top-row { grid-template-columns: 1fr 220px; }
    .rr-mid-row { grid-template-columns: 1fr 220px; }
    .rr-search input { width: 180px; }
}
@media (max-width: 768px) {
    .rr-layout { position: fixed; }
    .rr-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.5); }
    .rr-sidebar.open { transform: translateX(0); }
    .rr-hamburger { display: flex; }
    .rr-search { display: none; }
    .rr-search.open { display: block; position: fixed; top: 64px; left: 0; right: 0; padding: 12px 16px; background: var(--rr-topbar); border-bottom: 1px solid var(--rr-border); z-index: 150; margin-left: 0; }
    .rr-search.open input { width: 100%; }
    .rr-topicons__search { display: flex !important; }
    .rr-scroll { padding: 16px 16px 80px; }
    .rr-top-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
    .rr-hero { padding: 24px; min-height: auto; }
    .rr-hero h1 { font-size: 24px; line-height: 29px; letter-spacing: -1px; }
    .rr-hero__arrow { display: none; }
    .rr-mid-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
    .rr-account__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .rr-cards-grid { grid-template-columns: 1fr; }
    .rr-hero h1 { font-size: 20px; }
    .rr-user__wrap { display: none; }
    .rr-eco-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .rr-eco-btn { justify-content: center; }
}
