/* ==========================================================================
   Lusofonia Protected Gallery — Account Portal Styles
   v1.4.0 — Área de Conta do Apoiador
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------
 * Variáveis e reset
 * ------------------------------------------------------------- */

.lpg-account-wrap {
    --lpg-dark:       #0d0d1a;
    --lpg-dark2:      #1a1a2e;
    --lpg-dark3:      #252540;
    --lpg-border:     rgba(255, 255, 255, 0.08);
    --lpg-border2:    rgba(255, 255, 255, 0.14);
    --lpg-text:       #f0eef8;
    --lpg-text-muted: rgba(240, 238, 248, 0.55);
    --lpg-gold:       #FFD700;
    --lpg-gold2:      #FFA500;
    --lpg-blue:       #3B82F6;
    --lpg-green:      #22C55E;
    --lpg-radius:     16px;
    --lpg-radius-sm:  10px;
    --lpg-shadow:     0 4px 32px rgba(0, 0, 0, 0.45);
    --lpg-glow-gold:  0 0 32px rgba(255, 215, 0, 0.15);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lpg-text);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ---------------------------------------------------------------
 * Login Card
 * ------------------------------------------------------------- */

.lpg-account-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 16px;
}

.lpg-account-login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, var(--lpg-dark2), var(--lpg-dark3));
    border: 1px solid var(--lpg-border2);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--lpg-shadow), var(--lpg-glow-gold);
    animation: lpg-acc-slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lpg-account-brand {
    text-align: center;
    margin-bottom: 32px;
}

.lpg-account-brand-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.lpg-account-brand-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--lpg-text);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.lpg-account-brand-sub {
    font-size: 14px;
    color: var(--lpg-text-muted);
    margin: 0;
    line-height: 1.5;
}

.lpg-account-login-help {
    text-align: center;
    font-size: 12px;
    color: var(--lpg-text-muted);
    margin: 20px 0 0;
}

/* ---------------------------------------------------------------
 * Form elements
 * ------------------------------------------------------------- */

.lpg-account-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lpg-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lpg-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lpg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.lpg-form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--lpg-border2);
    border-radius: var(--lpg-radius-sm);
    color: var(--lpg-text);
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.lpg-form-input:focus {
    border-color: var(--lpg-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.lpg-form-input::placeholder {
    color: rgba(240, 238, 248, 0.3);
}

.lpg-form-code-input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

.lpg-form-input-sm {
    padding: 9px 12px;
    font-size: 14px;
}

.lpg-form-message {
    font-size: 13px;
    color: var(--lpg-text-muted);
    min-height: 18px;
    margin: 4px 0 0;
    transition: color 0.2s;
}

.lpg-form-message.is-error  { color: #F87171; }
.lpg-form-message.is-success { color: var(--lpg-green); }

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */

.lpg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
    text-decoration: none;
}

.lpg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.lpg-btn-primary {
    background: linear-gradient(135deg, var(--lpg-gold), var(--lpg-gold2));
    color: var(--lpg-dark);
    border-radius: var(--lpg-radius-sm);
    padding: 14px 24px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.lpg-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.40);
}

.lpg-btn-primary:active:not(:disabled) {
    transform: scale(0.97);
}

.lpg-btn-primary-sm {
    background: linear-gradient(135deg, var(--lpg-gold), var(--lpg-gold2));
    color: var(--lpg-dark);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lpg-btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.lpg-btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    color: var(--lpg-text);
    border: 1px solid var(--lpg-border2);
    border-radius: var(--lpg-radius-sm);
    padding: 10px 18px;
    font-size: 14px;
}

.lpg-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lpg-btn-ghost-sm {
    background: rgba(255, 255, 255, 0.07);
    color: var(--lpg-text);
    border: 1px solid var(--lpg-border2);
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lpg-btn-ghost-sm:hover {
    background: rgba(255, 255, 255, 0.14);
}

.lpg-btn-full { width: 100%; }

.lpg-btn-logout {
    margin-left: auto;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 8px;
    color: rgba(240, 238, 248, 0.7);
    white-space: nowrap;
}

/* ---------------------------------------------------------------
 * Dashboard — Header
 * ------------------------------------------------------------- */

.lpg-account-dashboard {
    padding-top: 32px;
}

.lpg-account-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.lpg-account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lpg-gold), var(--lpg-gold2));
    color: var(--lpg-dark);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.lpg-account-header-info {
    flex: 1;
    min-width: 0;
}

.lpg-account-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--lpg-text);
    margin: 0 0 4px;
}

.lpg-account-email,
.lpg-account-phone {
    font-size: 13px;
    color: var(--lpg-text-muted);
    margin: 0 0 2px;
}

/* ---------------------------------------------------------------
 * Tier Card
 * ------------------------------------------------------------- */

.lpg-account-tier-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--lpg-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border: 1px solid transparent;
    transition: transform 0.2s;
}

.lpg-account-tier-card:hover {
    transform: translateY(-2px);
}

.lpg-tier-card-basic {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.08));
    border-color: rgba(59, 130, 246, 0.25);
}

.lpg-tier-card-community {
    background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(234,179,8,0.08));
    border-color: rgba(234, 179, 8, 0.25);
}

.lpg-tier-card-premium {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.08));
    border-color: rgba(34, 197, 94, 0.30);
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.12);
}

.lpg-tier-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lpg-tier-icon { font-size: 32px; line-height: 1; }

.lpg-tier-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--lpg-text);
}

.lpg-tier-sublabel {
    font-size: 12px;
    color: var(--lpg-text-muted);
    margin-top: 2px;
}

.lpg-gift-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.lpg-gift-pending,
.lpg-gift-sent {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.lpg-gift-pending {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    animation: lpg-pulse-green 2.5s ease-in-out infinite;
}

.lpg-gift-sent {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ---------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------- */

.lpg-account-section {
    background: linear-gradient(145deg, var(--lpg-dark2), var(--lpg-dark3));
    border: 1px solid var(--lpg-border);
    border-radius: var(--lpg-radius);
    padding: 24px;
    margin-bottom: 20px;
    animation: lpg-acc-fadeIn 0.4s ease;
}

.lpg-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--lpg-text-muted);
    margin: 0 0 20px;
}

.lpg-badge-unread {
    background: var(--lpg-gold);
    color: var(--lpg-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.lpg-account-empty {
    color: var(--lpg-text-muted);
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* ---------------------------------------------------------------
 * Memorandos Timeline
 * ------------------------------------------------------------- */

.lpg-memorandos-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 24px;
}

.lpg-memorandos-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--lpg-gold), transparent);
    opacity: 0.3;
}

.lpg-memorando {
    position: relative;
    padding: 0 0 20px 20px;
    animation: lpg-acc-fadeIn 0.4s ease;
}

.lpg-memorando:last-child {
    padding-bottom: 0;
}

.lpg-memorando-dot {
    position: absolute;
    left: -17px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lpg-border2);
    border: 2px solid var(--lpg-border2);
    transition: background 0.2s;
}

.lpg-memorando-unread .lpg-memorando-dot {
    background: var(--lpg-gold);
    border-color: var(--lpg-gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.lpg-memorando-body {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--lpg-border);
    border-radius: var(--lpg-radius-sm);
    padding: 14px 16px;
    transition: background 0.2s;
}

.lpg-memorando-unread .lpg-memorando-body {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.15);
}

.lpg-memorando-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lpg-text);
    margin: 0 0 10px;
}

.lpg-memorando-meta {
    font-size: 11px;
    color: var(--lpg-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lpg-memorando-gallery {
    font-weight: 600;
    color: rgba(240, 238, 248, 0.7);
}

.lpg-memorando-new-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--lpg-gold);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
 * Código de acesso
 * ------------------------------------------------------------- */

.lpg-code-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lpg-border);
    border-radius: var(--lpg-radius-sm);
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.lpg-code-card:hover {
    border-color: var(--lpg-border2);
}

.lpg-code-card:last-child {
    margin-bottom: 0;
}

.lpg-code-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lpg-code-gallery-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--lpg-text);
    flex: 1;
}

.lpg-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lpg-tier-basic {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.lpg-tier-community {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.lpg-tier-premium {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.30);
}

.lpg-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lpg-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--lpg-gold);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    user-select: all;
}

.lpg-code-gallery-link {
    font-size: 13px;
    color: rgba(240, 238, 248, 0.6);
    text-decoration: none;
    display: block;
    margin-top: 10px;
    transition: color 0.2s;
}

.lpg-code-gallery-link:hover { color: var(--lpg-gold); }

.lpg-code-date {
    font-size: 12px;
    color: var(--lpg-text-muted);
    margin: 8px 0 0;
}

/* ---------------------------------------------------------------
 * Faturação
 * ------------------------------------------------------------- */

.lpg-billing-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lpg-billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--lpg-border);
    font-size: 14px;
}

.lpg-billing-row:last-child { border-bottom: none; }

.lpg-billing-row span:first-child { color: var(--lpg-text-muted); }
.lpg-billing-row strong { color: var(--lpg-text); font-weight: 600; }

.lpg-order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lpg-order-completed { background: rgba(34,197,94,0.15); color: #4ade80; }
.lpg-order-processing { background: rgba(59,130,246,0.15); color: #60a5fa; }

/* ---------------------------------------------------------------
 * Definições
 * ------------------------------------------------------------- */

.lpg-settings-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lpg-settings-row {
    padding: 14px 0;
}

.lpg-settings-row-border {
    border-top: 1px solid var(--lpg-border);
}

.lpg-inline-edit {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.lpg-inline-edit .lpg-form-input {
    flex: 1;
    min-width: 160px;
}

.lpg-settings-value {
    font-size: 14px;
    color: var(--lpg-text);
    margin: 6px 0 4px;
}

.lpg-settings-note {
    font-size: 12px;
    color: var(--lpg-text-muted);
    margin: 0;
    font-style: italic;
}

/* ---------------------------------------------------------------
 * Animações
 * ------------------------------------------------------------- */

@keyframes lpg-acc-slideUp {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lpg-acc-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lpg-pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15); }
}

.lpg-spin {
    animation: lpg-acc-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes lpg-acc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------
 * Responsividade
 * ------------------------------------------------------------- */

@media (max-width: 520px) {
    .lpg-account-login-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .lpg-account-brand-title { font-size: 22px; }
    .lpg-account-name        { font-size: 18px; }
    .lpg-code-value          { font-size: 20px; letter-spacing: 3px; padding: 8px 14px; }

    .lpg-account-tier-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .lpg-gift-badge { align-items: flex-start; }

    .lpg-inline-edit {
        flex-direction: column;
        align-items: stretch;
    }

    .lpg-btn-logout {
        margin-left: 0;
        width: 100%;
        order: 3;
    }
}
