*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: #e8e8e8;
  color: #9376a9;
}

html, body {
  background: #e8e8e8;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight:900;
  font-style: normal;
  background:#e8e8e8;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top:30px;
}

.content-p {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background:none;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.content-p h1, p, button {color:#fff;}


.hero-logo {
  width: 100%;
  height:480px;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 20px;
  background: url("img/logo.png") center no-repeat;
  background-size:contain;
  
}

.content.landing {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding:0px 20px 60px 0px;
  background: transparent;
}


.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.title {
  font-size: 60px;
  font-weight: 900;
  color: #4e1a76;
  margin-bottom: 15px;
  letter-spacing:2px;
}


.subtitle {
  font-size: 16px;
  color:#4e1a76;
  max-width: 600px;
  margin-bottom: 40px;
  font-weight:300;
  line-height:25px;
  letter-spacing:1px;
}


#countdown {
  display: flex;
  gap: 25px;
  justify-content: center;
  font-size: 62px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}


.landing-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}


.btn {
  padding: 14px 50px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing:1;
  cursor: pointer;
  transition: 0.25s;
  border: none;
}


.btn.primary {
  background: #4e1a76;
  color: #fff;
}

.btn.primary:hover {
  background: #fefefe;
  color: #4e1a76;
}


.btn.outline {
  background: transparent;
  border: 2px solid #4e1a76;
  color: #4e1a76;
}

.btn.outline:hover {
  background:#fff;
  border: 2px solid #532363;
  color: #532363;
}

.invite-link.row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.coupon-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.folder-btn {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tx-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  color: #56257c;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.2s;
}

.tx-link.btn-initializing {
    color: orange !important;
}

.tx-link.btn-waiting {
    color: #00e5ff !important;
}

.tx-link.btn-successful {
    color: limegreen !important;
}

.tx-link.btn-canceled,
.tx-link.btn-error {
    color: red !important;
}

.tx-link:disabled {
    opacity: 1;
    cursor: default;
}


.bg-fixed-index {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 540px;
  height: 100%;


  z-index: -1;
}

.bg-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 540px;
  height: 100%;

  background: url("img/hero_profile.png") center / cover no-repeat;

  z-index: -1;
}


.rank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

.button {
	width:220px;
	height:84px;
	background: url("img/button.png") no-repeat;
	background-size:100% 100%;
	border:none;
	font-size:23px;
	font-weight:bold;
	color:#f0f0f0;
	margin:0px 0px 25px 0px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	letter-spacing:-1px;
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight:900;
	font-style: normal;

} 

.button:hover {
	transform: scale(1.05);
	cursor:pointer;

} 


.button-profile {
  position: relative;
  top:5px;
  right:0;
  z-index: 20;

  padding: 10px 30px;
  border-radius:999px;
  border: none;
  cursor: pointer;


  background: rgba(255,255,255,0.08);
  border:none;
  
  font-size:11px;	
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight:900;
  font-style: normal;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  color:#fff;
  transition:0.5s;
}

.button-profile:hover {
	transition:0.5s;
	color:#fff;
}

.button-profile span {
  position: relative;
  z-index: 2;
  color: black; 
  mix-blend-mode: destination-out;
}


.button-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(150, 80, 255, 0.6);
  pointer-events: none;
}

.button-group {
  float:right;
  margin:15px 25px;
  display: flex;
  justify-content: center; 
  align-items: center;     
  gap: 5px;                
}

a,button {
  -webkit-tap-highlight-color: transparent;
}

a,button:focus {
  outline: none;
}

a,button:active {
  outline: none;
}


.amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.amount-row #amountInput {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 95px);
}

.amount-row #sendButton {
  margin-left: auto;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  max-width: none;
  white-space: nowrap;
  padding: 0;
}

#amountInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #645181;
  font-size: 14px;
  font-weight: 600;
}


#amountInput::-webkit-outer-spin-button,
#amountInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#amountInput {
  -moz-appearance: textfield;
}



.wallet-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#walletInput {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font: inherit;
    padding: 0;
	max-width: 240px;
    min-width: 120px;
}

#walletInput.editing {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 10px;
    border-radius: 8px;
}

#saveWalletBtn {
    color: limegreen !important;
}

#cancelWalletBtn {
    color: red !important;
}

#walletInput::placeholder {
    color:#b8b8b8;
}

.tx-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 216, 107, 0.7);
}


.tx-link:active {
  transform: scale(0.95);
}

.tx-link:focus {
  outline: none;
}



.button-mini i {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #c084fc;
  transition: 0.2s;
}


.button-mini:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.8));
}

.rank-icons {
  display: flex;
  gap: 10px;
}

.rank-icons i {
  font-size: 28px;
}

.gold { color: #ffd700; }
.silver { color: #c0c0c0; }
.bronze { color: #cd7f32; }

.page {
	position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

}


#countdownBox {
    text-align: center;
    color: white;
	margin: 15px 0 15px 0;
}



#countdowndraw {
     width:100%;
	 color: #fff;
	 margin: 25px 0 5px 0;
	 font-size:23px
}

.countdownWrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px
}

.timeBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
	color:#4e1a76;
}

.timeBox .value {
    font-size:80px;
    font-weight: 900;
    line-height: 1;
}

.timeBox p {
    margin-top: 10px;
    font-size: 15px;
	font-weight:300;
    letter-spacing: 1px;
	color:#4e1a76;
}


.separator {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    margin-top: 5px;
	color:#4e1a76;
}
 
#payment {
    position: fixed;    
	top: 0;
    left: 50%;
    right: 0;
	width:100%;
    transform: translateX(-50%) translateY(-150%);
    
    padding: 12px 1px;
    font-family: "Roboto", sans-serif;
    color: white;
    font-weight:600;
    text-align: center;
    font-size:13px;
    opacity: 0;
    transition: all 0.5s ease;
    
    z-index: 9999;
}

#payment.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
	letter-spacing:1px;
}


.success {
    background: linear-gradient(
        135deg,
        rgba(25, 154, 0, 1.0),
        rgba(24, 145, 0, 1.0)
    );
}

.error {
    background: linear-gradient(
        135deg,
        rgba(145, 0, 0, 1.0),
        rgba(188, 0, 0, 1.0)
    );
}

.info {
    background: linear-gradient(
        135deg,
        rgba(101, 38, 149, 1.0),
        rgba(101, 38, 149, 1.0)
    );
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

.profile-tabs-wrap {
  width: 100%;
  max-width: 540px;
  margin: 25px auto;
  padding: 0;
  font-family: Arial, sans-serif;
}

.main-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

.main-tab {
  flex: 1;
  border: none;
  cursor: pointer;
  color: #9376a9;
  padding: 10px 24px 8px;
  border-radius: 14px 14px 0 0;
  background:#d8d8d8;
  opacity: 0.55;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: 0.2s ease;
  max-width:120px;
}

.main-tab.active {
  color:#fff;
  opacity: 0.95;
  box-shadow:
    0 0 12px rgba(141, 73, 247, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
	background: linear-gradient(180deg, #4e1a76 0%, #4e1a76 100%);
}

.main-tab:hover {
  opacity: 0.8;
}
.main-tab-content {
  display: none;
}

#box-wrap {
	width:95%;
	left:2.5%;
	right:2.5%;
	margin:25px 0px;
}
.main-tab-content.active {
  display: block;
}

.invite-wrap {
  position: relative;
  width: 100%;
  margin-top: -1px;
}

.invite-card {
  width: 100%;
  padding: 26px 24px 24px;
  border-radius: 0 18px 18px 18px;
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
  opacity: 0.8;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(120, 90, 170, 0.08);
  padding: 24px 22px 22px;
  box-shadow:
    0 10px 24px rgba(75, 19, 127, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.95);
	
}


.invite-tab {
   
  width: 180px;
  padding: 10px 24px 2px;
  border-radius: 14px 14px 0 0;
  background:#d8d8d8;
  opacity: 0.8;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.invite-title {
  color:#9376a9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  text-align: center;
}

.invite-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 18px;
  background:transparent;
  border-top-right-radius: 18px;
}

.draw-wrap {
  position: relative;
  width: 100%;
  margin: 25px auto 0;
}

.draw-card {
  border-radius: 24px;
  padding: 22px 18px;
  text-align: center;
}

.draw-top {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9f92b7;
  margin-bottom: 8px;
}

.draw-date {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  color: #4b137f;
  margin-bottom: 16px;
}

.draw-countdown-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.draw-countdown-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9f92b7;
}

.draw-countdown-value {
  font-size: 26px;
  font-weight: 900;
  color: #4b137f;
  line-height: 1.1;
}

.draw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.draw-stat {
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
  border: 1px solid rgba(128, 102, 172, 0.12);
  border-radius: 16px;
  padding: 12px 10px;
  box-shadow:0 10px 24px rgba(75, 19, 127, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.95)
  
  
}

.draw-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9f92b7;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.draw-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #4b137f;
}


.field,
.coupon-item {
  margin-bottom: 18px;
}

.field:last-child,
.coupon-item:last-child {
  margin-bottom: 0;
}

.label {
  color:#adadad;
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: 1px;
  font-weight:900;
}

.invite-link {
  width: 100%;
  background: linear-gradient(90deg, #efedf4 0%, #e6e0ef 100%);
  border: 1px solid rgba(128, 102, 172, 0.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.65);
  border-radius: 14px;
  padding: 18px 16px;
  color: #645181;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.sub-tab {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: #9376a9;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #ebe7f0 0%, #e8e4ee 100%);
}

.sub-tab.active {
  background: linear-gradient(180deg, #4e1a76 0%, #4e1a76 100%);
  box-shadow: 0 0 10px rgba(141, 73, 247, 0.35);
  color:#fff;
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

.empty-text {
  color:#957ab1;
  font-size: 13px;
  padding: 10px 0;
  font-weight:300;

}


@media (max-width: 640px) {
  .wrapper {
    min-height: 100vh;
    align-items: flex-start;
    padding: 18px 14px 26px;
  }

  .content.landing {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-logo {
    width: 100%;
    height: clamp(300px, 68vw, 480px);
    margin: 0 auto 8px;
    padding: 0;
    background: url("img/logo.png") center top no-repeat;
    background-size: contain;
  }

  .landing-inner {
    width: 100%;
  }

  .title {
    font-size: 47px;
    line-height: 1.08;
    letter-spacing: 1px;
    margin: 18px 0 18px 0px;
  }

  .subtitle {
    max-width: 100%;
    font-size: 19px;
    line-height: 26px;
    letter-spacing: 0.3px;
    margin: 0 0 26px;
    padding: 0 8px;
  }

  #countdownBox {
    margin: 10px 0 12px 0;
  }

  .countdownWrapper {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .timeBox {
    min-width: 0;
  }

  .timeBox .value {
    font-size: 60px;
    line-height: 1;
  }

  .timeBox p {
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .separator {
    font-size: 42px;
    margin-top: 10px;
  }

  .landing-buttons {
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    min-width: 220px;
    padding: 13px 28px;
    font-size: 12px;
  }

.landing-buttons {
    flex-direction: column;   
    align-items: center;
    gap: 10px;
  }

  .landing-buttons .btn {
    width: 100%;
    max-width: 260px; 
	padding: 18px 24px;
  }

  .landing-buttons form {
    width: 100%;
    display: flex;
    justify-content: center;
  }

}


@media (max-width: 480px) {
  .hero-logo {
    height: clamp(250px, 72vw, 360px);
    margin-bottom: 6px;
    background-position: center top;
    background-size: contain;
  }

  .title {
    font-size: 39px;
    line-height: 1.08;
    margin: 0 0 20px;
  }

  .subtitle {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 22px;
  }

  .countdownWrapper {
    gap: 8px;
  }

  .timeBox .value {
    font-size: 50px;
  }

  .separator {
    font-size: 32px;
    margin-top: 5px;
  }

  .landing-buttons {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
  }

  .landing-buttons .btn {
    width: auto;
    min-width: 140px;
    padding: 18px 24px;
    font-size: 12px;
  }

  .timeBox p {
    font-size: 12px;
  }

  .btn {
    width: 100%;
    max-width: 220px;
  }

  .invite-card {
    padding: 20px 16px 18px;
  }

  .invite-link {
    padding: 14px 12px;
    font-size: 13px;
  }

  .main-tab,
  .sub-tab {
    font-size: 12px;
    padding: 10px;
  }
  
  .draw-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .draw-date {
    font-size:30px;
  }

  .draw-countdown-value {
    font-size: 29px;
	
  }

  .draw-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .draw-stat-value {
    font-size: 16px;
  }
  
}

@media (max-width: 420px) {
  
  .timeBox .value {
    font-size: 53px;
  }

  .timeBox p {
    font-size: 11px;
  }

  .separator {
    font-size: 32px;
    margin-top: 10px;
  }
  
  .landing-buttons .btn {
    width: auto;
    min-width: 220px;
    padding: 18px 24px;
    font-size: 12px;
  }
   
     .content,
  .content.landing,
  .content-p,
  .profile-tabs-wrap,
  #box-wrap,
  .invite-wrap,
  .invite-card {
    width: 100%;
    max-width: 100%;
  }

  #box-wrap {
    left: 0;
    right: 0;
    margin: 18px 0;
  }

  .wrapper {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }
  
}

@media (max-width: 360px) {
  .hero-logo {
    height: clamp(230px, 78vw, 320px);
  }

  .title {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .subtitle {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 18px;
  }

  .countdownWrapper {
    gap: 8px;
  }

  .timeBox .value {
    font-size: 43px;
  }

  .separator {
    font-size: 28px;
    margin-top: 5px;
  }

  .landing-buttons .btn {
    min-width: 220px;
    padding: 15px 18px;
    font-size: 11px;
  }

}

@media (max-width: 300px) {
  .hero-logo {
    height: clamp(200px, 84vw, 280px);
  }

  .title {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .subtitle {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 16px;
  }

  .countdownWrapper {
    gap: 6px;
  }

  .timeBox .value {
    font-size: 35px;
  }

  .separator {
    font-size: 21px;
    margin-top: 5px;
  }

  .landing-buttons .btn {
    min-width:190px;
    padding: 15px 14px;
    font-size: 11px;
  }
}

@media (max-width: 250px) {
  .hero-logo {
    height: clamp(160px, 88vw, 220px);
  }

  .countdownWrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: center;
  }

  .separator {
    display: none;
  }

  .timeBox {
    min-width: 0;
  }

  .timeBox .value {
    font-size: 34px;
  }

  .timeBox p {
    font-size: 10px;
  }

  .landing-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
  }

    .landing-buttons .btn {
    min-width:50px;
    padding: 13px 28px;
    font-size: 11px;
  }
}

.draw-card #countdown {
  display: inline;
  font-size: 32px;
  font-weight: 900;
  color: #4b137f;
  margin: 0;
}

.invite-card .label,
.invite-card .invite-link,
.draw-card .draw-label,
#amountInput,
#walletInput {
  text-align: left;
}