* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ff6b9d;
    --accent-hover: #ff4d7a;
    --accent-light: rgba(255, 107, 157, 0.2);
    --error: #ff3b30;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(28, 28, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.18);
    --romantic-pink: #ff6b9d;
    --romantic-purple: #c084fc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 132, 252, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 107, 157, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: romanticGlow 8s ease-in-out infinite alternate;
}

@keyframes romanticGlow {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease-out;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 48px 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 107, 157, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-container {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#passwordInput {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

#passwordInput:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.eye-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.eye-toggle:hover {
    color: var(--accent);
    background: rgba(255, 107, 157, 0.1);
}

.eye-toggle:active {
    transform: scale(0.95);
}

.eye-icon,
.eye-off-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.password-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 4px;
    opacity: 0.8;
    font-style: italic;
    animation: fadeInHint 0.5s ease-out 0.3s both;
}

@keyframes fadeInHint {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

#passwordInput::placeholder {
    color: var(--text-secondary);
}

.error-message {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    padding-left: 4px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--romantic-purple) 100%);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #a855f7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    animation: fadeInContent 0.6s ease-out;
}

.main-content.hidden {
    display: none;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.header {
    text-align: center;
    margin-bottom: 80px;
}

.title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 36px 28px;
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .title {
        font-size: 48px;
    }
    
    .section {
        padding: 28px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .section p {
        font-size: 16px;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}
.main-text-section {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.text-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.text-content strong {
    color: var(--text-primary);
    font-size: 20px;
}
.button-section {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.emergency-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.emergency-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 12px 40px rgba(255, 107, 157, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 68px;
    backdrop-filter: blur(20px);
}

.emergency-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 60px rgba(255, 107, 157, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.emergency-btn:active {
    transform: translateY(-2px);
}

.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.comment-content {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.comment-content h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--accent);
}

#commentInput {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 24px;
}

#commentInput::placeholder {
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.send-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--romantic-purple) 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.timer-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.6);
    animation: pulse 1s infinite alternate;
}

.timer-text {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.6); }
    100% { box-shadow: 0 0 40px rgba(255, 107, 157, 0.8); }
}

.cancel-btn {
    padding: 12px 32px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid var(--error);
    border-radius: 25px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: var(--error);
    color: white;
}

.success-message {
    text-align: center;
    animation: bounceIn 0.6s ease-out;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 20px;
    color: #34c759;
    font-weight: 600;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.hidden { display: none !important; }

.relationships-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.relationships-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(255, 107, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.relationships-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .relationships-btn {
        top: 16px;
        right: 16px;
        padding: 10px 20px;
        font-size: 14px;
    }
}