:root {
  --gold: #e7b94f;
  --gold-light: #ffe59a;
  --gold-dark: #bc8b32;
  --panel: #242424;
  --header: #303030;
  --field: #353535;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #9699a5;
  color: #fff;
}

/* Main layout */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

.login-panel {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

/* Header */
.login-header {
  background: var(--header);
  padding: 12px 21px 35px;
  min-height: 156px;
}

.header-top {
  display: grid;
  grid-template-columns: 35px 1fr 65px;
  align-items: center;
  gap: 5px;
}

.back-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  text-align: left;
  padding: 0;
}

.brand {
  text-align: center;
  color: #f5c900;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.language-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 0;
  white-space: nowrap;
}

.language-btn .flag {
  font-size: 20px;
  margin-right: 3px;
}

.login-heading {
  font-size: 17px;
  font-weight: 700;
  margin-top: 17px;
  margin-bottom: 10px;
}

.login-subtitle {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}

/* Form area */
.login-content {
  padding: 0 21px 25px;
  flex: 1;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid #575757;
  margin-bottom: 29px;
}

.login-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 4px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #c4c4c4;
  font-size: 15px;
  font-weight: 600;
}

.login-tab i {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}

.login-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 12px;
}

.field-label i {
  color: var(--gold);
  font-size: 21px;
}

.form-control,
.form-select {
  min-height: 47px;
  background: var(--field);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
}

.form-control::placeholder {
  color: #8e8e8e;
}

.form-control:focus,
.form-select:focus {
  background: var(--field);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 0.15rem rgba(231, 185, 79, 0.12);
}

.form-select option {
  background: #303030;
  color: #fff;
}

.phone-code {
  flex: 0 0 99px;
  width: 99px;
}

.phone-input {
  min-width: 0;
  flex: 1;
}

.form-group {
  margin-bottom: 32px;
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  top: 0;
  right: 0;
  height: 47px;
  width: 44px;
  border: 0;
  background: transparent;
  color: #c8c8c8;
  font-size: 17px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -10px;
  margin-bottom: 29px;
  font-size: 12px;
  color: #ddd;
}

.remember-row .form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  background-color: transparent;
  border: 1px solid #ccc;
  cursor: pointer;
}

.remember-row .form-check-input:checked {
  background-color: var(--gold-dark);
  border-color: var(--gold);
}

.btn-login,
.btn-register {
  width: calc(100% - 24px);
  margin-left: 12px;
  min-height: 44px;
  border-radius: 30px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  transition: 0.2s ease;
}

.btn-login {
  border: 0;
  color: #7d5014;
  background: linear-gradient(110deg, #ffe69a, #c6953b);
  margin-bottom: 20px;
}

.btn-login:hover {
  background: linear-gradient(110deg, #fff0bd, #e0b354);
  transform: translateY(-1px);
}

.btn-register {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.btn-register:hover {
  color: #252525;
  background: var(--gold);
}

.form-message {
  display: none;
  font-size: 13px;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}

/* Floating customer service icon */
.support-button {
  position: fixed;
  right: 25px;
  bottom: 95px;
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid #e5bc61;
  background: linear-gradient(145deg, #ffe49a, #bb8429);
  color: #835518;
  font-size: 26px;
  box-shadow: 0 3px 10px #0002;
  z-index: 10;
}

/* Mobile responsive */
@media (max-width: 575.98px) {
  body {
    background: var(--panel);
  }

  .login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .login-panel {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .login-header {
    padding: 12px 20px 28px;
    min-height: 150px;
  }

  .login-content {
    padding: 0 20px 30px;
  }

  .support-button {
    right: 15px;
    bottom: 18px;
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .login-header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .login-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .brand {
    font-size: 23px;
  }

  .header-top {
    grid-template-columns: 27px 1fr 62px;
  }

  .phone-code {
    flex-basis: 85px;
    width: 85px;
  }

  .btn-login,
  .btn-register {
    width: 100%;
    margin-left: 0;
  }
}
.login-extra-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
  padding: 0 10px;
}

.extra-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  text-align: center;
}

.extra-option i {
  color: #e7b94f;
  font-size: 31px;
}

.extra-option:hover {
  color: #e7b94f;
}

.extra-option:hover i {
  transform: translateY(-2px);
}

.extra-option i {
  transition: transform 0.2s ease;
}

@media (max-width: 360px) {
  .login-extra-options {
    gap: 8px;
    padding: 0;
  }
}

.reset-panel {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  background: var(--panel);
}

.top-header {
  height: 49px;
  background: var(--header);
  display: grid;
  grid-template-columns: 35px 1fr 65px;
  align-items: center;
  padding: 0 16px;
}

.back-btn {
  color: white;
  font-size: 25px;
  text-decoration: none;
}

.logo {
  text-align: center;
  color: #f5c900;
  font-size: 27px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.language {
  color: #e7b94f;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.language span {
  font-size: 19px;
}

.intro {
  padding: 12px 21px 17px;
  background: linear-gradient(110deg, #f0d68b, #c6953b);
}

.intro h1 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 11px;
}

.intro p {
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.reset-content {
  padding: 18px 21px 30px;
}

.reset-tabs {
  display: flex;
  border-bottom: 1px solid #575757;
  margin-bottom: 28px;
}

.reset-tab {
  flex: 1;
  padding: 7px 3px 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #bdbdbd;
  font-weight: 600;
  font-size: 15px;
}

.reset-tab i {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}

.reset-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.field-group {
  margin-bottom: 31px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  margin-bottom: 12px;
}

.field-label i {
  color: var(--gold);
  font-size: 21px;
}

.form-control,
.form-select {
  min-height: 47px;
  background: var(--field);
  color: white;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
}

.form-control::placeholder {
  color: #828282;
}

.form-control:focus,
.form-select:focus {
  background: var(--field);
  color: white;
  border-color: var(--gold);
  box-shadow: 0 0 0 0.15rem #e7b94f22;
}

.form-select option {
  background: #303030;
  color: white;
}

.country-code {
  width: 99px;
  flex: 0 0 99px;
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 47px;
  border: 0;
  background: transparent;
  color: #ccc;
  font-size: 17px;
}

.code-wrap {
  position: relative;
}

.code-wrap .form-control {
  padding-right: 110px;
}

.send-btn {
  position: absolute;
  right: 7px;
  top: 5px;
  height: 37px;
  min-width: 101px;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(110deg, #ffe59a, #c6953b);
  color: #80521a;
  font-size: 13px;
}

.agreement {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 2px 0 32px;
}

.agreement input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--gold);
}

.agreement a {
  color: #ff4545;
  text-decoration: none;
}

.reset-btn {
  width: calc(100% - 24px);
  margin-left: 12px;
  min-height: 44px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(110deg, #ffe59a, #c6953b);
  color: #80521a;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
}

.message {
  display: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  body {
    background: var(--panel);
  }

  .page-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .reset-panel {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

@media (max-width: 360px) {
  .reset-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .intro {
    padding-left: 15px;
    padding-right: 15px;
  }
  .country-code {
    flex-basis: 82px;
    width: 82px;
  }
  .reset-btn {
    width: 100%;
    margin-left: 0;
  }
  .reset-tab {
    font-size: 13px;
  }
}
.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.reset-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #575757;
}

.reset-tab {
  flex: 1;
  padding: 8px 4px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #bdbdbd;
  text-align: center;
  cursor: pointer;
}

.reset-tab i {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}

.reset-tab.active {
  color: #e7b94f;
  border-bottom-color: #e7b94f;
}
.app {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  margin: 0 auto;
  background: #242424;

  border: 2px solid #2d2d2d;

  padding-bottom: 85px;
  position: relative;
  overflow: hidden;

  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
}
.topbar {
  height: 49px;
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  color: #ffd000;
  font-size: 24px;
  font-weight: 1000;
  text-shadow: 1px 2px #754e00;
  text-decoration: underline;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  font-size: 22px;
}

.top-icon {
  position: relative;
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #f33;
  border-radius: 50%;
  top: 0;
  right: -2px;
}

.content {
  padding: 0 12px;
}

.banner {
  width: 100%;
  height: 172px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(130deg, #211307, #60400b, #16100a);
}

.banner-fallback {
  height: 172px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 45%, #b98223, #16100a 60%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px;
  color: #ffd46c;
  overflow: hidden;
}

.banner-copy {
  font-size: 24px;
  font-weight: 1000;
  line-height: 1.05;
  text-shadow: 1px 2px #9b4a00;
}

.banner-copy small {
  display: block;
  font-size: 13px;
  margin-top: 7px;
}

.banner-art {
  font-size: 74px;
}

.announcement {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 2px 16px;
  min-height: 68px;
}

.announcement .sound {
  color: var(--gold);
  font-size: 23px;
  flex-shrink: 0;
}

.announcement p {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.45;
  margin: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.detail-btn {
  border: 0;
  border-radius: 5px;
  background: linear-gradient(#ffe8a0, #d9a843);
  color: #39280b;
  font-size: 11px;
  padding: 4px 12px;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.category-card {
  min-width: 0;
  height: 111px;
  background: linear-gradient(145deg, #ffdf8a, #d8ad50);
  border-radius: 12px;
  color: #17120b;
  text-align: center;
  text-decoration: none;
  padding: 4px 3px 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  transition:
    transform 0.18s,
    filter 0.18s;
}

.category-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  color: #17120b;
}

.category-card img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.category-card .game-emoji {
  height: 78px;
  font-size: 54px;
  line-height: 78px;
}

.category-card strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 19px;
}

.wide-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(120deg, #ffe08b, #d9ad50);
  border-radius: 12px;
  padding: 9px 3px 7px;
  margin-bottom: 16px;
}

.wide-card {
  min-width: 0;
  text-decoration: none;
  color: #17120b;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.wide-card:last-child {
  border-right: 0;
}

.wide-card img {
  width: 76px;
  height: 58px;
  object-fit: contain;
}

.wide-card .game-emoji {
  height: 58px;
  font-size: 42px;
}

.wide-card strong {
  font-size: 13px;
  font-weight: 900;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 15px;
}

.more-card {
  min-height: 125px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffe094, #d5a747);
  color: #17120b;
  text-decoration: none;
  text-align: center;
  padding: 10px;
}

.more-card img {
  height: 80px;
  width: 100%;
  object-fit: contain;
}

.more-card strong {
  font-size: 14px;
}

.bottom-nav {
  height: 69px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 400px);
  z-index: 20;
  background: #303030;
  border-radius: 23px 23px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 7px 3px 5px;
}

.nav-item {
  color: #c6c6c6;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  min-width: 0;
}

.nav-item i {
  font-size: 26px;
}
.nav-item.active {
  color: var(--gold);
}

.nav-item.promotion {
  transform: translateY(-10px);
}

.promo-icon {
  width: 62px;
  height: 49px;
  background: linear-gradient(#ffe8a0, #c99735);
  border: 5px solid #303030;
  border-radius: 17px 17px 23px 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #44300c;
  font-size: 33px;
  margin-bottom: -1px;
}

.floating-tools {
  position: fixed;
  right: 17px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 15;
}

.float-btn {
  border: 3px solid rgba(255, 255, 255, 0.13);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  text-decoration: none;
  box-shadow: 0 4px 14px #5555;
}

.float-btn.wheel {
  background: conic-gradient(
    #e74833,
    #f6dc54,
    #3fb76a,
    #388bdb,
    #a653c7,
    #e74833
  );
  color: white;
}

.float-btn.dragon {
  background: linear-gradient(#d6a13a, #4e3515);
  color: #ffcf63;
}

.float-btn.coin {
  background: linear-gradient(#ffe6a0, #b17a1c);
  color: #936112;
}

@media (min-width: 700px) {
  .app {
    min-height: 100vh;
  }
}

@media (max-width: 500px) {
  body {
    background: var(--dark);
  }
  .app {
    max-width: 100%;
  }
  .bottom-nav {
    width: 100%;
  }
  .floating-tools {
    right: 9px;
  }
  .float-btn {
    width: 47px;
    height: 47px;
    font-size: 25px;
  }
  .banner {
    height: auto;
    aspect-ratio: 2.17 / 1;
  }
  .banner-fallback {
    height: auto;
    aspect-ratio: 2.17 / 1;
  }
  .category-grid {
    gap: 12px;
  }
  .category-card {
    height: 111px;
  }
}

@media (min-width: 501px) {
  .floating-tools {
    right: max(17px, calc((100vw - 400px) / 2 - 480px));
  }
}
@media (max-width: 500px) {
  .app {
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}
.banner-fallback,
.banner-fallback .banner-copy,
.banner-fallback .banner-copy small,
.banner-fallback a {
  text-decoration: none !important;
}

a:has(.banner-fallback),
a:has(.banner-copy) {
  text-decoration: none !important;
}
.category-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 13px;
}

.preview-card {
  height: 54px;
  background: linear-gradient(135deg, #ffe49a, #d2a648);
  border-radius: 0 0 12px 12px;
  color: #17130c;
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-decoration: none;
  overflow: hidden;
}

.preview-card img {
  width: 67px;
  height: 50px;
  object-fit: contain;
}

.preview-card strong {
  font-size: 13px;
  font-weight: 800;
}

.section-title {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  margin: 12px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: "";
  height: 15px;
  width: 3px;
  background: var(--gold);
}

.lottery-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.lottery-card {
  min-height: 91px;
  border-radius: 22px;
  padding: 12px 16px;
  background: linear-gradient(160deg, #ffedaa 0%, #f0d080 48%, #c8943c 100%);
  color: #29251c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    filter 0.2s;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.lottery-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.lottery-info {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.lottery-info h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 9px;
}

.lottery-info p {
  font-size: 11px;
  margin: 0 0 4px;
  line-height: 1.3;
}

.lottery-art {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 42px;
  filter: drop-shadow(0 3px 2px #8d672c55);
}

.lottery-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.winning-title {
  margin-top: 11px;
}

.winning-panel {
  background: linear-gradient(145deg, #36312a, #252525);
  border: 1px solid #59472a;
  border-radius: 13px;
  padding: 13px;
  margin-top: 8px;
  color: #f8df9b;
  font-size: 13px;
}

.winning-panel p {
  margin: 0;
}

.floating-tools {
  position: fixed;
  right: max(10px, calc((100vw - 400px) / 2 - 470px));
  bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 30;
}

.float-btn {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  text-decoration: none;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px #3335;
}

.wheel {
  background: conic-gradient(
    #f83e37,
    #ffdc57,
    #35b86d,
    #388ddd,
    #9b54d3,
    #f83e37
  );
  color: #fff;
}

.dragon {
  background: linear-gradient(#e7bd63, #473014);
  color: #ffdc7d;
}

.bonus {
  background: linear-gradient(#ffe7a0, #c08a2b);
  color: #946014;
}
.wallet-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-bg);
}

.wallet-header h1 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 23px;
  line-height: 1;
}

/* Balance area */
.balance-header {
  min-height: 163px;
  padding: 8px 15px 16px;
  text-align: center;
  background: #303030;
}

.balance-icon {
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1px;
  font-size: 34px;
  color: #f3f3f3;
}

.balance-amount {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.balance-label {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}

/* Main content */
.wallet-content {
  padding: 12px 14px 20px;
}

.balance-panel {
  padding: 25px 7px 18px;
  border-radius: 12px;
  background: #303030;
}

.wallet-rings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.ring-column {
  text-align: center;
  min-width: 0;
}

.ring {
  width: 98px;
  height: 98px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--gold) var(--progress), #494949 0);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #303030;
}

.ring span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
}

.ring-amount {
  font-size: 14px;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.ring-label {
  font-family: Georgia, serif;
  font-size: 12px;
}

.transfer-btn {
  width: 100%;
  min-height: 39px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(100deg, #ffe6a0, #c7953b);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
}

.transfer-btn:hover {
  filter: brightness(1.08);
}

.transfer-btn:active {
  transform: scale(0.98);
}

/* Wallet action buttons */
.wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 26px;
}

.wallet-action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #d7c7a7;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.4;
}

.action-icon {
  width: 52px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  font-size: 28px;
  color: white;
  box-shadow: inset 0 3px 8px #ffffff35;
  transition: transform 0.2s;
}

.wallet-action:hover .action-icon {
  transform: translateY(-3px);
}

.action-deposit {
  background: linear-gradient(145deg, #ffe8a1, #bd8c35);
  color: #d8a23a;
}

.action-withdraw {
  background: linear-gradient(145deg, #3287ef, #a5caff);
  color: #0871df;
}

.action-deposit-history {
  background: linear-gradient(145deg, #ff6a72, #f7a4b6);
  color: #fff0ef;
}

.action-withdraw-history {
  background: linear-gradient(145deg, #12c99d, #83e9cb);
  color: #07886b;
}

/* Wallet provider grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 10px;
  margin-top: 13px;
}

.provider-card {
  min-width: 0;
  height: 85px;
  border-radius: 5px;
  background: #303030;
  color: #929292;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5px 3px;
  transition: background 0.2s;
}

.provider-card.active {
  background: linear-gradient(130deg, #ffe9a0, #c5943d);
  color: #8c5b16;
}

.provider-card:not(.active):hover {
  background: #393939;
}

.provider-logo {
  height: 31px;
  width: 100%;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 900;
  opacity: 0.18;
  line-height: 1;
}

.provider-card.active .provider-logo {
  opacity: 0.2;
}

.provider-amount {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  margin-top: -19px;
  margin-bottom: 6px;
}

.provider-name {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Floating bonus button */
.floating-bonus {
  position: fixed;
  right: max(10px, calc((100vw - 400px) / 2 - 470px));
  bottom: 130px;
  z-index: 30;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffe6a0, #c18a29);
  border: 3px solid #e4bc63;
  color: #936018;
  font-size: 29px;
  box-shadow: 0 4px 14px #4445;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 400px);
  height: 69px;
  background: #303030;
  border-radius: 22px 22px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: 7px 3px 5px;
}

.nav-item {
  min-width: 0;
  color: #bdbdbd;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
}

.nav-item i {
  font-size: 26px;
  line-height: 1.1;
}

.nav-item.active {
  color: var(--gold);
}

.nav-item.promotion {
  transform: translateY(-9px);
}

.promo-icon {
  width: 62px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border: 5px solid #303030;
  border-radius: 17px 17px 22px 22px;
  background: linear-gradient(#ffe9a0, #c69535);
  color: #49330d;
  font-size: 30px;
}

/* Small mobile */
@media (max-width: 500px) {
  body {
    background: var(--app-bg);
  }

  .app {
    max-width: 100%;
  }

  .bottom-nav {
    width: 100%;
  }

  .floating-bonus {
    right: 9px;
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .balance-panel {
    padding-left: 7px;
    padding-right: 7px;
  }

  .ring {
    width: 94px;
    height: 94px;
  }
}

@media (max-width: 340px) {
  .wallet-content {
    padding-left: 9px;
    padding-right: 9px;
  }

  .ring {
    width: 82px;
    height: 82px;
  }

  .ring::before {
    inset: 8px;
  }

  .ring span {
    font-size: 14px;
  }

  .action-icon {
    width: 45px;
    height: 48px;
    font-size: 24px;
  }

  .provider-grid {
    gap: 8px;
  }

  .provider-name {
    font-size: 11px;
  }
}
.app-wrapper {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--app-bg);
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
}

/* Profile header */
.profile-header {
  height: 220px;
  padding: 32px 18px 0;
  background: linear-gradient(110deg, #ffe79a, #d9ad53, #c7963c);
  border-radius: 0 0 35px 35px;
  color: white;
  position: relative;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 73px;
  height: 73px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.member-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 7px;
  word-break: break-word;
}

.uid-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e99b3c;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.last-login {
  margin-top: 8px;
  font-size: 11px;
  white-space: normal;
}

/* Main balance */
.balance-card {
  background: #494949;
  border-radius: 12px;
  margin: -82px 12px 0;
  padding: 16px 15px 20px;
  position: relative;
  z-index: 2;
}

.balance-label {
  color: #c6c6c6;
  font-size: 14px;
}

.balance-amount {
  font-size: 19px;
  font-weight: 700;
  margin-top: 4px;
}

.refresh-btn {
  color: #bcbcbc;
  background: none;
  border: 0;
  margin-left: 7px;
  cursor: pointer;
}

.balance-divider {
  border-color: #5b5b5b;
  margin: 10px 0 15px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  text-decoration: none;
  min-width: 0;
  cursor: pointer;
}

.quick-action i {
  font-size: 25px;
}

.quick-action span {
  font-size: 14px;
}

.icon-red {
  color: #e95b63;
}
.icon-orange {
  color: #e88c25;
}
.icon-blue {
  color: #59a8f8;
}
.icon-green {
  color: #28aa91;
}
.icon-gold {
  color: var(--gold);
}

/* Content */
.main-content {
  padding: 21px 12px 0;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.history-card {
  min-height: 77px;
  padding: 12px 10px;
  border-radius: 5px;
  background: #303030;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: white;
  transition:
    background 0.2s,
    transform 0.2s;
}

.history-card:hover {
  background: #3b3b3b;
  color: white;
  transform: translateY(-2px);
}

.history-icon {
  font-size: 29px;
  flex-shrink: 0;
}

.history-title {
  font-size: 14px;
  line-height: 1.15;
}

.history-subtitle {
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}

/* Menu panels */
.menu-panel {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 5px 12px;
  margin-top: 20px;
}

.menu-item {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #484848;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-icon {
  width: 27px;
  text-align: center;
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.menu-label {
  font-size: 14px;
}

.menu-arrow {
  color: #777;
  font-size: 13px;
}

.notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  padding: 0 4px;
  background: #e63d46;
  color: white;
  font-size: 11px;
}

.service-panel {
  background: var(--card-bg);
  border-radius: 12px;
  margin-top: 20px;
  padding: 19px 13px 24px;
}

.service-heading {
  font-size: 16px;
  margin-bottom: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 18px;
}

.service-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  color: #c9c9c9;
  text-decoration: none;
  font-size: 12px;
  min-width: 0;
  cursor: pointer;
}

.service-link i {
  font-size: 27px;
  color: var(--gold);
}

.service-link:hover {
  color: white;
}

/* Logout */
.logout-btn {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--gold);
  border-radius: 25px;
  background: transparent;
  color: var(--gold);
  font-size: 15px;
  margin-top: 42px;
  transition: 0.2s;
}

.logout-btn i {
  margin-right: 12px;
}

.logout-btn:hover {
  background: var(--gold);
  color: #242424;
}
/* Very small phones */
@media (max-width: 350px) {
  .profile-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .member-name {
    font-size: 14px;
  }

  .history-card {
    gap: 7px;
    padding: 10px 7px;
  }

  .history-icon {
    font-size: 24px;
  }

  .history-title {
    font-size: 12px;
  }

  .history-subtitle {
    font-size: 10px;
  }

  .quick-action span {
    font-size: 12px;
  }
}
.login-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-top {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 8px 15px;
    box-sizing: border-box;
}

.popular-games-section {
    padding: 0 12px 20px;
    background: #242424;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #e7b94b;
    border-left: 3px solid #e7b94b;
    padding-left: 6px;
    margin: 0 0 12px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.game-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 5px solid #dcb54f;
    border-radius: 10px;
    background: #29215e;
    text-decoration: none;
    color: #fff;
}

.game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.odds {
    display: block;
    margin-top: 5px;
    padding: 4px 2px;
    border-radius: 3px;
    background: #dcb54f;
    color: #292929;
    text-align: center;
    font-size: 10px;
    white-space: nowrap;
}

@media (max-width: 350px) {
    .games-grid {
        gap: 8px;
    }

    .game-card {
        border-width: 3px;
    }
}

.lottery-games-section {
    padding: 0 12px 20px;
    background: #242424;
}

.lottery-games-section .section-title {
    color: #e5b84d;
    font-size: 17px;
    font-weight: 700;
    border-left: 3px solid #e5b84d;
    padding-left: 8px;
    margin: 10px 0 14px;
}

.lottery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lottery-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
    padding: 15px 17px;
    border-radius: 10px;
    background: linear-gradient(110deg, #39332b, #302d2b);
    border: 1px solid #51432b;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform .2s, background .2s;
}

.lottery-card:hover {
    color: #fff;
    background: #40382d;
    transform: translateY(-2px);
}

.lottery-info {
    min-width: 0;
}

.lottery-info h3 {
    color: #f1c653;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 9px;
}

.lottery-info p {
    color: #d2d2d2;
    font-size: 12px;
    margin: 4px 0;
    line-height: 1.3;
}

.lottery-art {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e8bb4c;
    font-size: 52px;
}

.lottery-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 350px) {
    .lottery-card {
        min-height: 105px;
        padding: 12px;
    }

    .lottery-art {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    .lottery-info h3 {
        font-size: 17px;
    }
}

.slots-section {
    padding: 0 12px 20px;
    background: #242424;
}

.slots-section .section-title {
    font-size: 15px;
    font-weight: 700;
    color: #e6b94c;
    border-left: 3px solid #e6b94c;
    padding-left: 7px;
    margin: 10px 0 13px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.slot-card {
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1.22;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffe8a0, #c89636);
    text-decoration: none;
}

.slot-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .2s;
}

.slot-card:hover img {
    transform: scale(1.04);
}

@media (max-width: 350px) {
    .slots-grid {
        gap: 7px;
    }

    .slots-section {
        padding-left: 8px;
        padding-right: 8px;
    }
}
