/* ── Privé Membership Plugin Styles ─────────────────────────────────────── */

:root {
    --prive-gold:    #c9a96e;
    --prive-dark:    #1a1a1a;
    --prive-white:   #ffffff;
    --prive-bg:      #f8f5f0;
    --prive-border:  #e8ddd0;
    --prive-text:    #2d2d2d;
    --prive-muted:   #888;
    --prive-success: #2e7d32;
    --prive-error:   #c62828;
    --prive-info:    #1565c0;
    --prive-radius:  10px;
    --prive-shadow:  0 4px 24px rgba(0,0,0,0.08);
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.prive-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: 'Georgia', serif;
    color: var(--prive-text);
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.prive-card {
    background: var(--prive-white);
    border: 1px solid var(--prive-border);
    border-radius: var(--prive-radius);
    box-shadow: var(--prive-shadow);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}
.prive-card-header {
    background: var(--prive-dark);
    padding: 32px 40px 28px;
    text-align: center;
}
.prive-card-header h2 {
    color: var(--prive-gold);
    font-size: 26px;
    letter-spacing: 6px;
    font-weight: 400;
    margin: 0 0 6px;
    font-family: 'Georgia', serif;
}
.prive-card-header p {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    letter-spacing: 1px;
    margin: 0;
}
.prive-card-body {
    padding: 36px 40px 32px;
}
.prive-card-footer {
    text-align: center;
    padding: 16px;
    border-top: 1px solid var(--prive-border);
    margin-top: 24px;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */
.prive-field {
    margin-bottom: 20px;
}
.prive-field label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--prive-muted);
    margin-bottom: 6px;
    font-family: sans-serif;
}
.prive-field input[type="text"],
.prive-field input[type="email"],
.prive-field input[type="password"],
.prive-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--prive-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Georgia', serif;
    color: var(--prive-text);
    background: var(--prive-white);
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.prive-field input:focus,
.prive-field select:focus {
    outline: none;
    border-color: var(--prive-gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.prive-input-disabled {
    background: var(--prive-bg) !important;
    color: var(--prive-muted) !important;
    cursor: not-allowed !important;
}
.prive-remember {
    margin-bottom: 24px;
}
.prive-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--prive-muted);
    cursor: pointer;
    font-family: sans-serif;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.prive-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.prive-btn-primary {
    background: var(--prive-dark);
    color: var(--prive-gold);
    border-color: var(--prive-dark);
}
.prive-btn-primary:hover {
    background: #2a2a2a;
    color: var(--prive-gold);
    text-decoration: none;
}
.prive-btn-outline {
    background: transparent;
    color: var(--prive-dark);
    border-color: var(--prive-border);
}
.prive-btn-outline:hover {
    border-color: var(--prive-dark);
    text-decoration: none;
    color: var(--prive-dark);
}
.prive-btn-full {
    width: 100%;
    text-align: center;
    display: block;
}
.prive-btn-sm {
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: 1px;
}
.prive-btn:disabled,
.prive-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.prive-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
    margin-bottom: 20px;
    line-height: 1.5;
}
.prive-alert-error {
    background: #fff5f5;
    color: var(--prive-error);
    border: 1px solid #ffcdd2;
}
.prive-alert-success {
    background: #f1f8f1;
    color: var(--prive-success);
    border: 1px solid #c8e6c9;
}
.prive-alert-info {
    background: #f0f4ff;
    color: var(--prive-info);
    border: 1px solid #c5cae9;
}

/* ── Dashboard header ────────────────────────────────────────────────────── */
.prive-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.prive-dashboard-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: 3px;
    font-weight: 400;
    color: var(--prive-dark);
}
.prive-dashboard-header p {
    margin: 0;
    color: var(--prive-muted);
    font-size: 13px;
    font-family: sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.prive-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.prive-stat-card {
    background: var(--prive-white);
    border: 1px solid var(--prive-border);
    border-radius: var(--prive-radius);
    padding: 20px 24px;
    text-align: center;
}
.prive-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--prive-dark);
    line-height: 1;
    margin-bottom: 6px;
}
.prive-stat-pending { color: #e65100; }
.prive-stat-success { color: var(--prive-success); }
.prive-stat-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--prive-muted);
    font-family: sans-serif;
}

/* ── Search / filter ──────────────────────────────────────────────────────── */
.prive-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.prive-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--prive-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
}
.prive-search-input:focus {
    outline: none;
    border-color: var(--prive-gold);
}
.prive-select-filter {
    padding: 10px 14px;
    border: 1px solid var(--prive-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
    background: var(--prive-white);
}

/* ── Table ────────────────────────────────────────────────────────────────── */
.prive-table-wrap {
    background: var(--prive-white);
    border: 1px solid var(--prive-border);
    border-radius: var(--prive-radius);
    overflow: hidden;
    box-shadow: var(--prive-shadow);
}
.prive-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 14px;
}
.prive-table thead tr {
    background: var(--prive-dark);
    color: rgba(255,255,255,0.7);
}
.prive-table thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.prive-table tbody tr {
    border-bottom: 1px solid var(--prive-border);
    transition: background 0.15s;
}
.prive-table tbody tr:last-child { border-bottom: none; }
.prive-table tbody tr:hover { background: var(--prive-bg); }
.prive-table td {
    padding: 14px 16px;
    color: var(--prive-text);
    vertical-align: middle;
}
.prive-table td strong {
    color: var(--prive-dark);
}

/* ── Code display ─────────────────────────────────────────────────────────── */
.prive-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--prive-dark);
    background: var(--prive-bg);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--prive-border);
}
.prive-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--prive-muted);
    font-size: 14px;
    padding: 2px 4px;
    margin-left: 4px;
    border-radius: 3px;
    transition: all 0.15s;
    vertical-align: middle;
}
.prive-copy-btn:hover { color: var(--prive-dark); background: var(--prive-border); }
.prive-copy-btn.copied { color: var(--prive-success); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.prive-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: sans-serif;
}
.prive-badge-pending {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}
.prive-badge-success {
    background: #e8f5e9;
    color: var(--prive-success);
    border: 1px solid #a5d6a7;
}

/* ── Redeemed date text ───────────────────────────────────────────────────── */
.prive-redeemed-date {
    font-size: 12px;
    color: var(--prive-muted);
    font-family: sans-serif;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.prive-empty-state {
    text-align: center;
    padding: 60px 32px;
    background: var(--prive-white);
    border: 1px solid var(--prive-border);
    border-radius: var(--prive-radius);
}
.prive-empty-icon { font-size: 48px; margin-bottom: 16px; }
.prive-empty-state h3 {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 400;
    margin: 0 0 8px;
    font-family: 'Georgia', serif;
}
.prive-empty-state p {
    color: var(--prive-muted);
    font-family: sans-serif;
    font-size: 14px;
    margin: 0 0 24px;
}
.prive-empty { color: var(--prive-muted); font-family: sans-serif; font-size: 14px; text-align:center; padding: 20px 0; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.prive-link-row {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--prive-border);
    margin-top: 20px;
}
.prive-link-row a {
    color: var(--prive-gold);
    font-family: sans-serif;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.prive-link-row a:hover { text-decoration: underline; }
.prive-logout-link {
    color: var(--prive-muted);
    font-family: sans-serif;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.prive-logout-link:hover { color: var(--prive-error); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .prive-card-body { padding: 24px 20px; }
    .prive-card-header { padding: 24px 20px; }
    .prive-stats-row { grid-template-columns: 1fr; }
    .prive-table { font-size: 13px; }
    .prive-table th, .prive-table td { padding: 10px 10px; }
    .prive-dashboard-header { flex-direction: column; }
}
