:root{
  --fc-bg-1:#071a52;
  --fc-bg-2:#0a46d7;
  --fc-bg-3:#0e6bff;
  --fc-bg-4:#061136;

  --fc-sidebar:#0a2f9e;
  --fc-sidebar-dark:#071f73;
  --fc-sidebar-border:rgba(255,255,255,.10);

  --fc-card:#ffffff;
  --fc-card-soft:#e9f6ff;
  --fc-card-blue:#1d65ff;
  --fc-card-dark:#0a43c9;

  --fc-text:#0f1d49;
  --fc-text-2:#38476d;
  --fc-text-light:#ffffff;
  --fc-muted:#7886a8;

  --fc-orange:#ff9d1f;
  --fc-orange-2:#ff7b17;
  --fc-cyan:#39c6ff;
  --fc-green:#17b86f;
  --fc-red:#db4d4d;

  --fc-border:rgba(255,255,255,.16);
  --fc-border-soft:rgba(17,53,135,.10);

  --fc-shadow-lg:0 30px 70px rgba(2, 16, 58, .26);
  --fc-shadow-md:0 18px 40px rgba(7, 30, 89, .18);
  --fc-shadow-sm:0 10px 24px rgba(10, 32, 89, .12);

  --fc-radius-xl:30px;
  --fc-radius-lg:24px;
  --fc-radius-md:18px;
  --fc-radius-sm:14px;

  --fc-sidebar-w:320px;
  --fc-topbar-h:76px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}

body{
  font-family:Arial, Helvetica, sans-serif;
  color:var(--fc-text);
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(84,196,255,.24), transparent 0 19%),
    radial-gradient(circle at 88% 14%, rgba(255,170,38,.14), transparent 0 14%),
    radial-gradient(circle at 82% 80%, rgba(255,255,255,.10), transparent 0 18%),
    linear-gradient(135deg, var(--fc-bg-1) 0%, var(--fc-bg-2) 34%, var(--fc-bg-3) 70%, var(--fc-bg-4) 100%);
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.09) 0 2px, transparent 2px),
    radial-gradient(circle at 78% 34%, rgba(255,255,255,.08) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 72% 82%, rgba(255,255,255,.07) 0 1.8px, transparent 1.8px);
  background-size:220px 220px, 180px 180px, 260px 260px;
  opacity:.35;
}

a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}

.fc-app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:var(--fc-sidebar-w) minmax(0,1fr);
  gap:0;
  padding:22px;
  position:relative;
  z-index:1;
}

/* SIDEBAR */
.fc-sidebar{
  position:relative;
  z-index:20;
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 44px);
  background:
    linear-gradient(180deg, rgba(15,80,255,.92), rgba(8,39,142,.94)),
    radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 30%);
  border:1px solid var(--fc-sidebar-border);
  border-right:none;
  border-radius:var(--fc-radius-xl) 0 0 var(--fc-radius-xl);
  padding:20px 16px 18px;
  box-shadow:var(--fc-shadow-lg);
  overflow:hidden;
  backdrop-filter:blur(16px);
}

.fc-sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 14% 88%, rgba(57,198,255,.12), transparent 18%),
    radial-gradient(circle at 88% 15%, rgba(255,157,31,.12), transparent 16%);
}

.fc-brand{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:0 0 18px;
  padding:14px 0 10px;
  min-height:110px;
}

.fc-brand-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:86px;
  padding:0;
  background:transparent;
  border:none;
  border-radius:0;
  box-shadow:none;
}

.fc-brand-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:100px;
  padding:0 14px;
  background:transparent;
  border:none;
  box-shadow:none;
}

.fc-brand-image{
  display:block;
  width:100%;
  max-width:250px;
  height:auto;
  max-height:90px;
  margin:0 auto;
  object-fit:contain;
  object-position:center center;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.16));
}

.fc-nav{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}

.fc-nav-btn,
.fc-nav-link{
  width:100%;
  min-height:54px;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.94);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  border-radius:18px;
  cursor:pointer;
  transition:transform .20s ease, background .20s ease, box-shadow .20s ease, opacity .20s ease;
  text-align:left;
  font-weight:600;
  letter-spacing:.1px;
}

.fc-nav-btn:hover,
.fc-nav-link:hover{
  background:rgba(255,255,255,.08);
  transform:translateX(2px);
}

.fc-nav-btn.is-active{
  background:linear-gradient(135deg, rgba(75,146,255,.96), rgba(31,92,230,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 10px 24px rgba(0,0,0,.18);
}

.fc-nav-ico{
  width:22px;
  text-align:center;
  font-size:18px;
  opacity:.96;
}

.fc-nav-exit{
  margin-top:8px;
  opacity:.92;
}

/* MAIN */
.fc-main-wrap{
  position:relative;
  min-width:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.11), transparent 16%);
  border:1px solid rgba(255,255,255,.12);
  border-left:none;
  border-radius:0 var(--fc-radius-xl) var(--fc-radius-xl) 0;
  padding:18px 20px 26px;
  box-shadow:var(--fc-shadow-lg);
  backdrop-filter:blur(18px);
  overflow:hidden;
}

.fc-main-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.08), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(0,186,255,.08), transparent 22%);
}

.fc-topbar{
  position:relative;
  z-index:1;
  height:var(--fc-topbar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  padding:0 4px;
}

.fc-mobile-menu{
  display:none;
  border:none;
  background:rgba(255,255,255,.14);
  color:#fff;
  width:48px;
  height:48px;
  border-radius:16px;
  cursor:pointer;
  box-shadow:var(--fc-shadow-sm);
}

.fc-topbar-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px;
}

.fc-notify-btn{
  width:50px;
  height:50px;
  border:none;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.10));
  color:#fff;
  position:relative;
  cursor:pointer;
  box-shadow:var(--fc-shadow-sm);
}

.fc-notify-btn em{
  position:absolute;
  top:-4px;
  right:-4px;
  width:20px;
  height:20px;
  border-radius:999px;
  background:linear-gradient(135deg, #ff8a37, #ff5f43);
  color:#fff;
  font-size:11px;
  font-style:normal;
  display:grid;
  place-items:center;
  font-weight:700;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.fc-userbox{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:8px 10px 8px 14px;
  box-shadow:var(--fc-shadow-sm);
}

.fc-user-meta{
  text-align:right;
}

.fc-user-meta small{
  display:block;
  opacity:.78;
  margin-bottom:2px;
  font-size:12px;
}

.fc-user-meta strong{
  font-size:15px;
  line-height:1.1;
}

.fc-userbox img{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.42);
  background:#fff;
}

.fc-content-area{
  position:relative;
  z-index:1;
  width:100%;
}

/* TITLES */
.fc-page-head{
  color:#fff;
  margin-bottom:20px;
  padding:2px 2px 8px;
}

.fc-page-head h1{
  margin:0 0 8px;
  font-size:36px;
  line-height:1.04;
  font-weight:800;
  letter-spacing:-.4px;
  text-shadow:0 10px 26px rgba(0,0,0,.12);
}

.fc-page-head p{
  margin:0;
  opacity:.92;
  max-width:760px;
  font-size:15px;
}

/* GRID */
.fc-grid{
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.fc-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fc-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* CARD */
.fc-card{
  position:relative;
  overflow:hidden;
  border-radius:26px;
  padding:24px;
  min-height:170px;
  background:var(--fc-card);
  box-shadow:var(--fc-shadow-md);
  border:1px solid rgba(255,255,255,.50);
}

.fc-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 22%);
}

.fc-card-light{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,248,255,.96));
  color:var(--fc-text);
}

.fc-card-soft{
  background:linear-gradient(180deg, rgba(228,248,255,.98), rgba(208,236,255,.96));
  color:var(--fc-text);
}

.fc-card-blue{
  background:linear-gradient(135deg, rgba(49,125,255,.97), rgba(18,88,237,.96));
  color:#fff;
  border-color:rgba(255,255,255,.18);
}

.fc-card-dark{
  background:linear-gradient(135deg, rgba(13,73,212,.98), rgba(9,49,154,.97));
  color:#fff;
  border-color:rgba(255,255,255,.16);
}

.fc-card-ad{
  background:
    linear-gradient(135deg, rgba(12,91,240,.94), rgba(8,51,164,.94)),
    radial-gradient(circle at right bottom, rgba(255,170,0,.20), transparent 25%);
  color:#fff;
  display:flex;
  align-items:flex-end;
  min-height:190px;
  border-color:rgba(255,255,255,.16);
}

.fc-card-head{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:12px;
}

.fc-card h3{
  position:relative;
  z-index:1;
  margin:0 0 10px;
  font-size:18px;
  font-weight:800;
  line-height:1.25;
}

.fc-card p{
  position:relative;
  z-index:1;
  line-height:1.6;
}

/* BADGES */
.fc-status-pill{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  width:max-content;
  margin-bottom:10px;
  letter-spacing:.2px;
}

.fc-status-pill.is-green{
  background:#dff8eb;
  color:#0d9d58;
}

.fc-status-pill.is-orange{
  background:#fff0dd;
  color:#e88912;
}

.fc-big-number{
  position:relative;
  z-index:1;
  font-size:40px;
  font-weight:900;
  margin-bottom:10px;
  line-height:1.02;
  letter-spacing:-.6px;
}

.fc-price{
  position:relative;
  z-index:1;
  font-size:46px;
  font-weight:900;
  color:#f39a1f;
  line-height:1.02;
  margin-top:10px;
  letter-spacing:-1px;
}

.fc-price small{
  font-size:18px;
  color:#35a560;
  font-weight:800;
}

.fc-ok{
  color:#35a560;
  font-weight:800;
}

.fc-muted{
  color:var(--fc-muted);
}

.fc-mini-pill{
  position:relative;
  z-index:1;
  margin-top:12px;
  display:inline-flex;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-size:13px;
  font-weight:700;
  backdrop-filter:blur(8px);
}

/* BUTTONS */
.fc-btn{
  position:relative;
  z-index:1;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease;
  box-shadow:0 12px 20px rgba(0,0,0,.12);
}

.fc-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
}

.fc-btn:active{
  transform:translateY(0);
}

.fc-btn-orange{
  background:linear-gradient(135deg, var(--fc-orange), var(--fc-orange-2));
  color:#fff;
}

.fc-btn-blue{
  background:linear-gradient(135deg, #27b1ff, #0f7dea);
  color:#fff;
}

.fc-btn-outline{
  background:#fff;
  color:#2357cc;
  border:1px solid #d7e4ff;
}

.fc-btn-sm{
  min-height:36px;
  padding:0 14px;
  font-size:13px;
  box-shadow:none;
}

/* HISTORY */
.fc-history-list{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:10px 0 18px;
}

.fc-history-item{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  background:linear-gradient(180deg, #f8fbff, #f3f8ff);
  border:1px solid #e6eefc;
  border-radius:18px;
  padding:14px 16px;
  box-shadow:0 8px 18px rgba(13, 45, 121, .06);
}

.fc-history-item strong{
  display:block;
  line-height:1.2;
}

.fc-history-item p{
  margin:4px 0 0;
  color:#485677;
}

/* VIEW */
.fc-view{
  display:none;
  animation:fcFade .24s ease;
}

.fc-view.is-active{
  display:block;
}

@keyframes fcFade{
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:none}
}

/* LIST / FORM */
.fc-list{
  margin:0;
  padding-left:18px;
  line-height:1.9;
}

.fc-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.fc-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}

.fc-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.fc-field label{
  font-weight:800;
  color:#23345f;
  font-size:14px;
}

.fc-field input,
.fc-field select,
.fc-field textarea{
  width:100%;
  min-height:52px;
  border:1px solid #dbe6fb;
  background:#fff;
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
  outline:none;
  color:var(--fc-text);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow:0 8px 16px rgba(13, 46, 118, .04);
}

.fc-field input:focus,
.fc-field select:focus,
.fc-field textarea:focus{
  border-color:#4f8fff;
  box-shadow:0 0 0 4px rgba(67,123,255,.12);
}

.fc-field textarea{
  resize:vertical;
  min-height:140px;
}

.fc-form-actions{
  display:flex;
  justify-content:flex-end;
}

.fc-inline-message{
  padding:14px 16px;
  border-radius:16px;
  font-weight:700;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}

.fc-inline-message.is-success{
  background:#e5fff0;
  color:#0d8c50;
  border:1px solid #bfeecf;
}

.fc-inline-message.is-error{
  background:#fff0f0;
  color:#c63131;
  border:1px solid #f3c2c2;
}

/* TABLE */
.fc-table-wrap{
  position:relative;
  z-index:1;
  overflow:auto;
  border-radius:18px;
  background:#fff;
  border:1px solid #e8eefc;
}

.fc-table{
  width:100%;
  border-collapse:collapse;
  min-width:700px;
}

.fc-table th,
.fc-table td{
  padding:14px 12px;
  border-bottom:1px solid #edf2fb;
  text-align:left;
  vertical-align:middle;
}

.fc-table th{
  color:#5b6990;
  font-size:13px;
  font-weight:800;
  background:#f8fbff;
  position:sticky;
  top:0;
  z-index:1;
}

.fc-table tbody tr:hover{
  background:#f9fbff;
}

/* DOCUMENT FILTER */
.fc-doc-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}

.fc-doc-filter{
  border:none;
  background:rgba(255,255,255,.14);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  transition:all .18s ease;
  box-shadow:0 10px 18px rgba(0,0,0,.08);
}

.fc-doc-filter:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.20);
}

.fc-doc-filter.is-active{
  background:#fff;
  color:#1546c2;
  font-weight:800;
}

/* SCROLLBAR */
*::-webkit-scrollbar{
  width:10px;
  height:10px;
}
*::-webkit-scrollbar-thumb{
  background:rgba(19,79,196,.35);
  border-radius:999px;
}
*::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
}

/* FALLBACK */
.fc-fallback-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, #0d59ef, #0a3399);
}

.fc-fallback-box{
  background:#fff;
  padding:32px;
  border-radius:24px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
  text-align:center;
}

/* RESPONSIVO */
@media (max-width: 1280px){
  .fc-app-shell{
    grid-template-columns:290px minmax(0,1fr);
  }

  .fc-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .fc-big-number{
    font-size:34px;
  }

  .fc-price{
    font-size:40px;
  }
}

@media (max-width: 980px){
  .fc-app-shell{
    grid-template-columns:1fr;
    padding:14px;
  }

  .fc-sidebar{
    position:fixed;
    top:14px;
    left:14px;
    bottom:14px;
    width:min(88vw, 300px);
    min-height:auto;
    border-radius:28px;
    border-right:1px solid rgba(255,255,255,.10);
    transform:translateX(-110%);
    transition:transform .25s ease;
  }

  .fc-sidebar.is-open{
    transform:translateX(0);
  }

  .fc-main-wrap{
    border-left:1px solid rgba(255,255,255,.12);
    border-radius:28px;
    padding:16px;
  }

  .fc-mobile-menu{
    display:inline-grid;
    place-items:center;
  }

  .fc-grid-2,
  .fc-grid-3,
  .fc-form-grid{
    grid-template-columns:1fr;
  }

  .fc-page-head h1{
    font-size:28px;
  }

  .fc-table{
    min-width:640px;
  }
}

@media (max-width: 640px){
  .fc-card{
    padding:18px;
    border-radius:22px;
  }

  .fc-history-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .fc-user-meta{
    display:none;
  }

  .fc-topbar{
    margin-bottom:16px;
  }

  .fc-price{
    font-size:34px;
  }

  .fc-big-number{
    font-size:30px;
  }

  .fc-brand{
    margin:0 0 14px;
    padding:8px 0 4px;
    min-height:76px;
  }

  .fc-brand-link{
    min-height:58px;
    padding:0;
  }

  .fc-brand-logo-wrap{
    min-height:58px;
    padding:0 4px;
  }

  .fc-brand-image{
    max-height:48px;
  }
}