/* ═══════════════════════════════════════════════════════════
   My Cococure — Customer-Facing Profile Page
   Dark theme matching Cococure brand
   ═══════════════════════════════════════════════════════════ */

:root {
    --cp-bg:        #050505;
    --cp-surface:   #0a0a0a;
    --cp-card:      #111111;
    --cp-border:    #1a1a1a;
    --cp-gold:      #c9a96e;
    --cp-gold-dim:  rgba(201, 169, 110, 0.15);
    --cp-text:      #faf7f0;
    --cp-text-dim:  rgba(250, 247, 240, 0.6);
    --cp-text-mute: rgba(250, 247, 240, 0.3);
    --cp-green:     #22c55e;
    --cp-orange:    #f59e0b;
    --cp-red:       #ef4444;
    --cp-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cp-radius:    12px;
}

.coco-cp-app {
    font-family: var(--cp-font);
    background: var(--cp-bg);
    color: var(--cp-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Loading */
.coco-cp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    color: var(--cp-text-dim);
}

.coco-cp-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--cp-border);
    border-top-color: var(--cp-gold);
    border-radius: 50%;
    animation: cp-spin 0.8s linear infinite;
}

@keyframes cp-spin {
    to { transform: rotate(360deg); }
}

/* ── Login Screen ─────────────────────────────────────── */

.cp-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

.cp-login-logo {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--cp-gold);
    margin-bottom: 12px;
}

.cp-login-tagline {
    font-size: 15px;
    color: var(--cp-text-dim);
    margin-bottom: 40px;
}

.cp-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

.cp-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.cp-login-btn:hover { opacity: 0.85; }

.cp-login-btn--google {
    background: #fff;
    color: #333;
}

.cp-login-btn--apple {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}

.cp-login-privacy {
    margin-top: 24px;
    font-size: 12px;
    color: var(--cp-text-mute);
}

/* ── Dashboard ────────────────────────────────────────── */

.cp-dashboard {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* Header */
.cp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.cp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cp-gold);
}

.cp-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cp-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--cp-gold);
}

.cp-greeting {
    font-size: 16px;
    font-weight: 600;
}

.cp-tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Loyalty Card */
.cp-loyalty-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    border: 1px solid var(--cp-gold);
    border-radius: var(--cp-radius);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.cp-loyalty-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
}

.cp-loyalty-tier-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cp-gold);
    margin-bottom: 8px;
}

.cp-loyalty-stats {
    font-size: 14px;
    color: var(--cp-text-dim);
    margin-bottom: 16px;
}

.cp-loyalty-progress {
    background: var(--cp-border);
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cp-loyalty-progress-bar {
    height: 100%;
    border-radius: 6px;
    background: var(--cp-gold);
    transition: width 0.5s ease;
}

.cp-loyalty-progress-label {
    font-size: 12px;
    color: var(--cp-text-mute);
}

/* Section */
.cp-section {
    margin-bottom: 24px;
}

.cp-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cp-gold);
    margin-bottom: 12px;
    font-weight: 700;
}

/* Cards */
.cp-card {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    padding: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cp-card:hover {
    border-color: rgba(201, 169, 110, 0.3);
}

.cp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cp-card-title {
    font-size: 14px;
    font-weight: 600;
}

.cp-card-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.cp-card-sub {
    font-size: 13px;
    color: var(--cp-text-dim);
}

/* Pending action cards */
.cp-action-card {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--cp-radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cp-action-card:hover {
    background: rgba(245, 158, 11, 0.1);
}

.cp-action-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-orange);
}

.cp-action-arrow {
    color: var(--cp-orange);
    font-size: 18px;
}

/* Responsive */
@media (min-width: 768px) {
    .cp-dashboard {
        max-width: 520px;
    }
}
