/* ═══════════════════════════════════════════════════════
   GoodMood Profile Page — Styles
   ═══════════════════════════════════════════════════════ */

/* ── Profile Sections ────────────────────────────────── */
.gm-profile-section {
    background: #ffffff;
    border: 1px solid #EEEEEE;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s linear;
}

.gm-profile-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gm-profile-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.gm-profile-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: color-mix(in srgb, #FFA44E 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFA44E;
    flex-shrink: 0;
}

.gm-profile-section-header h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0E0E0E;
    margin: 0 0 2px 0;
}

.gm-profile-section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #696969;
    margin: 0;
}

/* ── Profile Form ────────────────────────────────────── */
.gm-profile-form {
    max-width: 600px;
}

.gm-form-row {
    display: flex;
    gap: 1rem;
}

.gm-form-row-half .gm-form-group {
    flex: 1;
}

.gm-form-group {
    margin-bottom: 1.25rem;
}

.gm-form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4rem;
}

.gm-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #0E0E0E;
    background: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.gm-form-group input:focus {
    outline: none;
    border-color: #FFA44E;
    box-shadow: 0 0 0 3px color-mix(in srgb, #FFA44E 15%, transparent);
    background: #ffffff;
}

.gm-form-hint {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.3rem;
}

.gm-profile-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #999;
    margin: 0 0 1rem 0;
}

.gm-profile-meta i {
    margin-right: 4px;
}

/* ── Profile Actions ─────────────────────────────────── */
.gm-profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* ── Feedback Messages ───────────────────────────────── */
.gm-profile-feedback {
    margin-top: 0.75rem;
}

.gm-feedback-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 14px;
    background: color-mix(in srgb, #10b981 10%, transparent);
    border: 1px solid color-mix(in srgb, #10b981 25%, transparent);
    border-radius: 10px;
    color: #065f46;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    animation: gm-fadeIn 0.3s ease;
}

.gm-feedback-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 14px;
    background: color-mix(in srgb, #ef4444 10%, transparent);
    border: 1px solid color-mix(in srgb, #ef4444 25%, transparent);
    border-radius: 10px;
    color: #991b1b;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    animation: gm-fadeIn 0.3s ease;
}

@keyframes gm-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Payment Methods ─────────────────────────────────── */
.gm-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.gm-payment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--gm-bg-secondary, #f8f9fa);
    border-radius: 12px;
    border: 1px solid var(--gm-border, #e0e0e0);
}

.gm-payment-card.is-default {
    border-color: color-mix(in srgb, #FFA44E 40%, transparent);
    background: color-mix(in srgb, #FFA44E 5%, transparent);
}

.gm-payment-card-brand {
    width: 44px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #333;
}

.gm-payment-card-brand .fa-cc-visa {
    color: #1a1f71;
}

.gm-payment-card-brand .fa-cc-mastercard {
    color: #eb001b;
}

.gm-payment-card-brand .fa-cc-amex {
    color: #006fcf;
}

.gm-payment-card-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gm-payment-brand-icon {
    font-size: 2.5em;
    color: var(--gm-primary, #6366f1);
}

.gm-payment-card-number {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.gm-payment-card-expiry {
    display: block;
    font-size: 0.85em;
    color: var(--gm-text-muted, #6b7280);
    margin-top: 2px;
}

.gm-payment-card-exp {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

.gm-payment-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.gm-payment-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #ccc;
}

.gm-payment-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 4px 0;
}

.gm-payment-empty span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
    .gm-profile-section {
        padding: 1.25rem;
    }

    .gm-form-row {
        flex-direction: column;
        gap: 0;
    }

    .gm-profile-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gm-profile-section-header h3 {
        font-size: 1rem;
    }

    .gm-payment-card {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
