/* ========================================
   Select Package Popup Styles
   ======================================== */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Container */
.popup-container {
    position: relative;
    width: 280px;
    /* background: rgba(40, 15, 15, 0.75); */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 3px solid #c9a861;
    box-shadow: 0 0 30px rgba(201, 168, 97, 0.3), inset 0 0 0 2px rgba(139, 0, 0, 0.6);
    padding: 24px 16px;
    font-family: 'Kanit', sans-serif;
}

/* Popup Header */
.popup-header {
    text-align: center;
    margin-bottom: 10px;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(180deg, #FFFFFF 0%, #ffe3aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.popup-close-btn:hover {
    transform: scale(1.1);
}

/* Package List */
.package-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    background: transparent;
}

/* Package Option */
.package-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: transparent;
    border-radius: 6px;
    /* border: 1px solid rgba(90, 32, 32, 0.4); */
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-option:hover {
    border-color: rgba(201, 168, 97, 0.8);
    background: rgba(77, 32, 32, 0.3);
}

.package-option input[type="radio"] {
    display: none;
}

/* Active state - when radio is checked, show yellow border */
.package-option:has(input[type="radio"]:checked) {
    border: 2px solid #c9a861;
    background: rgba(201, 168, 97, 0.15);
    box-shadow: 0 0 8px rgba(201, 168, 97, 0.3);
    border-radius: 10px;
}

/* Package Coins */
.package-coins {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #ffe3aa;
}

.coins-text {
    font-weight: 400;
    color: #c9a861;
}

/* Package HTG */
.package-htg {
    font-size: 13px;
    font-weight: 700;
    color: #ffe3aa;
}

.htg-text {
    font-weight: 400;
    color: #c9a861;
}

/* Action Buttons */
.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-btn {
    flex: 1;
    padding: 8px 16px;
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cancel-btn {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
    border: 2px solid #000;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.cancel-btn:hover {
    background: linear-gradient(180deg, #ff5555 0%, #dd1111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.next-btn {
    background: linear-gradient(180deg, #FFFFFF 0%, #E1C59C 100%);
    color: #000;
    border: 2px solid #000;
    box-shadow: 0 4px 15px rgba(225, 197, 156, 0.4);
}

.next-btn:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #d4b68a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 197, 156, 0.5);
}

/* ========================================
   Confirm Buy More Popup Styles
   ======================================== */

.confirm-popup {
    text-align: center;
}

.confirm-content {
    margin-bottom: 16px;
}

.confirm-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
}

.confirm-coins {
    font-size: 28px;
    font-weight: 700;
    color: #ffe3aa;
    margin: 0 0 6px 0;
}

.confirm-coins .coins-label {
    font-size: 16px;
    font-weight: 400;
    color: #c9a861;
}

.confirm-price {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.confirm-price #confirmPriceAmount {
    font-weight: 700;
    color: #ffe3aa;
}

.confirm-price .htg-label {
    color: #c9a861;
}

/* ========================================
   Register Popup Styles
   ======================================== */

.register-popup {
    width: 210px;
    min-height: 120px;
    padding: 10px 12px;
    overflow: visible;
    position: relative;
}

.register-content {
    position: relative;
    min-height: 80px;
}

/* Character Image - behind text and button */
.register-character {
    position: absolute;
    left: 40px;
    top: -10px;
    width: 110px;
    height: 130px;
    z-index: 1;
}

.register-character img {
    width: 130%;
    height: 110%;
    object-fit: contain;
}

/* Right Side Content - container for text and button */
.register-right {
    position: relative;
    z-index: 10;
    min-height: 80px;
}

/* Question Mark Icon - behind everything */
.register-question-icon {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 60px;
    height: 60px;
    z-index: 0;
}

.register-question-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text Content - bottom left, on top of character */
.register-text {
    position: absolute;
    bottom: -40px;
    left: 10px;
    text-align: left;
    width: 50%;
    z-index: 5;
}

.register-message {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.register-message .highlight-text {
    color: #ffe3aa;
    font-weight: 700;
}

/* Register Confirm Button - bottom right, on top of character */
.register-confirm-btn {
    position: absolute;
    bottom: -40px;
    right: 0px;
    flex: unset;
    width: auto;
    padding: 4px 12px;
    z-index: 5;
}

/* ========================================
   Withdraw Popup Styles
   ======================================== */

.withdraw-popup {
    width: 320px;
    padding: 20px;
}

.withdraw-content {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* Left Side - Account Info */
.withdraw-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.withdraw-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.withdraw-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.withdraw-phone-number {
    font-size: 16px;
    font-weight: 700;
    color: #ffe3aa;
}

.withdraw-tunnel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tunnel-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00a8e8 0%, #0077b6 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.tunnel-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.withdraw-balance-badge {
    display: inline-block;
    background: linear-gradient(90deg, #c9a861 0%, #ffe3aa 50%, #c9a861 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.withdraw-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}

.withdraw-info-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.withdraw-info-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffe3aa;
}

.withdraw-coin-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ffe3aa;
}

/* Right Side - Withdraw Options */
.withdraw-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.withdraw-options-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.withdraw-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.withdraw-option {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.withdraw-option:hover {
    background: rgba(201, 168, 97, 0.15);
}

.withdraw-option input[type="radio"] {
    display: none;
}

/* Selected option - darker background for visibility */
.withdraw-option:has(input[type="radio"]:checked) {
    background: rgba(201, 168, 97, 0.3);
    border: 1px solid #c9a861;
    border-radius: 6px;
}

.withdraw-option input[type="radio"]:checked ~ .withdraw-option-coins,
.withdraw-option input[type="radio"]:checked ~ .withdraw-option-htg {
    color: #ffe3aa;
}

.withdraw-option-coins {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 80px;
    text-align: right;
}

.withdraw-option-coins .coins-text {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 3px;
}

.withdraw-option-htg {
    font-size: 13px;
    font-weight: 700;
    color: #ffe3aa;
    min-width: 55px;
    text-align: right;
}

.withdraw-option-htg .htg-text {
    font-size: 10px;
    font-weight: 400;
    color: #c9a861;
}

/* Withdraw Button */
.withdraw-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(180deg, #FFFFFF 0%, #E1C59C 100%);
    border: 2px solid #000;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Kanit', sans-serif;
}

.withdraw-btn:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #d4b68a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 197, 156, 0.4);
}
