/* ========== GLOBAL WRAPPER ========== */
.cvp-dashboard-wrapper.cvp-lux {
    max-width: 1000px;
    margin: 40px auto;
    padding: 32px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #090909, #151515);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    color: #f5f5f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}

/* subtle gold glow wrapper */
.cvp-dashboard-wrapper.cvp-lux::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(255, 215, 128, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 215, 0, 0.12), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.cvp-dashboard-wrapper.cvp-lux > * {
    position: relative;
    z-index: 1;
}

/* ========== HEADER ========== */
.cvp-dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

/* SUPER BRIGHT GOLD WELCOME TEXT */
.cvp-welcome {
    margin: 0;
    font-size: 28px;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    color: #ffefc8 !important;
    text-shadow:
        0 0 8px rgba(255, 220, 150, 0.55),
        0 0 14px rgba(255, 215, 128, 0.35) !important;
}

/* SUPER BRIGHT TAGLINE */
.cvp-tagline {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500 !important;
    color: #ffe7b3 !important;
    text-shadow:
        0 0 6px rgba(255, 200, 120, 0.45),
        0 0 10px rgba(255, 150, 80, 0.25) !important;
}

.cvp-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ========== BUTTONS ========== */
.cvp-btn,
.cvp-ghost-btn,
.cvp-danger-btn,
.cvp-icon-btn {
    border-radius: 999px;
    padding: 8px 16px;
    border: 0;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.cvp-icon-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: #ffd76d;
    border: 1px solid rgba(255, 215, 109, 0.6);
}

.cvp-ghost-btn {
    background: transparent;
    color: #ffd76d;
    border: 1px solid rgba(255, 215, 109, 0.5);
}

.cvp-danger-btn {
    background: #bf1e2e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(191, 30, 46, 0.45);
}

/* ========== COPY LINK BUTTON ========== */
.cvp-copied {
    background: #1f1f1f !important;
    color: #8cff9a !important;
    border-color: #8cff9a !important;
    box-shadow: 0 0 12px rgba(140, 255, 154, 0.3);
}

/* ========== SPINNER ========== */
.cvp-spinner {
    border: 3px solid rgba(255, 215, 109, 0.3);
    border-top-color: #ffd76d;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-block;
    animation: cvpSpin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes cvpSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== STATS ========== */
.cvp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.cvp-stat-card {
    background: radial-gradient(circle at top left, rgba(255, 215, 128, 0.16), #111);
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 215, 128, 0.35);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.cvp-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c2c2c2;
    margin-bottom: 6px;
}

.cvp-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffd76d;
}

/* ========== SECTIONS ========== */
.cvp-section {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* BRIGHT SECTION TITLES */
.cvp-section-header h2,
.cvp-campaign-section h3,
.cvp-vote-history h3,
.cvp-profile-section h2 {
    color: #ffe9b6 !important;
    text-shadow: 0 0 8px rgba(255, 215, 128, 0.45);
    font-weight: 700 !important;
}

/* ========== CAMPAIGN ========== */
.cvp-campaign-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: flex-start;
}

.cvp-campaign-media {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #070707;
    min-height: 220px;
}

.cvp-campaign-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cvp-campaign-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: #ffe9b6 !important;
}

/* SHARE BOX */
.cvp-share-box {
    margin-top: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cvp-share-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.cvp-share-input {
    flex: 1;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 15, 15, 0.9);
    color: #fff;
}

.cvp-share-input:focus {
    border-color: rgba(255, 215, 128, 0.9);
    outline: none;
}

.cvp-gold-btn {
    background: linear-gradient(135deg, #ffd76d, #f2b544);
    color: #351f00;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* SHARE PILL */
.cvp-share-pill {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.cvp-share-pill.cvp-wa {
    background: radial-gradient(circle at top left, #25d366, #128c7e);
}

.cvp-share-pill.cvp-x {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cvp-share-pill.cvp-ig {
    background: linear-gradient(45deg, #feda75, #d62976, #4f5bd5);
}

/* TABLE */
.cvp-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 5, 0.9);
}

.cvp-table {
    width: 100%;
    border-collapse: collapse;
}

.cvp-table thead {
    background: linear-gradient(135deg, #1e1e1e, #3b2a0a);
}

.cvp-table th,
.cvp-table td {
    padding: 10px 12px;
    color: #fff;
}

.cvp-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

/* PROFILE SECTION */
.cvp-profile-card {
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cvp-profile-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #fff;
}

/* TOAST */
.cvp-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(80px);
    padding: 10px 16px;
    border-radius: 999px;
    background: #111;
    color: #ffd76d;
    border: 1px solid rgba(255, 215, 109, 0.7);
    opacity: 0;
    transition: all 0.25s ease;
}

.cvp-toast.cvp-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cvp-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cvp-stats-grid {
        grid-template-columns: 1fr;
    }

    .cvp-campaign-grid {
        grid-template-columns: 1fr;
    }
}
