@charset "utf-8";

/* ==========================================================================
   Landing Page Refactoring Styles (New Year & Lifetime)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Common Layout & Glass Cards
   -------------------------------------------------------------------------- */
.sk-sub-page {
    /* Base styles if needed */
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: none;
    /* Disable hover movement */
}

/* --------------------------------------------------------------------------
   Form Header & Toggles (New)
   -------------------------------------------------------------------------- */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-header label {
    margin-bottom: 0 !important;
    /* Override default */
}

/* Premium Text Toggle (Clickable Text) */
.toggle-text-group {
    display: flex;
    gap: 15px;
}

.toggle-text-group label {
    cursor: pointer;
    font-size: 13px;
    color: #999;
    transition: 0.3s;
    font-weight: normal;
}

.toggle-text-group input {
    display: none;
}

.toggle-text-group input:checked+span {
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #333;
}

.page-new-year .toggle-text-group input:checked+span {
    color: #ff5050;
    border-color: #ff5050;
}

.page-lifetime .toggle-text-group input:checked+span {
    color: #7c4dff;
    border-color: #7c4dff;
}

.page-gunghap .toggle-text-group input:checked+span {
    color: #ff4081;
    border-color: #ff4081;
}

/* Premium Checkbox (Time Unknown) */
.chk-premium {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #888;
}

.chk-premium input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0;
    position: relative;
    transition: 0.2s;
    background: #fff;
}

.chk-premium input:checked {
    background-color: #333;
    border-color: #333;
}

.chk-premium input:checked::after {
    content: '✔';
    font-size: 10px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-new-year .chk-premium input:checked {
    background-color: #ff5050;
    border-color: #ff5050;
}

.page-lifetime .chk-premium input:checked {
    background-color: #7c4dff;
    border-color: #7c4dff;
}

.page-gunghap .chk-premium input:checked {
    background-color: #ff4081;
    border-color: #ff4081;
}

.card-header {
    display: block;
    text-align: center;
    margin-bottom: 25px;
}

.card-header i {
    font-size: 40px;
    color: #ff5050;
    /* Primary Color for New Year */
    margin-bottom: 15px;
    display: block;
}

.page-lifetime .card-header i {
    color: #7c4dff;
}

.page-gunghap .card-header i {
    color: #ff4081;
}

.card-header h3 {
    font-size: 22px;
    color: #111;
    font-weight: bold;
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
}

.card-header p {
    color: #666;
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.5;
    word-break: keep-all;
}

.card-body {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-break: keep-all;
}

/* --------------------------------------------------------------------------
   Detail Images
   -------------------------------------------------------------------------- */
.detail-img-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   Inline Input Form
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type=text],
.form-group input[type=number],
.form-group input[type=tel],
.form-group select {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    /* Prevent Zoom on iOS */
}

/* Radio Groups */
.radio-group-modern {
    display: flex;
    gap: 10px;
}

.radio-group-modern label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.radio-group-modern input {
    display: none;
}

.radio-group-modern span {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    transition: 0.3s;
}

/* New Year Active Color */
.page-new-year .radio-group-modern input:checked+span {
    background: rgba(255, 80, 80, 0.1);
    /* Light Red */
    border-color: #ff5050;
    color: #ff5050;
    font-weight: bold;
}

/* Lifetime Active Color */
.page-lifetime .radio-group-modern input:checked+span {
    background: rgba(124, 77, 255, 0.1);
    border-color: #7c4dff;
    color: #7c4dff;
    font-weight: bold;
}

/* Gunghap Active Color */
.page-gunghap .radio-group-modern input:checked+span {
    background: rgba(255, 64, 129, 0.1);
    border-color: #ff4081;
    color: #ff4081;
    font-weight: bold;
}

.radio-group-small {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.radio-group-small label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Submit Button */
.btn-pay-submit {
    width: 100%;
    padding: 16px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-new-year .btn-pay-submit {
    background: linear-gradient(135deg, #ff5050, #ff8f00);
    box-shadow: 0 4px 15px rgba(255, 80, 80, 0.3);
}

.page-lifetime .btn-pay-submit {
    background: linear-gradient(135deg, #7c4dff, #512da8);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.page-gunghap .btn-pay-submit {
    background: linear-gradient(135deg, #ff4081, #c51162);
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

/* --------------------------------------------------------------------------
   Step 2: Table of Contents (TOC) Overlay
   -------------------------------------------------------------------------- */
.toc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 80;
    /* Updated Z-Index */
    padding-top: 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.toc-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toc-item {
    text-align: center;
    margin-bottom: 40px;
}

.toc-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    line-height: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
    color: #fff;
}

.page-new-year .toc-badge {
    background: #ff5050;
}

.page-lifetime .toc-badge {
    background: #7c4dff;
}

.page-gunghap .toc-badge {
    background: #ff4081;
}

.toc-item h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #111;
    font-weight: bold;
}

.toc-item p.desc {
    margin: 0 0 20px;
    font-size: 14px;
}

.page-new-year .toc-item p.desc {
    color: #ff5050;
}

.page-lifetime .toc-item p.desc {
    color: #7c4dff;
}

.page-gunghap .toc-item p.desc {
    color: #ff4081;
}

.toc-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    font-size: 14px;
    color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.toc-details p {
    margin: 8px 0;
}

.btn-black-lg {
    width: 100%;
    padding: 18px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-text-prev {
    margin-top: 20px;
    background: none;
    border: none;
    font-size: 14px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    display: block;
    width: 100%;
}


/* --------------------------------------------------------------------------
   Step 3: Payment Overlay & Phone Layout Fix
   -------------------------------------------------------------------------- */
.payment-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 85;
    /* Updated Z-Index */
    padding-top: 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* FIX: Mobile Phone Input Overflow - Premium Redesign */
.phone-input-group {
    display: flex;
    gap: 4px;
    /* Reduced gap */
    background: #fafafa;
    padding: 6px;
    /* Reduced padding */
    border-radius: 12px;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't add to width */
}

.phone-input-group select,
.phone-input-group input {
    min-width: 0;
    /* Critical: allow shrinking below content size */
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 0 !important;
    /* Minimal side padding */
    text-align: center;
    text-align-last: center;
    font-size: 16px;
    /* Prevent iOS zoom */
    background: #fff;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.phone-input-group input:focus,
.phone-input-group select:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.page-new-year .phone-input-group input:focus,
.page-new-year .phone-input-group select:focus {
    border-color: #ff5050;
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.1);
}

.page-lifetime .phone-input-group input:focus,
.page-lifetime .phone-input-group select:focus {
    border-color: #7c4dff;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.page-gunghap .phone-input-group input:focus,
.page-gunghap .phone-input-group select:focus {
    border-color: #ff4081;
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}


.price-box {
    margin-bottom: 40px;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
}

.price-row.discount {
    margin-bottom: 20px;
    color: #ff5050;
    font-weight: bold;
}

.page-lifetime .price-row.discount {
    color: #7c4dff;
}

.page-gunghap .price-row.discount {
    color: #ff4081;
}

.discount-badge {
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.page-new-year .discount-badge {
    background: #ff5050;
}

.page-lifetime .discount-badge {
    background: #7c4dff;
}

.page-gunghap .discount-badge {
    background: #ff4081;
}


.price-total {
    border-top: 2px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-total .label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.price-total .amount {
    font-weight: 800;
    font-size: 26px;
    color: #111;
}

.btn-final-pay {
    width: 100%;
    padding: 20px;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-new-year .btn-final-pay {
    background: #2CB4E0;
    box-shadow: 0 8px 20px rgba(44, 180, 224, 0.3);
}

.page-lifetime .btn-final-pay {
    background: #7c4dff;
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.3);
}

.page-gunghap .btn-final-pay {
    background: #ff4081;
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.3);
}

.agreement-check {
    font-size: 13px;
    color: #666;
    padding: 0 10px;
}

.agreement-check label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.agreement-check input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* --------------------------------------------------------------------------
   Analyzing Overlay (Mockup)
   -------------------------------------------------------------------------- */
.analyzing-overlay {
    background: #fff;
    z-index: 20000;
}

/* --------------------------------------------------------------------------
   Modal Styles (Common)
   -------------------------------------------------------------------------- */
.sk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sk-modal-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #333;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #333;
    font-size: 30px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Wait Button
   -------------------------------------------------------------------------- */
#btn-wait-nologin {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

/* Poll Cancel Area */
#poll-cancel-area {
    text-align: center;
    margin-top: 15px;
    display: none;
}

#poll-cancel-area a {
    color: #888;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

#poll-cancel-area a:hover {
    color: #fff;
}
/* --------------------------------------------------------------------------
   Integrated Fortune Pages (Today & Past Life Refactor)
   -------------------------------------------------------------------------- */

/* Gender Selection - Specific Color Override */
/* Male - Blue Theme */
.radio-group-modern input[value='��']:checked + span,
.radio-group-modern input[value='male']:checked + span {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    color: #1976d2 !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

/* Female - Red/Pink Theme */
.radio-group-modern input[value='��']:checked + span,
.radio-group-modern input[value='female']:checked + span {
    background: #fce4ec !important;
    border-color: #e91e63 !important;
    color: #c2185b !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}

/* General Layout Fixes for Toggle/Radio that were inline */
.radio-group-modern {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 12px;
    margin-top: 5px;
}
.radio-group-modern label {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}
.radio-group-modern span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px; /* Taller touch target */
    border-radius: 8px;
    font-size: 15px;
    color: #888;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}
.radio-group-modern input:checked + span {
    background: #fff;
    color: #111;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Toggle Text Group Refined */
.toggle-text-group { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.toggle-text-group label { 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    gap: 6px; 
}
.toggle-text-group input { 
    margin: 0; 
    cursor: pointer; 
    accent-color: #333; 
    width: 16px; 
    height: 16px; 
}
.toggle-text-group span { 
    font-size: 14px; 
    color: #555; 
    font-weight: 500;
}
.toggle-text-group dt { 
    color: #e0e0e0; 
    font-size: 12px; 
    margin: 0 5px; 
}
.toggle-text-group input:checked + span {
    color: #111;
    font-weight: bold;
}

/* Page Specific Themes */

/* Today's Fortune (Daily) */
.page-today-fortune .btn-pay-submit {
    background: linear-gradient(135deg, #FF6B6B, #EE4D4D);
    box-shadow: 0 8px 20px rgba(238, 77, 77, 0.3);
}
.page-today-fortune .chk-premium input:checked {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

/* Past Life (Premium) */
.page-past-life .btn-pay-submit {
    background: linear-gradient(135deg, #6C38F7, #4521D7);
    box-shadow: 0 8px 20px rgba(108, 56, 247, 0.3);
}
.page-past-life .chk-premium input:checked {
    background-color: #6C38F7;
    border-color: #6C38F7;
}

/* Smooth Fade In removed to prevent JS conflict */
.sk-modal-overlay {
    /* animation: fadeInModal 0.3s ease-out; */
}

/* Robust Gender Selection Override (Fix for Encoding) */
.radio-group-modern label:nth-of-type(1) input:checked + span {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    color: #1976d2 !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

.radio-group-modern label:nth-of-type(2) input:checked + span {
    background: #fce4ec !important;
    border-color: #e91e63 !important;
    color: #c2185b !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}


/* Special Gender Selection Class (Avoids Conflict) */
.radio-group-gender {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 12px;
    margin-top: 5px;
}
.radio-group-gender label {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}
.radio-group-gender input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-group-gender span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 8px;
    font-size: 15px;
    color: #888;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}
/* Male (1st) */
.radio-group-gender label:nth-of-type(1) input:checked + span {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    color: #1976d2 !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}
/* Female (2nd) */
.radio-group-gender label:nth-of-type(2) input:checked + span {
    background: #fce4ec !important;
    border-color: #e91e63 !important;
    color: #c2185b !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
}

