/* ===== PK VAULT — Design System ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* ── Light Theme (Rose Gold + Ivory) ── */
    --bg-primary: #FFFFF0;
    --bg-secondary: #FFF8F0;
    --bg-card: #FFFFFF;
    --accent-primary: #B76E79;
    --accent-primary-rgb: 183, 110, 121;
    --accent-hover: #A35D68;
    --accent-light: #D4A0A8;
    --accent-lighter: rgba(183, 110, 121, 0.08);
    --accent-dark: #9A4F5A;
    --text-primary: #2D2D2D;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: rgba(183, 110, 121, 0.15);
    --shadow-sm: 0 2px 8px rgba(183, 110, 121, 0.08);
    --shadow-md: 0 4px 20px rgba(183, 110, 121, 0.12);
    --shadow-lg: 0 8px 40px rgba(183, 110, 121, 0.18);
    --shadow-hover: 0 12px 48px rgba(183, 110, 121, 0.22);

    /* ── Wine Red + Champagne Gold (Accents) ── */
    --wine-red: #722F37;
    --wine-dark: #4A1B24;
    --champagne: #F1E5AC;
    --champagne-light: #F7F0D0;

    /* ── Typography ── */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Spacing ── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* ── Transitions ── */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Private / Dark Theme ── */
[data-theme="private"] {
    --bg-primary: #120A14;
    --bg-secondary: #1A0E1C;
    --bg-card: #221528;
    --accent-primary: #8E4585;
    --accent-primary-rgb: 142, 69, 133;
    --accent-hover: #A355A0;
    --accent-light: #B07AAC;
    --accent-lighter: rgba(142, 69, 133, 0.12);
    --accent-dark: #6B3366;
    --text-primary: #FADADD;
    --text-secondary: #C8A0C6;
    --text-muted: #8A6A88;
    --border-color: rgba(142, 69, 133, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 48px rgba(142, 69, 133, 0.3);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background var(--transition-slow), color var(--transition-slow);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    outline: none;
    transition: all var(--transition-fast);
}

input,
textarea {
    font-family: var(--font-body);
    outline: none;
    transition: all var(--transition-fast);
}

img {
    display: block;
    max-width: 100%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== BUTTON SYSTEM ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: scale(0);
    border-radius: inherit;
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.btn:active::after {
    transform: scale(4);
    opacity: 1;
    transition: 0s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #FFF;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--accent-primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--accent-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--accent-lighter);
    border-color: var(--accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--accent-primary);
    background: var(--accent-lighter);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
}

/* ===== INPUT SYSTEM ===== */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.input-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    padding: 0 6px;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.75rem;
    color: var(--accent-primary);
}

/* ===== CARD SYSTEM ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* ===== TOAST / NOTIFICATION ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    max-width: 380px;
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #E53935;
}

.toast.info {
    border-left: 4px solid var(--accent-primary);
}