* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f7f8fc;
    color: #1f2937;
    /* mobile app size */
    /* max-width: 480px; */
}

a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Header */
.top-bar {
    background: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-weight: 700;
    font-size: 18px;
}

.qfs {
    color: #111;
}

.assets {
    color: #4da3ff;
}

.login {
    font-size: 14px;
    color: #374151;
}

.back-btn svg {
    width: 22px;
    height: 22px;
    stroke: #111;
    fill: none;
    stroke-width: 2;
}

/* Hero */
.icon {
    width: 22px;
    height: 22px;
    stroke: #2563eb;
    fill: none;
    stroke-width: 1.8;
}

/* HERO SLIDER */
.hero-slider {
    margin: 14px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.slide {
    display: none;
    padding: 22px;
    min-height: 160px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
}

.slide p {
    font-size: 14px;
    line-height: 1.6;
}

.dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 18px;
    height: 3px;
    /* border-radius: 50%; */
    background: #aaa;
}

.dot.active {
    background: #facc15;
}

.balance-card {
    margin: 14px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a6fbf, #063b74);
    color: #fff;
}

/* Main balance */
.balance-main {
    margin-bottom: 16px;
}

.balance-main .label {
    font-size: 13px;
    opacity: 0.85;
}

.balance-main h2 {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 700;
}

/* Stats row */
.balance-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat span {
    font-size: 12px;
    opacity: 0.85;
}

.stat strong {
    display: block;
    font-size: 14px;
    margin-top: 2px;
}

/* Icons */
.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* Divider */
.divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
}


/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 20px;
    background: #fff;
}

.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
}

.action span {
    margin-top: 6px;
    font-size: 12px;
    color: #374151;
}

.wallet-connect {
    margin: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wallet-left {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wallet-icon {
    width: 34px;
    height: 34px;
    stroke: #2563eb;
    fill: none;
    stroke-width: 2;
}

.wallet-connect h4 {
    margin: 0;
    font-size: 15px;
    color: #1f2937;
}

.wallet-connect p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.4;
}

.connect-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #0a6fbf, #064a8f);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


/* Assets */
.assets-list {
    background: #fff;
    margin-top: 10px;
}

.assets-title {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.asset-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.asset-info strong {
    display: block;
    font-size: 15px;
}

.asset-info small {
    color: #6b7280;
    font-size: 12px;
}

.asset-price {
    text-align: right;
}

.asset-price strong {
    display: block;
}

.up {
    color: #16a34a;
    font-size: 12px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.nav-item {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item.active {
    color: #2563eb;
}

.nav-main {
    width: 52px;
    height: 52px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-top: -28px;
}

/* Grid */
.deposit-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Card */
.coin-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Icon */
.coin-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-icon img {
    max-width: 50px;
    max-height: 50px;
}

/* ✅ IMPROVED BUTTON */
.coin-card a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 44px;
    /* better tap size */
    padding: 10px 14px;

    border-radius: 999px;
    background: linear-gradient(180deg, #0a6fbf, #064a8f);
    color: #ffffff !important;

    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;

    box-shadow: 0 6px 12px rgba(10, 111, 191, 0.25);
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

/* Hover / tap feedback */
.coin-card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(10, 111, 191, 0.35);
}

.coin-card a:active {
    transform: scale(0.97);
    box-shadow: 0 4px 8px rgba(10, 111, 191, 0.25);
}

/* ===============================
   WITHDRAW PAGE
================================ */

.record-link {
    text-align: right;
    font-size: 14px;
    text-decoration: none;
    color: #1f2937;
}

/* Form */
.withdraw-section {
    padding: 18px;
}

.withdraw-form {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #f1f1f1;
    font-size: 14px;
}

.input-box {
    background: #ededed;
}

/* Amount */
.amount-group .amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-input {
    flex: 1;
    font-size: 24px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 0;
    outline: none;
}

.hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

/* Toggle switch */
.switch {
    position: relative;
    width: 42px;
    height: 22px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: #d1d5db;
    border-radius: 999px;
    inset: 0;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.switch input:checked+.slider {
    background: #0a6fbf;
}

.switch input:checked+.slider::before {
    transform: translateX(20px);
}

.send-from {
    font-size: 13px;
    color: #374151;
}

/* Underline input */
.underline {
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid #0a6fbf;
}

/* Button */
.primary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(180deg, #0a6fbf, #064a8f);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
}

/* Notes */
.withdraw-notes {
    padding: 18px;
    color: #6b7280;
}

.withdraw-notes h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.withdraw-notes ol {
    padding-left: 18px;
    font-size: 12.5px;
}

.withdraw-notes li {
    margin-bottom: 8px;
}

/* Hero */
.hero {
    background: #0a6fbf;
    color: #fff;
    padding: 22px 18px 80px;
}

.hero h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

/* Holding Section */
.holding-section {
    padding: 16px;
    margin-top: -60px;
}

/* Card */
.holding-card {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
}

.asset {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset img {
    width: 48px;
    height: 48px;
}

.asset span {
    font-weight: 700;
    font-size: 15px;
}

/* Hold button */
.hold-btn {
    padding: 8px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(180deg, #0a6fbf, #064a8f);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
}

/* Bottom info */
.card-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f3f5f9;
    padding: 14px 12px;
    text-align: center;
}

.card-bottom span {
    font-size: 12px;
    color: #6b7280;
}

.card-bottom strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
}

.cycle {
    color: #0a6fbf;
}

/* Chart */
.chart-section {
    background: #fff;
    padding: 16px;
}

.time-filters {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.time-filters button {
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    font-weight: 600;
    color: #374151;
}

.time-filters .active {
    background: #e5e7eb;
}

/* Asset summary */
.asset-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eaf0ff;
    padding: 12px;
    border-radius: 12px;
}

.asset-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.asset-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.asset-right {
    text-align: right;
}

.asset-right .up {
    color: #16a34a;
    font-size: 13px;
}

/* Stake */
.stake-section {
    padding: 16px;
}

.stake-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}

.stake-form {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
}

.stake-field {
    margin-bottom: 14px;
}

.stake-field.full {
    grid-column: span 2;
}

.stake-field label {
    font-size: 13px;
    font-weight: 600;
}

.stake-field input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 6px;
}

.stake-btn {
    margin-top: 12px;
    width: 140px;
    padding: 12px;
    background: linear-gradient(180deg, #0a6fbf, #064a8f);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
}

/* Description */
.description-section {
    padding: 16px;
    background: #f9fafb;
}

.description-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.description-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Hero */
.assets-hero {
    background: #0a6fbf;
    color: #fff;
    padding: 22px 18px 26px;
}

.assets-hero h2 {
    color: #facc15;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.assets-hero p {
    font-size: 14px;
    line-height: 1.5;
}

.learn-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: none;
}

/* Valuation */
.valuation-card {
    background: #e6f4ff;
    margin: 16px;
    border-radius: 18px;
    padding: 16px;
}

.valuation-top {
    display: flex;
    justify-content: space-between;
}

.valuation-top span {
    font-size: 13px;
    color: #64748b;
}

.valuation-top strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.not-verified {
    color: #dc2626;
    font-size: 14px;
}

/* Actions */
.valuation-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: #0a6fbf;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

/* Asset List */
.asset-list {
    background: #fff;
    margin-top: 10px;
}

.asset-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.asset-left strong {
    font-size: 15px;
}

.asset-left span {
    font-size: 13px;
}

.up {
    color: #16a34a;
}

.down {
    color: #dc2626;
}

.asset-right strong {
    display: block;
    font-size: 15px;
}

.asset-right small {
    color: #64748b;
    font-size: 13px;
}

/* Buy dropdown wrapper */
.buy-dropdown {
    position: relative;
    flex: 1;
}

/* Dropdown menu */
.buy-menu {
    position: absolute;
    top: 44px;
    left: 0;
    width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 6px 0;
    display: none;
    z-index: 20;
}

/* Show dropdown */
.buy-menu.show {
    display: block;
}

/* Items */
.buy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.buy-item:hover {
    background: #f3f4f6;
}

.moonpay {
    background: #7c3aed;
}

.transak {
    color: #2563eb;
    font-weight: 700;
}

.ramp {
    width: 12px;
    height: 12px;
    background: #22c55e;
    transform: rotate(45deg);
}

.simplex {
    font-weight: 700;
}

.buy-item small {
    margin-left: auto;
    font-size: 11px;
    color: #6b7280;
}

/* Guide List */
.guide-list {
    padding: 10px 16px;
}

.guide-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}

.guide-item:last-child {
    border-bottom: none;
}

/* Icon */
.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* Colors */
.blue { background: #3b82f6; }
.green { background: #22c55e; }
.yellow { background: #facc15; }
.teal { background: #14b8a6; }
.purple { background: #8b5cf6; }

/* Text */
.text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 4px;
}

.text p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Wrapper */
.support-wrapper {
    padding: 16px;
}

/* Greeting */
.greeting-card {
    background: #e6f2ff;
    border-radius: 14px 14px 0 0;
    padding: 14px 16px;
}

.greeting-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

/* Support card */
.support-card {
    background: #2b6cb0;
    border-radius: 0 0 14px 14px;
    padding: 18px 16px;
    color: #ffffff;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.support-header svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.highlight {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fde68a;
}

.subtext {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.95;
}

/* Profile */
.profile-section {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.camera-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #0a6fbf;
  color: #fff;
  padding: 6px;
  border-radius: 50%;
  font-size: 14px;
}

/* Groups */
.settings-group {
  padding: 10px 16px;
}

.settings-group h3 {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.settings-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

/* Rows */
.row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid #f1f1f1;
}

.row2:last-child { border-bottom: none; }

.row2 small {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.clickable { cursor: pointer; }

.link { color: #2563eb; }
.danger { color: #dc2626; }

/* Switch */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.switch input { display: none; }

.slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
}
.slider::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider {
  background: #0a6fbf;
}
.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
}

.modal-content h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Buttons */
.primary-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #0a6fbf, #064a8f);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

.text-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #6b7280;
  width: 100%;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

