/* -------------------------------------------------- */
/* Auth forms (register / login)                       */
/* -------------------------------------------------- */

.cyen-auth-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .cyen-auth-wrap {
        padding: 24px 18px;
        border-radius: 10px;
    }
}

.cyen-auth-field {
    margin-bottom: 18px;
}

.cyen-auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: .03em;
}

.cyen-auth-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 15px;
    color: #111827;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    box-sizing: border-box;
    appearance: none;
}

.cyen-auth-input:focus {
    outline: none;
    border-color: #111827;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}

.cyen-auth-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.cyen-auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.cyen-auth-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #111827;
    flex-shrink: 0;
}

.cyen-auth-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    margin-top: 26px;
    border: none;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .16s ease, transform .1s ease;
}

.cyen-auth-submit:hover {
    background: #1f2937;
}

.cyen-auth-submit:active {
    transform: scale(.98);
}

/* -------------------------------------------------- */
/* Alert messages                                      */
/* -------------------------------------------------- */

.cyen-member-alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.cyen-member-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.cyen-member-alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.cyen-member-mypage {
    max-width: 960px;
    margin: 0 auto;
}

.cyen-point-summary {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.cyen-point-summary-head h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.cyen-point-summary-body {
    display: grid;
    gap: 10px;
}

.cyen-point-balance {
    font-size: 15px;
    color: #111827;
}

.cyen-point-login-bonus {
    display: grid;
    gap: 8px;
}

.cyen-point-login-bonus-meta {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.cyen-point-login-bonus form {
    margin: 0;
}

.cyen-point-login-bonus-button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cyen-point-login-bonus-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.cyen-member-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 20px;
}

.cyen-member-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    background: #fff;
    font-weight: 700;
}

.cyen-member-menu a.is-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.cyen-member-notice {
    display: block;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #991b1b;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.cyen-current-reservations {
    margin: 18px 0 22px;
}

.cyen-current-reservation-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.cyen-current-reservation {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.cyen-current-reservation-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.cyen-current-reservation-date {
    font-weight: 800;
    color: #111827;
}

.cyen-reservation-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cyen-reservation-status.is-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.cyen-reservation-status.is-confirmed {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cyen-current-reservation-meta {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

.cyen-member-order-change-notice {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #78350f;
}

.cyen-member-order-change-notice p {
    margin: 0 0 10px;
    font-weight: 800;
}

.cyen-member-order-change-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #92400e;
    border-radius: 8px;
    background: #92400e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.cyen-confirmed-message,
.cyen-member-confirmed-box {
    margin-top: 10px;
    padding: 10px;
    background: #f0fff4;
    border: 1px solid #8fd19e;
    border-radius: 8px;
    white-space: pre-wrap;
    color: #000;
}

.cyen-member-confirmed-box {
    border-radius: 6px;
}

.cyen-member-confirmed-pre {
    white-space: pre-wrap;
    margin: 8px 0 0;
}

.cyen-favorite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 12px 0 24px;
}

.cyen-favorite-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cyen-favorite-photo {
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
}

.cyen-favorite-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cyen-favorite-body {
    padding: 12px;
}

.cyen-favorite-name {
    font-weight: 800;
    font-size: 16px;
    margin: 0 0 10px;
    color: #111827;
}

.cyen-favorite-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cyen-favorite-actions a,
.cyen-favorite-actions button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.cyen-favorite-actions a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #111827;
    color: #fff;
    border: 1px solid #111827;
}

.cyen-favorite-actions button {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cyen-member-field-control {
    width: 100%;
    max-width: 360px;
}

.cyen-member-point-balance {
    margin: 8px 0 0;
    color: #374151;
}

.cyen-member-point-balance strong {
    color: #111827;
}

.cyen-member-note-control {
    width: 100%;
    max-width: 520px;
}

.cyen-member-timeline-root {
    margin: 8px 0 16px;
}

.cyen-member-option-label {
    display: block;
    margin-bottom: 4px;
}

.cyen-member-request-item {
    margin-bottom: 10px;
}

.cyen-member-request-status-pending {
    color: #dba617;
}

.cyen-member-request-status-confirmed {
    color: green;
    font-weight: bold;
}

.cyen-member-request-status-deleted {
    color: #999;
}

.cyen-member-timeline-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cyen-member-day-tab,
.cyen-member-slot-btn {
    padding: 6px 8px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
}

.cyen-member-day-tab.is-active {
    background: #111;
    color: #fff;
}

.cyen-member-timeline-card {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
}

.cyen-member-timeline-muted {
    margin-top: 8px;
    color: #666;
}

.cyen-member-timeline-shift {
    font-size: 12px;
    color: #666;
}

.cyen-member-timeline-track {
    position: relative;
    height: 62px;
    margin-top: 10px;
    border: 1px solid #e5e5e5;
    background: repeating-linear-gradient(
        to right,
        #fcfcfc 0,
        #fcfcfc calc(100% / var(--cyen-member-slot-count, 1)),
        #ececec calc(100% / var(--cyen-member-slot-count, 1)),
        #ececec calc((100% / var(--cyen-member-slot-count, 1)) + 1px)
    );
}

.cyen-member-timeline-track.is-sold-out {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7f7;
    border-color: #e6b7b7;
}

.cyen-member-sold-out-label {
    color: #b32d2e;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.cyen-member-booked-block {
    position: absolute;
    top: 8px;
    height: 46px;
    background: #fde2e2;
    color: #a00;
    border: 1px solid #f5bcbc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0 4px;
    box-sizing: border-box;
    pointer-events: none;
}

.cyen-member-slot-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cyen-member-slot-select-wrap {
    display: block;
}

.cyen-member-slot-select-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.cyen-member-slot-select {
    width: 100%;
    max-width: 320px;
}

.cyen-service-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    padding: 6px 18px;
    border: 2px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.2s, background 0.2s;
}

.cyen-service-type-btn input[type="radio"] {
    accent-color: currentColor;
}

.cyen-service-type-btn:has(input:checked) {
    border-color: #333;
    background: #333;
    color: #fff;
}
