:root {
  --bg-body: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --bg-input: #0a0a0a;
  --bg-hover: #222;
  --border: #262626;
  --border-light: #333;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #888;
  --accent: #64b5f6;
  --accent-strong: #42a5f5;
  --accent-dark: #1565c0;
  --success: #4caf50;
  --error: #ef5350;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: 'Padauk', 'Noto Sans Myanmar', sans-serif;
  background: var(--bg-body);
  min-height: 100vh;
  color: var(--text-primary);
  padding: 16px;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
button,
[contenteditable="true"] {
  -webkit-user-select: none;
  user-select: none;
}

body.has-bottom-nav {
  padding-bottom: 88px;
}

body.has-app-layout {
  padding: 0;
  padding-bottom: 88px;
}

.app-toolbox {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding-top: env(safe-area-inset-top);
}

.app-toolbox-inner {
  max-width: 420px;
  margin: 0 auto;
  min-height: 56px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-toolbox-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.app-toolbox-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-toolbox-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.app-toolbox-brand {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-toolbox-balance-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 10px 6px 8px;
  flex-shrink: 0;
}

.app-toolbox-wallet-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-toolbox-wallet-icon svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.app-toolbox-balance-label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 1px;
  line-height: 1;
}

.app-toolbox-balance-amount {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
  line-height: 1.2;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 40px;
}

body.has-app-layout .container {
  padding-top: 12px;
  padding-left: 12px;
  padding-right: 12px;
}

body.has-app-layout .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.app-container {
  padding-top: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.logo {
  text-align: center;
  margin-bottom: 24px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.logo p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.15);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-body);
  margin-top: 8px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  margin-top: 12px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-error {
  background: #2a1515;
  color: var(--error);
  border: 1px solid #4a2020;
}

.alert-success {
  background: #152a18;
  color: var(--success);
  border: 1px solid #1e4620;
}

.link-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.link-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home-header {
  text-align: center;
  margin-bottom: 0;
}

.home-header h1 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.home-header p {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.875rem;
}

.home-header + .home-banner {
  margin-top: 20px;
}

.home-banner {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.home-banner-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.home-banner-text {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  background: var(--bg-body);
  border-top: 1px solid var(--border);
}

.home-banner + .home-topup-btn {
  margin-top: 16px;
}

.home-topup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--bg-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
}

.home-topup-btn svg {
  width: 20px;
  height: 20px;
}

.home-topup-btn:active {
  transform: scale(0.98);
}

.home-topup-btn + .home-games {
  margin-top: 20px;
}

.home-games-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.home-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.home-game-card:active {
  background: var(--bg-elevated);
  border-color: var(--accent-strong);
}

.home-game-logo-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.home-game-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-body);
  border: 1px solid var(--border);
}

.home-game-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.home-game-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.game-page-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-body);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.game-page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.game-page-subtitle {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.package-item-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.package-item-link:active {
  background: var(--bg-elevated);
  border-color: var(--accent-strong);
}

.package-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.package-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.game-order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.game-order-summary-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.game-order-summary-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.game-order-summary-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.game-order-summary-head p {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.game-order-summary-row span {
  color: var(--text-muted);
}

.game-order-summary-row strong {
  color: var(--accent);
}

.game-order-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.alert-detail {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.15);
}

.topup-form {
  margin-top: 8px;
}

.bank-pay-bottom {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.bank-pay-bottom > label {
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.bank-pay-select {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.bank-pay-select:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.bank-pay-select.open {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.bank-pay-select-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.bank-pay-select-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-pay-select-left svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.bank-pay-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.bank-pay-select.open .bank-pay-arrow {
  transform: rotate(180deg);
}

.bank-pay-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.bank-pay-select.open + .bank-pay-hint {
  display: none;
}

.bank-pay-details {
  display: none;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.bank-pay-details-static {
  display: block;
}

.bank-pay-details.open {
  display: block;
}

.bank-pay-qr {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  margin: 0 auto 4px;
  align-self: center;
}

.bank-pay-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.bank-pay-field {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.bank-pay-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bank-pay-field-label {
  flex-shrink: 0;
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.bank-pay-field-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.bank-pay-field-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
  text-align: right;
}

.bank-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.bank-copy-btn svg {
  width: 14px;
  height: 14px;
}

.bank-copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.bank-copy-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

.form-file {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.balance-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.balance-box .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.balance-box .amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--success);
}

.user-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.user-info p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.user-info p:last-child {
  margin-bottom: 0;
}

.user-info span {
  font-weight: 600;
  color: var(--text-primary);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  border-radius: 20px 20px 0 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-item.active {
  color: var(--accent);
  background: var(--bg-elevated);
}

.bottom-nav-item:active {
  transform: scale(0.96);
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.profile-top {
  text-align: center;
  margin-bottom: 24px;
}

.profile-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.profile-balance {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  display: inline-block;
  min-width: 160px;
}

.profile-balance-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-balance-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

.profile-menu {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.profile-menu-item:active {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.profile-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.profile-menu-title {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.profile-menu-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-menu-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-logout-wrap {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.profile-logout-link {
  display: inline-block;
  padding: 10px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #b8b8b8;
  border-radius: 10px;
  text-decoration: none;
  min-width: 180px;
}

.profile-logout-link:active {
  opacity: 0.85;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.page-back svg {
  width: 20px;
  height: 20px;
}

.device-card {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  margin-bottom: 20px;
}

.device-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.device-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.device-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.info-list {
  background: var(--bg-elevated);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.language-option input {
  display: none;
}

.language-option.active,
.language-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.language-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.language-name {
  flex: 1;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.language-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  position: relative;
}

.language-option.active .language-check,
.language-option:has(input:checked) .language-check {
  border-color: var(--accent);
  background: var(--accent);
}

.language-option.active .language-check::after,
.language-option:has(input:checked) .language-check::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--bg-body);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.history-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.history-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.history-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.history-status-pending {
  background: #3a2e10;
  color: #ffb74d;
}

.history-status-approved {
  background: #152a18;
  color: var(--success);
}

.history-status-rejected {
  background: #2a1515;
  color: var(--error);
}

.history-status-success {
  background: #152a18;
  color: var(--success);
}

.history-status-failed {
  background: #2a1515;
  color: var(--error);
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.history-row:last-of-type {
  border-bottom: none;
}

.history-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.history-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.history-receipt-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.contact-item:active {
  background: var(--bg-hover);
  border-color: var(--accent-strong);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item-icon-facebook {
  background: #1a2744;
  color: #5890ff;
}

.contact-item-icon-telegram {
  background: #152a35;
  color: #29b6f6;
}

.contact-item-icon-phone {
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--accent);
}

.contact-item-text {
  flex: 1;
  min-width: 0;
}

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.contact-item-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  body:not(.has-app-layout) {
    padding: 12px;
  }

  body.has-app-layout .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.has-app-layout .card {
    padding: 0;
  }

  .app-toolbox-inner {
    padding: 8px 12px;
    min-height: 52px;
  }

  .app-toolbox-brand {
    font-size: 0.88rem;
  }

  .app-toolbox-balance-amount {
    font-size: 0.78rem;
  }

  body:not(.has-app-layout) .container {
    padding-top: 24px;
  }

  .card {
    padding: 24px 20px;
  }
}
