:root {
    --bg-dark: #0a0a1a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-purple: #9d4edd;
    --accent-gold: #ffd700;
    --accent-pink: #ff6b9d;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

main {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
.back-nav {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--accent-gold);
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Privacy Badge */
.privacy-badge {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(255, 107, 157, 0.2));
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    background: linear-gradient(to right, #ff6b9d, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.subtitle {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Calculator Inputs */
.calculator-inputs {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.name-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.heart-divider {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 157, 0.5);
}

.calculate-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Result Container */
.result-container {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.result-container.show {
    opacity: 1;
    transform: translateY(0);
}

.result-container.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.result-hearts {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

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

    25% {
        transform: scale(1.1);
    }

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

.result-score {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Result Tips */
.result-tips {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.result-tips h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.result-tips p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.save-btn:hover {
    border-color: #4ade80;
}

.new-btn:hover {
    border-color: var(--accent-purple);
}

/* Saved Results */
.saved-results {
    animation: fadeIn 0.5s ease;
}

.saved-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.saved-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.saved-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.saved-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-purple);
}

.saved-info {
    flex: 1;
}

.saved-names {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.saved-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-pink);
}

.saved-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.delete-btn {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(248, 113, 113, 0.3);
    transform: scale(1.05);
}

.clear-all-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.5);
}

/* Info Section */
.info-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.info-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-purple);
}

.privacy-list {
    list-style: none;
    margin: 1rem 0;
}

.privacy-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Share Buttons (reuse from main styles) */
.share-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.share-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.share-btn.facebook:hover {
    border-color: #4267B2;
    background: rgba(66, 103, 178, 0.1);
}

.share-btn.download:hover {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
}

.share-btn.copy:hover {
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.1);
}

/* Share Notification */
.share-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.share-notification.success {
    border-color: #4ade80;
}

.share-notification.error {
    border-color: #f87171;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1.5rem;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .calculator-inputs {
        flex-direction: column;
        gap: 1rem;
    }

    .heart-divider {
        transform: rotate(90deg);
    }

    .calculate-btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .result-score {
        font-size: 3.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .saved-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

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

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