:root {
  --primary-color: #4a6bff;
  --secondary-color: #ff6b6b;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #fef6ee;
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  background-image: url("/wp-content/themes/dakeTheme-v7/games/wheel/assets/img/bg.svg");
  background-repeat: no-repeat;
  background-size: contain;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  direction: ltr;
}
.container {
  text-align: center;
  max-width: 900px;
  width: calc(100% - 40px);
  background: linear-gradient(
    90deg,
    rgba(29, 29, 46, 1) 0%,
    rgba(93, 93, 148, 1) 35%
  );
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 20px;
}

.chance_number {
  color: #fff;
  font-weight: 500;
  font-size: 20px;
}

.rule_text {
  transition: max-height 0.3s ease;
  direction: ltr;
}

.number-of-chance {
  color: #f6861f;
  padding-left: 8px;
  font-weight: 800;
  font-size: 20px;
}

.chance_container {
  float: left;
}
.game_collapse {
  cursor: pointer;
}

.more_btn {
  display: block;
  margin: auto;
}

.welcome-container {
  display: flex;
  flex-direction: column;
}
.welcome-container img {
  max-height: 189px;
  width: 70%;
  margin: auto;
}
.welcome-container .company_logo {
  max-height: 122px;
  width: 100%;
  max-width:122px;
  margin:40px auto 40px auto;
}

.div_share_to {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.div_share_to img:hover{
	cursor: pointer;
}

.form-control {
  direction: rtl;
  text-align: left;
  margin: auto;
  width: fit-content;
}

.btn {
  background: linear-gradient(
    90deg,
    rgba(251, 194, 18, 1) 0%,
    rgba(246, 134, 31, 1) 35%
  );
  border-radius: 40px;
  color: #000;
  font-weight: 400;
  font-size: 20px;
  padding: 10px;
  text-decoration: none;
}

.btn-primary {
  background: #0a0a29;
  border-radius: 40px;
  color: #fff;
  font-weight: 400;
  font-size: 20px;
  padding: 10px;
}

.row-action {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  padding: 32px;
}

.form-control label {
  color: #fff;
}

.share_to {
  color: #fff;
  font-size: 24px;
}

.contact_us {
  color: #fff;
  font-size: 40px;
  margin-bottom: 70px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

.game-area {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}
#wheel-skeleton {
  width: 400px;
  height: 400px;
}
.wheel {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 10px solid var(--dark-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  transform: rotate(0deg);
  margin: auto;
}

.wheel-box {
  width: 100%;
  height: 100%;
  background-image: url("/wp-content/themes/dakeTheme-v7/games/wheel/assets/img/Gardoone-final-2 (2).png");
  background-size: cover;
  position: absolute;
  z-index: 9;
  top: -72px;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  max-width: 540px;
  max-height: 540px;
}

.wheel-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wheel-center {
  position: absolute;
  background-image: url("/wp-content/themes/dakeTheme-v7/games/wheel/assets/img/circle.svg");
  background-size: cover;
  border-radius: 50%;
  top: -8%;
  left: max(40px, 10%);
  right: 0;
  bottom: 0;
  margin: auto;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  max-width: 40px;
  max-height: 40px;
}

.pointer {
  position: absolute;
  top: -6px;
  left: calc(50% + 4px);
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background-image: url("/wp-content/themes/dakeTheme-v7/games/wheel/assets/img/pointer.png");
  background-size: cover;
  z-index: 12;
}

.section-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  top: 0;
}

.text-container {
  position: absolute;
  width: 30%;
  transform-origin: center;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  justify-content: center;
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  min-width: 150px;
}

button:not(#copyButton):hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.reset {
  background: var(--secondary-color);
}

.result {
  font-size: 1.8rem;
  margin: 25px 0;
  min-height: 60px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-color);
  border: 2px dashed var(--primary-color);
}

.config-panel {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
}

.config-panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.8rem;
}

.section-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.section-control {
  background: rgba(74, 107, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-control input {
  color: #fff;
}

input,
select {
  direction: ltr;
  width: calc(100% - 16px);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: border 0.3s;
  max-width: 400px;
  background-color: #000;
  border: 2px solid #f6861f;
  border-radius: 12px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.2);
}

.remove-section {
  background: #ff4757;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.remove-section:hover {
  background: #ff6b81;
}

.add-section {
  background: #2ed573;
  width: 100%;
  margin-top: 10px;
}

.add-section:hover {
  background: #7bed9f;
}

.game_rule {
  color: #f6861f;
  font-size: 40px;
  font-weight: normal;
  margin: 36px auto;
}
.rule_text {
  color: #fff;
  text-align: justify;
}
.spinning {
  animation: pulse 0.5s infinite alternate;
}

.invite_text {
  background-color: #fff;
  padding: 14px 5%;
  font-weight: 800;
  color: #000;
  font-size: 58px;
  margin-top: 32px;
  margin-bottom: 8px;
  display: block;
}

.friend_img {
  margin: 50px auto 0 auto;
  width: 72%;
}
.modal-win {
  position: relative;
}
.modal-win img {
  width: 75%;
  max-width: 800px;
  height: auto;
  margin: auto;
  display: block;
}
.try-again {
  cursor: pointer;
}

.try-again,
.lucky-number {
  font-size: 24px;
  font-weight: 400;
}

.modal-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
  padding: 32px 16px 16px 16px;
  background: linear-gradient(
    90deg,
    rgba(29, 29, 46, 0.8) 0%,
    rgba(93, 93, 148, 0.9) 35%
  );
  backdrop-filter: blur(10px);
  overflow-y: auto;
  z-index: 100;
  transition: all 0.3s ease-out;
}
/* Visible state */
.modal-container.show-modal {
  opacity: 1;
  visibility: visible;
}
/* Modal body animation */
.modal-body {
  transform: translateY(200px);
  transition: transform 0.6s ease-out;
}

.modal-container.show-modal .modal-body {
  transform: translateY(0);
}
.gift-text {
  color: #fff;
  font-size: clamp(1rem, 4.5vw, 2rem);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

.hide {
  display: none;
}
.hide-modal{
  opacity: 0;
  visibility: hidden;
}
.color-white {
  color: #fff;
}

.text-center {
  text-align: center;
}
.form_error {
  border: 2px solid red;
}
.invite-friend {
  color: #fff;
}
@keyframes pulse {
  from {
    box-shadow: 0 0 10px rgba(74, 107, 255, 0.3);
  }
  to {
    box-shadow: 0 0 30px rgba(74, 107, 255, 0.6);
  }
}

.winner-animation {
  animation: winner 1s infinite;
}
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
#spinBtn{
	margin-bottom: 32px;
}
#loading-spinBtn {
  width: 24px;
  height: 24px;
  margin: auto;
}
.spin {
  animation: spin 2s linear infinite;
}
.skeleton-circle {
  border-radius: 50%;
  background: #ddd;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s ease-in-out infinite;
}
#loading-register-btn {
  width: 20px;
  height: 20px;
  margin:auto;
}

@keyframes pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes winner {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
   .container {
	   padding: 16px;
   }
   .wheel-box {
  	top: -60px;
  }
  .game-area {
    flex-direction: column;
    align-items: center;
  }

  .wheel-container {
    width: 300px;
    height: 300px;
  }

  #wheel-skeleton {
    width: 300px;
    height: 300px;
  }

  .text-container {
    font-size: 1rem;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/***** Toast */
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  max-width: 300px;
  padding: 15px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: #4caf50;
  color: white;
}

.toast-error {
  background: #f44336;
  color: white;
}

.toast-icon {
  font-weight: bold;
  font-size: 1.2em;
}


.copy-container {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

#shareLink {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: #f9f9f9;
    color: #555;
    cursor: pointer;
    outline: none;
}

#copyButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    border-radius: 0 8px 8px 0;
	max-width: 24px;
    height: 45px;
}

#copyButton:hover {
    background-color: #45a049;
}

#copyButton svg {
    width: 18px;
    height: 18px;
}
.tooltip-copy{
	font-size: 14px;
	margin-left:8px;
}
.share-link{
	color: #fff;
    margin-bottom: 8px;
    display: block;
}
.quick-register{
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}
.use-voucher{
    color: #fff;
    font-size: 14px;
    margin-bottom: 24px;
}
.try-lock{
    color:#fff;
}
.invite-banner{
    border-radius: 8px;
    max-width: 300px;
    display: block;
    margin:auto auto 16px auto;
}

/*bottom sheet*/
        .bottom-sheet {
            position: fixed;
            bottom: -100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
            padding: 24px;
            transition: bottom 0.3s ease-out;
            z-index: 1000;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .bottom-sheet.open {
            bottom: 0;
        }
        
        .bottom-sheet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .bottom-sheet-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            padding: 8px;
            box-shadow: none;
            display: block;
            min-width: 50px;
            width: 50px;
        }
        
        .bottom-sheet-content {
            margin-bottom: 24px;
            color: #444;
            line-height: 1.5;
        }
        
        .bottom-sheet-actions {
            display: flex;
            gap: 12px;
            padding-bottom: 16px;
        }
        
        .action-btn {
            flex: 1;
            padding: 14px;
            border-radius: 12px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .share-btn {
            background-color: #4285F4;
            color: white;
        }
        
        .close-full-btn {
            background-color: #f1f1f1;
            color: #333;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .overlay.open {
            opacity: 1;
            pointer-events: all;
        }
        
/* light */
.light{
    width: 14px;
    height: 14px;
    display: block;
    background: #ccc;
    border-radius: 50%;
    position: absolute;
    transition: all 0.3s ease;
}
.light-1{
    top: 14.6%;
    right: 26%;
}
.light-2 {
    top: 29.8%;
    right: 12.5%;
}
.light-3 {
    top: 48.1%;
    right: 7.9%;
}
.light-4 {
    top: 70.5%;
    right: 14.6%;
}
.light-5 {
    top: 83.9%;
    right: 29.8%;
}
.light-6 {
    top: 88.1%;
    right: 48.2%;
}
.light-7 {
    top: 81.5%;
    right: 70.5%;
}
.light-8 {
    top: 66.74%;
    right: 84%;
}
.light-9 {
    top: 48.3%;
    right: 88.7%;
}
.light-10 {
    top: 26%;
    right: 81.8%;
}
.light-11 {
    top: 12.4%;
    right: 66.7%;
}


/* Animation for odd lights (1,3,5,7,9,11) */
.light:nth-child(odd) {
  animation: sparkOdd 4s infinite;
}

/* Animation for even lights (2,4,6,8,10) */
.light:nth-child(even) {
  animation: sparkEven 4s infinite;
}

@keyframes sparkOdd {
  0%, 50% {
    background-color: yellow;
    box-shadow: 0 0 10px yellow, 0 0 20px yellow;
    opacity: 1;
  }
  50.1%, 100% {
    background-color: #ccc;
    box-shadow: none;
    opacity: 0.3;
  }
}

@keyframes sparkEven {
  0%, 50% {
    background-color: #ccc;
    box-shadow: none;
    opacity: 0.3;
  }
  50.1%, 100% {
    background-color: yellow;
    box-shadow: 0 0 10px yellow, 0 0 20px yellow;
    opacity: 1;
  }
}


/*************** payam **************/
@media screen and (max-width: 767px){
	#invite-welcome>span{display: grid;grid-template-columns: 5fr 3fr;grid-gap:3%;}
}
@media screen and (min-width: 768px){
	
}






.phone-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.phone-input-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.country-dropdown {
  position: relative;
  width: 100px;
  max-height: 42px;
}

.selected-country {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: #000;
  cursor: pointer;
  border: 2px solid #f6861f;
  border-radius: 12px;
}

.flag-icon {
  width: 24px;
  height: 16px;
  margin-right: 0.5rem;
}

.country-code {
  font-size: 1rem;
  color: #fff;
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  margin-left: auto;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: #000;
  border: 1px solid #f6861f;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.dropdown-menu.hide {
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  cursor: pointer;
  color:#fff;
}

.dropdown-item:hover {
  background: #0a0a29;
}

.phone-input {
  flex: 1;
}
#phone_form{
    margin:0;
    max-width: calc(100% - 120px);
}