.lokah-membership-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lokah-membership-wrap h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

/* 身分選項卡片 */
.lokah-identity-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lokah-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lokah-option:hover {
    border-color: #4a7c59;
    background: #f8fdf9;
}

.lokah-option.selected {
    border-color: #4a7c59;
    background: #f0f8f2;
}

.lokah-option h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #333;
}

.lokah-option .lokah-fee {
    margin: 0;
    font-size: 1em;
    color: #555;
}

.lokah-option .lokah-fee strong {
    color: #4a7c59;
    font-size: 1.2em;
}

.lokah-option .lokah-fee-renewal {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    color: #888;
}

/* 分隔線 */
.lokah-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.lokah-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.lokah-divider span {
    background: #fff;
    padding: 0 16px;
    position: relative;
    color: #999;
}

/* 捐贈選項 */
.lokah-donation-option {
    border-style: dashed;
}

.lokah-donation-option p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

/* 步驟 2：表單 */
.lokah-selected-type {
    background: #f0f8f2;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lokah-selected-type #lokah-selected-label {
    font-weight: 600;
    color: #333;
}

.lokah-selected-type #lokah-selected-amount {
    color: #4a7c59;
    font-weight: 700;
}

.lokah-selected-type #lokah-change-type {
    margin-left: auto;
    color: #666;
    font-size: 0.9em;
}

.lokah-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lokah-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
}

.lokah-field label .required {
    color: #e53935;
}

.lokah-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.lokah-field input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}

/* 按鈕 */
.lokah-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.lokah-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s;
}

.lokah-btn-primary {
    background: #4a7c59;
    color: #fff;
}

.lokah-btn-primary:hover {
    background: #3d6a4b;
}

.lokah-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.lokah-btn-secondary:hover {
    background: #d0d0d0;
}

.lokah-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 錯誤訊息 */
.lokah-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #c62828;
    font-size: 0.95em;
}

/* 付款結果頁 */
.lokah-result-page {
    text-align: center;
    padding: 40px 20px;
}

.lokah-result-card {
    max-width: 500px;
    margin: 0 auto;
}

.lokah-result-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #4a7c59;
    color: #fff;
    font-size: 2em;
    margin-bottom: 16px;
}

.lokah-result-table {
    margin: 20px auto;
    text-align: left;
    border-collapse: collapse;
}

.lokah-result-table th,
.lokah-result-table td {
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
}

.lokah-result-table th {
    color: #666;
    font-weight: 500;
}

/* 會員狀態頁 */
.lokah-status-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
}

.lokah-status-active {
    border-color: #c8e6c9;
    background: #f8fdf9;
}

.lokah-status-expired {
    border-color: #ffcdd2;
    background: #fff8f8;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.status-badge.active {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-badge.expired {
    background: #ffcdd2;
    color: #c62828;
}

.lokah-status-card table {
    width: 100%;
    margin: 16px 0;
}

.lokah-status-card th,
.lokah-status-card td {
    padding: 8px 0;
    text-align: left;
}

.lokah-renewal-notice {
    margin-top: 16px;
    color: #e65100;
    font-weight: 500;
}

/* RWD */
@media (max-width: 600px) {
    .lokah-membership-wrap {
        padding: 12px;
    }

    .lokah-actions {
        flex-direction: column;
    }

    .lokah-btn {
        width: 100%;
    }

    .lokah-selected-type {
        flex-wrap: wrap;
    }
}
