﻿:root {
  --bg: #f3f5fb;
  --card: #ffffff;
  --line: #dbe1ef;
  --text: #16203d;
  --muted: #66708a;
  --brand: #2f66f0;
  --brand-dark: #2453cb;
  --success: #2e9e4d;
  --danger: #e54848;
  --warning: #f3ca1a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--brand);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.msg {
  min-height: 24px;
  margin: 8px 0;
  font-size: 14px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* Auth */
.auth-screen {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.auth-left-panel,
.auth-right-panel {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.auth-left-panel {
  padding: 32px;
  background: linear-gradient(145deg, #2f86ef, #3578da);
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.world-shape {
  margin: 0 auto 30px;
  width: min(620px, 90%);
  height: 360px;
  border: 0;
  border-radius: 0;
  background: transparent url('/assets/coolshark-logo.png') center/contain no-repeat;
}

.auth-left-panel .slogan {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
}

.auth-left-panel h2 {
  margin: 36px 0 10px;
  text-align: center;
  font-size: 22px;
}

.slogan-en {
  margin: 0;
  text-align: center;
  opacity: 0.92;
  font-size: 22px;
  line-height: 1.4;
}

.auth-right-panel {
  padding: 34px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right-panel > h1,
.auth-right-panel > .auth-line,
.auth-right-panel > .auth-form,
.auth-right-panel > .msg,
.auth-right-panel > small {
  width: min(680px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.auth-right-panel h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.auth-line {
  margin: 12px 0 24px;
  border-top: 1px solid #d9deea;
  text-align: center;
  position: relative;
}

.auth-line span {
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  padding: 0 10px;
  position: relative;
  top: -10px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  font-size: 15px;
  color: #1e2745;
  display: grid;
  gap: 8px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid #cfd6e6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #7f9fff;
  box-shadow: 0 0 0 3px rgba(47, 102, 240, 0.14);
}

.auth-form input:disabled,
.auth-form input.is-locked {
  background: #f3f6fc;
  color: #7d86a3;
  cursor: not-allowed;
}

.auth-form button[type='submit'] {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2f66f0, #3477f1);
  color: #fff;
  padding: 11px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-form button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 102, 240, 0.25);
}

.auth-form button[type='submit']:active {
  transform: translateY(0);
}

.row-two {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
}

.row-code {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}

.btn-code {
  border: 0;
  border-radius: 8px;
  background: #2f66f0;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-code:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(47, 102, 240, 0.2);
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch .sep {
  margin: 0 8px;
  color: #adb5ca;
}

.auth-right-panel small {
  display: block;
  color: #6f7893;
  margin-top: 6px;
}

.agree-wrap {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  line-height: 1.4;
  color: #55607f;
}

.agree-wrap input[type='checkbox'] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid #bfc9e2;
  border-radius: 4px;
  appearance: auto;
  cursor: pointer;
}

.agree-wrap a {
  margin-left: 4px;
}

/* User layout */
.layout-airport {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
}

.airport-sidebar {
  background: #eef1f9;
  border-right: 1px solid var(--line);
  padding: 8px 10px;
}

.airport-brand {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #c9d2e8;
  border-radius: 14px;
  background: #f7f9ff;
}

.brand-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667ef7, #4f67f0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.airport-brand strong {
  font-size: 18px;
}

.airport-menu {
  margin-top: 10px;
}

.menu-group {
  margin: 16px 12px 6px;
  color: #58627f;
  font-size: 13px;
  font-weight: 700;
}

.menu-item {
  width: 100%;
  border: 1px solid #cfd7ea;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #172445;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.menu-item .menu-icon {
  width: 18px;
  color: #5f6b88;
}

.menu-item.active {
  background: linear-gradient(90deg, #2f66f0, #2f66f0 64%, #3574f0);
  color: #fff;
  border-color: transparent;
}

.menu-item.active .menu-icon {
  color: #fff;
}

.airport-main {
  padding: 12px 14px;
}

.airport-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.airport-topbar h2 {
  margin: 0;
  font-size: 32px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.ghost {
  border: 1px solid #c6d0e7;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.airport-card {
  background: var(--card);
  border: 1px solid #d7dff0;
  border-radius: 14px;
}

.content-card {
  padding: 14px;
}

.content-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.airport-invite {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 14px 18px;
  min-height: 74px;
  background: linear-gradient(90deg, #ee8a28, #d52c47);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.airport-invite::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 212, 132, 0.5) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.65;
}

.invite-left-glow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: radial-gradient(circle at left center, rgba(255, 196, 120, 0.6), rgba(255, 196, 120, 0));
}

.invite-envelope {
  position: absolute;
  top: 4px;
  left: 53%;
  transform: translateX(-50%);
  font-size: 22px;
  animation: swing 2.2s ease-in-out infinite;
}

@keyframes swing {
  0%,
  100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-8deg); }
  75% { transform: translateX(-50%) rotate(8deg); }
}

.invite-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.invite-content h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
}

.invite-now {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff3f9c, #ff2468);
  z-index: 2;
}

.airport-top-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr 0.9fr;
  gap: 10px;
}

.user-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f66f0, #2f8af2);
  color: #fff;
  padding: 14px 16px 12px;
  min-height: 264px;
}

.user-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.user-card p {
  margin: 5px 0;
  font-size: 20px;
}

.user-card strong {
  font-weight: 800;
}

.value-yellow {
  color: #ffe88c;
}

.value-cyan {
  color: #b8ffef;
}

.lightning-mark {
  position: absolute;
  right: 14px;
  top: 6px;
  font-size: 148px;
  opacity: 0.24;
}

.user-card-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.user-card-actions button {
  border: 0;
  border-radius: 12px;
  background: #e8edf8;
  color: #2f66f0;
  font-size: 18px;
  padding: 12px 8px;
  cursor: pointer;
  font-weight: 700;
}

.quick-import-card {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.quick-import-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.quick-import {
  width: 100%;
  border: 0;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 11px 10px;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.quick-item-icon,
.quick-left-icon,
.quick-right-icon {
  font-size: 18px;
  opacity: 0.95;
}

.quick-right-icon {
  margin-left: auto;
}

.quick-copy-animated {
  background: linear-gradient(90deg, #20b4ef, #4e72f5, #95ccf4, #8f8cf6);
  background-size: 220% 220%;
  animation: hueMove 4s ease infinite;
}

@keyframes hueMove {
  0% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.quick-blue { background: linear-gradient(90deg, #214aa5, #2c63c8); }
.quick-sky { background: linear-gradient(90deg, #4e97e9, #3d73c2); }
.quick-black { background: #02050e; }
.quick-gray { background: linear-gradient(90deg, #8696aa, #56677f); }

.quick-import:last-child {
  margin-bottom: 0;
}

.quick-import.is-disabled,
.user-card-actions button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.55);
}

.sub-action-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 18, 33, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sub-action-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d6deef;
  box-shadow: 0 18px 40px rgba(20, 30, 55, 0.25);
  padding: 16px;
  position: relative;
}

.sub-action-dialog h4 {
  margin: 0;
  font-size: 22px;
}

.sub-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #edf2ff;
  color: #495b8a;
  cursor: pointer;
}

.sub-modal-qr {
  margin-top: 10px;
  border: 1px dashed #cfd8eb;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  background: #f8faff;
}

.sub-modal-qr img {
  width: min(240px, 100%);
  border-radius: 8px;
  background: #fff;
}

.sub-modal-qr small {
  display: block;
  margin-top: 8px;
  color: #5e6a87;
}

.sub-modal-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-modal-actions .ghost,
.sub-modal-actions .btn-yellow {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.usage-card {
  padding: 10px;
  text-align: center;
}

.usage-card h4 {
  margin: 2px 0 2px;
  text-align: left;
  font-size: 22px;
}

.usage-text {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: left;
}

.donut {
  width: 220px;
  height: 220px;
  margin: 4px auto;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#5b75d8 0deg 0deg, #8ecb72 0deg 360deg);
  cursor: crosshair;
}

.donut::after {
  content: '';
  position: absolute;
  inset: 44px;
  background: #fff;
  border-radius: 50%;
}

.donut-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #7cb269;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.16s;
}

.donut-hint.show {
  opacity: 1;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: #5b637e;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 5px;
}

.dot.used { background: #5b75d8; }
.dot.remain { background: #8ecb72; }

/* Tutorial page */
.tutorial-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tutorial-platform-btn {
  border: 1px solid #ccd5eb;
  border-radius: 12px;
  background: #fff;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.tutorial-platform-btn.active {
  background: linear-gradient(90deg, #5f8ef0, #6d85e7);
  color: #fff;
  border-color: transparent;
}

.tutorial-list-wrap {
  border-top: 2px dashed #d5deed;
  padding-top: 10px;
}

.tutorial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f2;
}

.tutorial-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutorial-item-left i {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #5067b7;
  font-size: 18px;
}

.tutorial-item h4 {
  margin: 0 0 2px;
  font-size: 20px;
}

.tutorial-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tutorial-item-actions {
  display: flex;
  gap: 8px;
}


.tutorial-admin-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.tutorial-admin-form {
  display: grid;
  gap: 10px;
}

.tutorial-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tutorial-admin-form input,
.tutorial-admin-form select,
.tutorial-admin-form textarea {
  width: 100%;
  border: 1px solid #ccd4e8;
  border-radius: 8px;
  padding: 8px;
}

.tutorial-admin-form textarea {
  resize: vertical;
  min-height: 170px;
}

.tutorial-block {
  border: 1px dashed #ccd6ea;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px;
}

.tutorial-content-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.tutorial-account-editor {
  margin-top: 8px;
  border: 1px dashed #d2daec;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.tutorial-account-rows {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.tutorial-account-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr 0.8fr auto;
  gap: 8px;
  align-items: center;
}

.tutorial-preview-account-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.tutorial-preview-account-card {
  border: 1px solid #d9e3f2;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
}

.tutorial-preview-account-card h6 {
  margin: 0 0 6px;
  font-size: 15px;
}

.tutorial-preview-account-card p {
  margin: 4px 0;
  font-size: 13px;
}

.tutorial-form-actions {
  display: flex;
  gap: 8px;
}

.tutorial-form-actions button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #2f66f0;
  color: #fff;
  cursor: pointer;
}

.tutorial-form-actions .ghost {
  background: #fff;
  border: 1px solid #ccd5ea;
  color: #2b426f;
}

.tutorial-preview-wrap {
  border: 1px solid #d8dff0;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px;
}

.tutorial-preview-wrap h4 {
  margin: 0 0 8px;
}

.tutorial-live-preview {
  min-height: 240px;
  max-height: 740px;
  overflow: auto;
  border: 1px solid #d9e1f2;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.tutorial-live-preview img {
  max-width: 100%;
  border-radius: 8px;
}

.tutorial-admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}

.tutorial-admin-card {
  border: 1px solid #d8e0ef;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.tutorial-admin-card h5 {
  margin: 0;
  font-size: 20px;
}

.tutorial-admin-card p {
  margin: 4px 0;
  color: #4f5e84;
}

.tutorial-admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tutorial-admin-actions button {
  border-radius: 8px;
  border: 1px solid #ccd5ea;
  background: #fff;
  color: #2b426f;
  padding: 6px 10px;
  cursor: pointer;
}

.tutorial-admin-actions .danger {
  border-color: #efc6c6;
  color: #b33939;
}

.tutorial-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 18, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tutorial-guide-dialog {
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d7deee;
  box-shadow: 0 18px 36px rgba(16, 25, 44, 0.25);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.tutorial-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e1e8f3;
}

.tutorial-guide-head h4 {
  margin: 0;
  font-size: 24px;
}

.tutorial-guide-close {
  border: 0;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  background: #edf2ff;
  cursor: pointer;
  color: #4b5f93;
}

.tutorial-guide-content {
  overflow: auto;
  padding: 14px;
}

.tutorial-guide-content h1,
.tutorial-guide-content h2,
.tutorial-guide-content h3,
.tutorial-guide-content h4 {
  margin: 12px 0 8px;
  color: #14203e;
}

.tutorial-guide-content p,
.tutorial-guide-content li {
  line-height: 1.75;
  color: #263354;
  margin: 8px 0;
}

.tutorial-guide-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}

.ios-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.ios-account-card {
  border: 1px solid #2f8cff;
  border-radius: 12px;
  background: #f6fbff;
  padding: 12px;
}

.ios-account-card h5 {
  margin: 0 0 10px;
  font-size: 30px;
  color: #1b2e54;
}

.ios-account-card p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e1ebf8;
  padding-top: 8px;
}

.ios-account-card p span {
  color: #6c7896;
  font-weight: 600;
}

.ios-account-card p b {
  color: #1b2e54;
  font-weight: 600;
  word-break: break-all;
}

.ios-account-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.tutorial-guide-foot {
  border-top: 1px solid #e1e8f3;
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tutorial-guide-foot .btn-yellow,
.tutorial-guide-foot .ghost {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.tutorial-article-page {
  background: #f5f7fd;
  padding: 14px;
}

.tutorial-article {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d8e0ef;
  border-radius: 12px;
  padding: 16px;
}
/* Subscription */
.subscription-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
}

.subscription-overview h3,
.subscription-settings-panel h3 {
  margin: 0 0 8px;
}

.subscription-overview p {
  margin: 8px 0;
  font-size: 18px;
}

.sub-desc {
  margin: 0 0 12px;
  color: var(--muted);
}

.subscription-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sub-link-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.sub-link-pill.clash { background: #1f4588; }
.sub-link-pill.shadowrocket { background: #56a5f1; }
.sub-link-pill.v2ray { background: #d02d9f; }

.sub-warning {
  background: #ffbb1f;
  color: #5a4102;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-yellow,
.btn-danger {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.btn-yellow {
  background: #f4d10e;
  color: #1b1b1b;
}

.btn-danger {
  background: #ff5968;
  color: #fff;
}

/* Store */
.store-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.store-tags {
  display: flex;
  gap: 8px;
}

.store-tags span {
  padding: 6px 10px;
  border-radius: 10px;
  background: #5777e6;
  color: #fff;
  font-size: 13px;
}

.store-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.store-filter {
  border: 1px solid #ccd4e8;
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}

.store-filter.active {
  background: #2f66f0;
  color: #fff;
  border-color: transparent;
}

.store-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.store-card {
  border: 1px solid #d9dfef;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.store-card-head {
  color: #fff;
  padding: 10px 12px;
  min-height: 82px;
}

.store-card-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.store-head-image {
  width: 100%;
  max-height: 86px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.store-card-head p {
  margin: 4px 0 0;
  font-size: 16px;
  opacity: 0.95;
}

.cover-cyan { background: linear-gradient(90deg, #5f6fe8, #2f9ace); }
.cover-blue { background: linear-gradient(90deg, #5f6fe8, #308bd9); }
.cover-indigo { background: linear-gradient(90deg, #6371ef, #3566dd); }
.cover-teal { background: linear-gradient(90deg, #5e77ed, #33a6de); }

.store-card-body {
  padding: 12px;
}

.cycle-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cycle-chip {
  border: 1px solid #ccd4e7;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

.cycle-chip.active {
  background: #6488f0;
  color: #fff;
  border-color: transparent;
}

.store-price {
  margin: 10px 0 4px;
  font-size: 28px;
  color: #5f7fea;
  font-weight: 800;
}

.store-price small {
  font-size: 18px;
  color: #5f6787;
}

.store-valid {
  margin: 0 0 10px;
  color: var(--muted);
}

.store-feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: #2c3557;
}

.store-badges {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.store-badges span {
  border-radius: 6px;
  background: #eff3fd;
  color: #5e6fa3;
  font-size: 12px;
  padding: 4px 8px;
}

.store-buy-btn {
  margin-top: 12px;
  width: 100%;
}

/* Tables and detail */
.table-wrap {
  overflow: auto;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.simple-table th,
.simple-table td {
  border-bottom: 1px solid #e1e7f2;
  padding: 9px 8px;
  text-align: left;
  font-size: 14px;
}

.simple-table thead th {
  background: #f8faff;
  color: #445071;
  font-weight: 700;
}

.order-no {
  background: #ecf4e5;
  color: #4f8731;
  border-left: 4px solid #4cc11a;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid #d2d7e8;
  font-size: 12px;
}

.status-pill.paid {
  color: #3f9e33;
  border-color: #95d288;
  background: #f0fbe9;
}

.status-pill.pending {
  color: #b87900;
  border-color: #f2d483;
  background: #fff7df;
}

.status-pill.cancelled,
.status-pill.refunded,
.status-pill.expired {
  color: #7b8199;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #2f66f0;
  cursor: pointer;
}

.detail-block {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f3;
}

.detail-block h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-block p {
  margin: 4px 0;
}

.detail-block .total {
  font-size: 18px;
  font-weight: 800;
}

/* Referrals */
.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.stat-box {
  padding: 12px;
}

.stat-box small {
  display: block;
  color: var(--muted);
}

.stat-box b {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.split-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.referral-grid-two {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Profile */
.profile-banner {
  height: 180px;
  background: radial-gradient(circle at 20% 30%, #7f8be6, #212c7c 44%, #040836 74%);
  margin-bottom: 10px;
}

.profile-wallet {
  margin: -52px auto 12px;
  padding: 14px 20px;
  width: calc(100% - 80px);
  box-shadow: 0 14px 26px rgba(43, 54, 96, 0.12);
}

.profile-wallet h3 {
  margin: 0;
  font-size: 24px;
}

.profile-wallet p {
  margin: 6px 0;
  font-size: 22px;
  font-weight: 700;
}

.profile-grid-two {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.stack-form {
  display: grid;
  gap: 10px;
}

.stack-form input {
  width: 100%;
  border: 1px solid #ccd4e8;
  border-radius: 8px;
  padding: 10px;
}

.stack-form button {
  border: 0;
  border-radius: 10px;
  background: #2f66f0;
  color: #fff;
  padding: 11px;
  cursor: pointer;
}

.profile-right-col {
  display: grid;
  gap: 10px;
}

.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 18px;
}

.switch {
  position: relative;
  width: 50px;
  height: 28px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd2e7;
  transition: 0.2s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #2f66f0;
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.page-msg {
  margin: 8px 4px;
  font-size: 14px;
}

.contact-float {
  position: fixed;
  right: 16px;
  bottom: 12px;
  border: 0;
  border-radius: 999px;
  background: #2f7bf0;
  color: #fff;
  font-size: 15px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(36, 75, 150, 0.3);
}

/* Admin layout */
.theme-admin {
  background: #f2f4fa;
}

.admin-v2-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.admin-v2-sidebar {
  background: #20324d;
  color: #dfe8f8;
  padding: 12px;
}

.admin-v2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-v2-brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #40be84;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.admin-v2-brand strong {
  display: block;
  font-size: 20px;
  color: #fff;
}

.admin-v2-brand small {
  color: #a8b6ce;
}

.admin-v2-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-item {
  border: 0;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  color: #d8e4fa;
}

.admin-nav-item.active,
.admin-nav-item:hover {
  background: #2b466b;
}

.admin-v2-main {
  padding: 14px;
}

.admin-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-v2-header h1 {
  margin: 0;
  font-size: 28px;
}

.admin-v2-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-v2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-v2-panel {
  display: none;
}

.admin-v2-panel.active {
  display: block;
}

.admin-v2-card {
  background: #fff;
  border: 1px solid #d7deec;
  border-radius: 10px;
  padding: 12px;
}

.admin-v2-toolbar {
  margin-bottom: 10px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.overview-stat {
  border: 1px solid #dbe1ef;
  border-radius: 10px;
  padding: 10px;
}

.overview-stat small {
  color: #596482;
  display: block;
}

.overview-stat b {
  font-size: 32px;
  display: block;
  margin-top: 5px;
}

.admin-v2-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inline-form,
.stack-form,
.smtp-grid {
  display: grid;
  gap: 8px;
}

.inline-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inline-form.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smtp-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-form input,
.inline-form input,
.inline-form select,
.smtp-grid input,
.smtp-grid select,
.stack-form select {
  width: 100%;
  border: 1px solid #ccd4e8;
  border-radius: 8px;
  padding: 8px;
}

.stack-form button,
.inline-form button,
.smtp-grid button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #2f66f0;
  color: #fff;
  cursor: pointer;
}

.package-admin-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
}

.package-admin-form {
  display: grid;
  gap: 10px;
}

.package-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.package-admin-form input,
.package-admin-form select,
.package-admin-form textarea {
  width: 100%;
  border: 1px solid #ccd4e8;
  border-radius: 8px;
  padding: 8px;
}

.package-admin-form textarea {
  resize: vertical;
  min-height: 92px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ccd4e8;
  border-radius: 8px;
  padding: 8px;
  color: #334068;
}

.check-inline input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.package-price-group {
  border: 1px dashed #c7d2ea;
  border-radius: 10px;
  padding: 10px;
  background: #f9fbff;
}

.package-group-title {
  margin: 0 0 8px;
  color: #4f5d82;
  font-weight: 700;
}

.package-price-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.package-price-grid.single {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.package-form-actions {
  display: flex;
  gap: 8px;
}

.package-form-actions button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #2f66f0;
  color: #fff;
  cursor: pointer;
}

.package-form-actions .ghost {
  background: #fff;
  border: 1px solid #ccd5ea;
  color: #2b426f;
}

.quick-subscribe-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-subscribe-form input {
  width: 100%;
  border: 1px solid #ccd4e8;
  border-radius: 8px;
  padding: 8px;
}

.quick-subscribe-form button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #2f66f0;
  color: #fff;
  cursor: pointer;
}

.package-preview-wrap {
  border: 1px solid #d8dff0;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px;
}

.package-preview-wrap h4 {
  margin: 0 0 8px;
}

.package-live-preview {
  min-height: 220px;
}

.package-preview-card {
  border: 1px solid #d4ddee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.package-preview-head {
  color: #fff;
  padding: 10px;
}

.package-preview-head h5 {
  margin: 0;
  font-size: 18px;
}

.package-preview-head p {
  margin: 4px 0 0;
  opacity: 0.95;
}

.package-preview-image {
  display: block;
  width: 100%;
  max-height: 92px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.package-preview-body {
  padding: 10px;
}

.package-preview-prices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.package-preview-prices span {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: #edf2fe;
  color: #4e5f90;
}

.package-preview-features {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: #2d3757;
}

.package-admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.package-admin-card {
  border: 1px solid #d6dff2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.package-admin-card .head {
  color: #fff;
  padding: 10px;
}

.package-admin-card .head p {
  margin: 4px 0 0;
  opacity: 0.95;
}

.package-admin-card .body {
  padding: 10px;
}

.package-admin-meta {
  color: #5d6786;
  font-size: 13px;
}

.package-price-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.package-price-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eff4ff;
  color: #50618f;
  font-size: 12px;
}

.package-admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.package-admin-actions button {
  border-radius: 8px;
  border: 1px solid #ccd5ea;
  background: #fff;
  color: #2b426f;
  padding: 6px 10px;
  cursor: pointer;
}

.package-admin-actions .danger {
  border-color: #efc6c6;
  color: #b33939;
}

.mt-12 {
  margin-top: 12px;
}

@media (max-width: 1400px) {
  .auth-left-panel .slogan { font-size: 20px; }
  .auth-left-panel h2 { font-size: 24px; }
  .slogan-en { font-size: 18px; }

  .airport-topbar h2 { font-size: 28px; }
  .invite-content h3 { font-size: 30px; }
  .user-card h3 { font-size: 30px; }
  .user-card p { font-size: 16px; }
  .user-card-actions button { font-size: 16px; }
  .quick-import-card h4 { font-size: 18px; }
  .quick-import { font-size: 15px; }
  .usage-card h4 { font-size: 20px; }
  .usage-text { font-size: 24px; }
}

@media (max-width: 1100px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-right-panel {
    justify-content: flex-start;
  }

  .auth-right-panel > h1,
  .auth-right-panel > .auth-line,
  .auth-right-panel > .auth-form,
  .auth-right-panel > .msg,
  .auth-right-panel > small {
    width: 100%;
  }

  .layout-airport {
    grid-template-columns: 1fr;
  }

  .airport-sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .airport-top-grid,
  .subscription-layout,
  .profile-grid-two,
  .referral-grid-two,
  .admin-v2-grid-2,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-cards {
    grid-template-columns: 1fr;
  }

  .admin-v2-shell {
    grid-template-columns: 1fr;
  }

  .package-admin-layout,
  .package-field-grid,
  .package-price-grid,
  .quick-subscribe-form,
  .tutorial-admin-layout,
  .tutorial-field-grid,
  .tutorial-account-row,
  .ios-account-grid {
    grid-template-columns: 1fr;
  }
}




















