/* ========================================
   WITHDRAW PAGE - CSS (환전 페이지)
   ======================================== */

/* Page Header */
.page-header {
    padding: 100px 0 30px;
    text-align: center;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Withdraw Content */
.withdraw-content {
    padding: 0 0 80px;
}

/* Withdraw Layout - Single Column Centered */
.withdraw-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    gap: 25px;
}

/* Form Card */
.withdraw-form-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(25, 15, 50, 0.8) 0%, rgba(15, 10, 31, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 25px;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

/* Current Balance */
.current-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.current-balance .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.current-balance .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple-500);
}

/* Account Info Box */
.account-info-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.account-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--purple-500);
    margin-bottom: 12px;
}

.account-info-header .icon {
    width: 20px;
    height: 20px;
}

.account-info-header .icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--purple-500);
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.account-row .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 60px;
}

.account-row .value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Form Group */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Amount Input */
.amount-input-wrap {
    position: relative;
    margin-bottom: 10px;
}

.amount-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.amount-input:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.amount-input::placeholder {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Amount Buttons */
.amount-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.amount-btn {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

.amount-btn.clear {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.amount-btn.clear:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Notice Box */
.notice-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.notice-box p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 10px;
}

.notice-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-box li {
    position: relative;
    padding-left: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.notice-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffc107;
}

/* Submit Button */
.btn-submit-withdraw {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
}

/* History Accordion */
.withdraw-history-accordion {
    width: 100%;
    background: linear-gradient(180deg, rgba(25, 15, 50, 0.8) 0%, rgba(15, 10, 31, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(168, 85, 247, 0.05);
}

.accordion-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-chevron {
    width: 24px;
    height: 24px;
    color: var(--purple-500);
    transition: transform 0.3s ease;
}

.withdraw-history-accordion.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.withdraw-history-accordion.open .accordion-body {
    max-height: 600px;
}

.accordion-body-inner {
    padding: 0 25px 25px;
}

/* History Table */
.history-table-wrap {
    overflow-x: auto;
    margin-bottom: 15px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.history-table thead {
    background: rgba(168, 85, 247, 0.1);
}

.history-table th {
    padding: 12px 15px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.history-table td {
    padding: 12px 15px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.history-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.05);
}

/* Status Badge */
.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.completed {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-500);
}

.status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status.cancelled {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Pagination */
.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.history-pagination .page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-pagination .page-btn:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--text-primary);
}

.history-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.history-pagination .page-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .withdraw-form-card,
    .withdraw-history-accordion {
        padding: 20px 15px;
    }

    .current-balance .value {
        font-size: 1.1rem;
    }

    .amount-btns {
        grid-template-columns: repeat(3, 1fr);
    }

    .history-table th,
    .history-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .amount-btns {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-row {
        flex-wrap: wrap;
    }
}
