/* ===================== FlayerCloud Cart + Checkout ===================== */

/* ---- navbar cart + floating button ---- */
.fc-cart-link { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.fc-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gray); color: #fff; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.fc-badge.has-items { background: var(--blue); }

.fc-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 1040;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(1, 149, 244, .45);
}
.fc-fab .fc-badge { position: absolute; top: -4px; right: -4px; background: var(--red); }
@media (max-width: 991.98px) { .fc-fab { display: flex; } }

@media (min-width: 992px) { .fc-cart-label { display: none; } }

/* ---- add to cart buttons ---- */
.fc-add { cursor: pointer; transition: transform .12s ease, background-color .2s ease; }
.fc-add:active { transform: scale(.97); }
.fc-add.added { background-color: var(--green) !important; border-color: var(--green) !important; }

/* ---- toast ---- */
.fc-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2000;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  background: var(--light-dark); color: var(--white); border: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100vw - 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: all .25s ease;
}
.fc-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fc-toast-btn {
  background: var(--blue); color: #fff; border: 0; border-radius: 6px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* ---- drawer ---- */
.fc-drawer { background: var(--dark); color: var(--light); width: 400px; max-width: 100vw; }
.fc-drawer .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.fc-drawer .offcanvas-title { color: var(--white); font-weight: 600; }
.fc-drawer .offcanvas-body { display: flex; flex-direction: column; padding: 0; }
.fc-drawer .fc-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.fc-drawer-foot { padding: 16px 20px 20px; border-top: 1px solid rgba(255, 255, 255, .07); background: var(--background); }

.fc-empty { text-align: center; padding: 60px 20px; color: var(--gray); }
.fc-empty svg { width: 44px; height: 44px; margin-bottom: 12px; }
.fc-empty h6 { color: var(--white); }

/* line items (drawer + checkout summary) */
.fc-line { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fc-line:last-child { border-bottom: 0; }
.fc-line-top { display: flex; justify-content: space-between; gap: 10px; }
.fc-line-game { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-weight: 600; }
.fc-line-name { color: var(--white); font-weight: 600; font-size: 15px; }
.fc-line-desc { color: var(--gray); font-size: 12.5px; }
.fc-x { background: none; border: 0; color: var(--gray); font-size: 22px; line-height: 1; padding: 0 4px; align-self: flex-start; }
.fc-x:hover { color: var(--red); }
.fc-line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.fc-qty { display: inline-flex; align-items: center; background: var(--background); border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); }
.fc-qty button { background: none; border: 0; color: var(--white); width: 30px; height: 30px; font-size: 16px; }
.fc-qty button:hover { color: var(--blue); }
.fc-qty span { min-width: 46px; text-align: center; font-size: 13px; color: var(--white); }
.fc-line-price { text-align: right; display: flex; flex-direction: column; }
.fc-line-price small { color: var(--gray); font-size: 11.5px; }
.fc-line-price strong { color: var(--white); }

.fc-total { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; color: var(--light); }
.fc-total strong { color: var(--white); font-size: 22px; }
.fc-pay-btn { display: block; width: 100%; font-weight: 600; padding: 11px; background: var(--blue); border-color: var(--blue); }
.fc-clear { background: none; border: 0; color: var(--gray); font-size: 13px; width: 100%; margin-top: 10px; }
.fc-clear:hover { color: var(--red); }
.fc-note { font-size: 12px; color: var(--gray); margin: 10px 0 0; text-align: center; }

/* ---- checkout page ---- */
.fc-page-head { padding: 130px 0 10px; }
.fc-page-head h1 { color: var(--white); font-weight: 700; font-size: 34px; margin: 0 0 4px; }
.fc-page-head p { color: var(--gray); margin: 0; }
.fc-checkout { padding: 20px 0 80px; }

.fc-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.fc-steps li { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; background: var(--dark); border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 14px; color: var(--gray); font-size: 14px; }
.fc-step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--light-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.fc-steps li.active { color: var(--white); border-color: var(--blue); }
.fc-steps li.active .fc-step-n { background: var(--blue); color: #fff; }
.fc-steps li.done { color: var(--light); }
.fc-steps li.done .fc-step-n { background: var(--green); color: #fff; }

.fc-panel { background: var(--dark); border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.fc-panel h3 { color: var(--white); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.fc-sub { color: var(--gray); font-size: 13.5px; margin-bottom: 18px; }
.fc-center { text-align: center; padding: 50px 24px; }
.fc-sticky { position: sticky; top: 90px; }
.fc-locked { opacity: .55; }

.fc-panel label { display: block; font-size: 13px; color: var(--light); margin-bottom: 6px; }
.fc-panel input, .fc-panel textarea {
  width: 100%; background: var(--background); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none;
}
.fc-panel input:focus, .fc-panel textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 149, 244, .2); }
.fc-panel input::placeholder, .fc-panel textarea::placeholder { color: #54577a; }
.fc-big { width: 100%; margin-top: 22px; padding: 13px; font-weight: 600; font-size: 16px; background: var(--blue); border-color: var(--blue); }
.fc-alert { background: rgba(253, 92, 101, .12); border: 1px solid rgba(253, 92, 101, .4); color: #ffb3b7; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.fc-banner { background: rgba(254, 210, 48, .1); border: 1px solid rgba(254, 210, 48, .35); color: var(--yellow); padding: 10px 14px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.fc-link { background: none; border: 0; color: var(--white); text-decoration: underline; padding: 0; font-size: inherit; }
.fc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fc-btn-ghost { background: transparent; color: var(--light); border: 1px solid rgba(255, 255, 255, .18); }
.fc-btn-ghost:hover { background: var(--light-dark); color: var(--white); }

.fc-side .btn-primary, .fc-claim .btn { font-weight: 600; }
.fc-claim { text-align: center; border-color: rgba(105, 142, 255, .45); }
.fc-claim-qr { width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 6px; margin: 4px auto 16px; display: block; }
.fc-discord-btn { background: var(--discord-color); color: #fff; width: 100%; margin-bottom: 18px; }
.fc-discord-btn:hover { color: #fff; filter: brightness(1.1); }
.fc-claim-steps { text-align: left; padding-left: 20px; font-size: 13.5px; color: var(--light); }
.fc-claim-steps li { margin-bottom: 6px; }

/* ---- invoice paper ---- */
.fc-invoice { background: #fff; color: #1e2032; border-radius: 14px; padding: 36px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); font-size: 14px; }
.fc-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 2px solid #eef0fa; }
.fc-inv-brand { display: flex; align-items: center; gap: 12px; }
.fc-inv-brand img { object-fit: contain; }
.fc-inv-brand strong { font-size: 22px; color: #141627; display: block; line-height: 1.1; }
.fc-inv-brand strong span { color: var(--blue); }
.fc-inv-brand small { color: #7b7f9e; }
.fc-inv-title { text-align: right; }
.fc-inv-title h2 { margin: 0; font-size: 28px; letter-spacing: .08em; color: #141627; font-weight: 700; }
.fc-inv-num { font-family: ui-monospace, Menlo, Consolas, monospace; color: #55597f; margin: 2px 0 8px; font-size: 15px; }
.fc-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.fc-pill-due { background: #ffe4e6; color: #c8283a; }
.fc-pill-wait { background: #fff4d6; color: #8f6200; }

.fc-inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 0; }
.fc-inv-meta h5, .fc-inv-notes h5 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8387a8; margin: 0 0 6px; font-weight: 700; }
.fc-inv-meta p, .fc-inv-notes p { margin: 0; line-height: 1.65; word-break: break-word; }

.fc-inv-tablewrap { overflow-x: auto; }
.fc-inv-table { width: 100%; border-collapse: collapse; }
.fc-inv-table th { background: #eef0fa; color: #46496e; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; text-align: left; }
.fc-inv-table td { padding: 12px; border-bottom: 1px solid #eceef8; vertical-align: top; }
.fc-inv-table .t-r { text-align: right; white-space: nowrap; }
.fc-inv-muted { color: #7b7f9e; font-size: 12.5px; margin-top: 2px; }

.fc-inv-totals { margin: 18px 0 0 auto; width: 320px; max-width: 100%; }
.fc-inv-totals > div { display: flex; justify-content: space-between; padding: 6px 12px; color: #55597f; }
.fc-inv-totals .grand { background: #141627; color: #fff; border-radius: 8px; font-weight: 700; font-size: 16px; padding: 12px; margin-top: 6px; }

.fc-inv-pay { display: flex; gap: 24px; align-items: center; background: #f8f9fe; border: 1px solid #e3e6f5; border-radius: 12px; padding: 20px; margin-top: 28px; flex-wrap: wrap; }
.fc-inv-qr { width: 176px; height: 176px; background: #fff; border-radius: 8px; flex: none; }
.fc-inv-paytext { flex: 1; min-width: 220px; }
.fc-inv-paytext h4 { font-size: 17px; margin: 0 0 12px; color: #141627; font-weight: 700; }
.fc-inv-paytext dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0 0 14px; }
.fc-inv-paytext dt { color: #7b7f9e; font-weight: 400; }
.fc-inv-paytext dd { margin: 0; word-break: break-all; }
.fc-copy { background: #eef0fa; border: 0; color: #3b3fa0; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 5px; margin-left: 6px; }
.fc-copy:hover { background: #dfe3fb; }
.fc-upi-open { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.fc-inv-notes { margin-top: 20px; }
.fc-inv-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid #eceef8; color: #8387a8; font-size: 12px; }

/* ---- responsive ---- */
@media (max-width: 767.98px) {
  .fc-page-head { padding-top: 110px; }
  .fc-invoice { padding: 20px 16px; }
  .fc-inv-meta { grid-template-columns: 1fr; gap: 16px; }
  .fc-inv-title { text-align: left; }
  .fc-inv-qr { margin: 0 auto; }
  .fc-inv-paytext dl { grid-template-columns: 90px 1fr; }
  .fc-inv-totals { width: 100%; }
}

/* ---- coming soon ---- */
.fc-soon-btn, .fc-soon-btn:hover { background: var(--light-dark) !important; border-color: rgba(255,255,255,.12) !important; color: var(--gray) !important; cursor: not-allowed; }
.fc-soon-banner { background: rgba(254,210,48,.1); border-top: 1px solid rgba(254,210,48,.3); border-bottom: 1px solid rgba(254,210,48,.3); color: var(--yellow); padding: 14px 0; text-align: center; font-size: 15px; }
.fc-soon-banner a { color: var(--white); text-decoration: underline; }
