:root {
    --bg-primary: #0a0b10;
    --card-bg: rgba(20, 22, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #9aa0a6;

    --accent-primary: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.5);
    --accent-success: #00b894;
    --accent-focus: #a29bfe;

    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6; /* Improved base line height */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Animated Background */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

/* Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Global Page Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(108, 92, 231, 0.1); }
    50% { box-shadow: 0 0 30px rgba(108, 92, 231, 0.3); }
}

/* Animate all glass panels on page load */
.glass-panel {
    animation: fadeInScale 0.8s ease-out both;
}

.legal-page header {
    animation: fadeInUp 0.6s ease-out both;
}

.legal-page section {
    animation: slideInLeft 0.6s ease-out both;
}

.legal-page section:nth-child(1) { animation-delay: 0.1s; }
.legal-page section:nth-child(2) { animation-delay: 0.2s; }
.legal-page section:nth-child(3) { animation-delay: 0.3s; }
.legal-page section:nth-child(4) { animation-delay: 0.4s; }
.legal-page section:nth-child(5) { animation-delay: 0.5s; }

/* Social links hover animation */
.social-links a {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.15);
    opacity: 1;
}

/* Button hover glow */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}


.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e84393 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0984e3 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Container & Typography */
.container {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    z-index: 1;
}

/* Logo & Floating Badges */
.logo-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo-icons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3.5rem; /* Slightly wider to frame the text better */
    margin-bottom: 2px;
    pointer-events: none;
    transform: translateX(-2px); /* Centered more accurately */
}

.floating-badge {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px var(--accent-glow));
    animation: floatingIcon 3s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.shield-badge {
    color: var(--accent-primary);
}

.flag-badge {
    animation-delay: -1.5s;
    font-size: 1.2rem;
}

@keyframes floatingIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

header {
    text-align: center;
    margin-bottom: 2.5rem; /* Improved bottom spacing */
}

h1 {
    margin: 0.3rem 0; /* Slightly tighter */
    font-size: 3rem; /* Slightly larger for premium feel */
    font-weight: 700; /* Less heavy than 800 */
    letter-spacing: -0.03em;
}

header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin: 0.2rem 0 0; /* Tighten top spacing */
    font-weight: 300;
    letter-spacing: 0.02rem;
    line-height: 1.5;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:focus-within {
    box-shadow: 0 0 0 1px var(--accent-focus), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Form Elements */
.FrankPass-text {
    color: var(--accent-primary);
}

.input-group {
    margin-bottom: 1.25rem;
}

.secret-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.secret-label {
    margin-bottom: 0;
}

.row {
    display: flex;
    gap: 1rem;
}

.row .input-group {
    flex: 1;
}

label {
    display: block;
    font-size: 1rem; /* Better visibility */
    font-weight: 500; /* Less bold for better flow */
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0.01rem;
}

label .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.75rem;
}

label .required {
    color: #e84393;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper ion-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.3s;
}

input,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 1.1rem 1.1rem 3.4rem; /* More generous padding */
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
    letter-spacing: 0.02rem;
}

input:focus,
select:focus {
    border-color: var(--accent-focus);
    background: rgba(0, 0, 0, 0.4);
}

input:focus+ion-icon,
.input-wrapper:focus-within>ion-icon:first-child {
    color: var(--accent-primary);
}

select {
    appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.toggle-vis {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: auto;
}

/* Range Slider */
.slider-group {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

#length-val {
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent-focus);
    font-family: var(--font-mono);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    padding: 0;
    border: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Submit Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4834d4 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Output Section */
.output-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.output-section.active {
    opacity: 1;
}

.output-header {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.output-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-glow);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.password-text {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-success);
    word-break: break-all;
    padding-right: 6.5rem; /* Space for action buttons */
    letter-spacing: 0.2rem;
}

.output-actions {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.4rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.copy-btn {
    background: var(--accent-primary);
    color: white;
}

.shoutout-trigger-btn {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-focus);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.copy-btn:hover:not(:disabled) {
    background: var(--accent-focus);
}

.copy-btn:disabled {
    opacity: 0.2;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-success);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}

.toast.show {
    bottom: 30px;
}

/* --- Animated Moving Border --- */
.animated-border {
    position: relative;
    z-index: 1;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #1aa3ff, #8a2be2, #ff00cc, #1aa3ff);
    background-size: 300%;
    z-index: -1;
    border-radius: inherit;
    animation: border-glow 4s linear infinite;
}

@keyframes border-glow {
    0% { background-position: 0 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* Success Shoutout Card */
.shoutout-card {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #0d0d1a;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.4s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.shoutout-card.hidden {
    display: none;
}

.close-card {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-card:hover {
    color: var(--text-primary);
}

.shoutout-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.shoutout-text h4 {
    color: var(--accent-focus);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.shoutout-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.shoutout-icons {
    display: flex;
    gap: 0.8rem;
}

.shoutout-icons a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.shoutout-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* User Guide Section */
.guide-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-guide {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-guide:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-guide.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-focus);
}

.guide-content {
    margin-top: 1.5rem;
    padding: 2rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeIn 0.4s ease;
}

.guide-content h2,
.guide-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-primary);
}

.guide-content h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.guide-content p,
.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.guide-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--accent-success);
}

.btn-hide-guide {
    display: block;
    margin: 2rem auto 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hide-guide:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    text-align: center;
    border-radius: 24px;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--accent-primary);
    margin: 0;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-option ion-icon {
    font-size: 2rem;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.share-option#share-twitter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.share-option#share-whatsapp:hover { color: #25D366; border-color: #25D366; }
.share-option#share-facebook:hover { color: #1877F2; border-color: #1877F2; }
.share-option#share-linkedin:hover { color: #0A66C2; border-color: #0A66C2; }

.copy-link-container {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.copy-link-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #a5b4fc;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    line-height: 1.8;
}

.footer-col ul a, .footer-col p a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-col ul a:hover, .footer-col p a:hover {
    color: var(--text-primary);
}

.social-links, .shoutout-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-links a, .shoutout-links a {
    color: #cbd5e1;
    transition: transform 0.2s, color 0.2s;
}

.social-links a:hover, .shoutout-links a:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
}

footer .creator-credits {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 1rem;
}

footer .creator-credits a {
    color: var(--accent-focus);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer .creator-credits a:hover {
    color: var(--accent-primary);
}

/* Custom Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px var(--accent-primary);
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(20px);
}

.toggle-switch .slider.round {
    border-radius: 24px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}

.hidden {
    display: none !important;
}

/* Waitlist Section */
.waitlist-section {
    margin-top: 2rem;
    text-align: center;
    border-color: rgba(108, 92, 231, 0.3);
    /* subtle accent glow border */
}

.waitlist-section h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.waitlist-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-container iframe {
    background: transparent;
}

/* Footer & Socials */
.footer-grid {
    text-align: left;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul li a:hover {
    color: white !important;
}

.social-links a {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

/* Newsletter & Breach Alert Section */
.breach-alert-section {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}

.breach-alert-section h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.breach-alert-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* FAQ Collapse Button */
.btn-collapse-faq {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1.2rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    color: #a5b4fc;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.btn-collapse-faq:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.btn-collapse-faq:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links, .shoutout-links {
        justify-content: center;
    }

    .footer-col {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-col:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .row {
        flex-direction: column;
        gap: 0;
    }

    .glass-panel {
        padding: 1.2rem;
        margin: 0.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .content-page p {
        font-size: 1.05rem;
    }
}

/* Legal and Content Page Specialized Typography */
.legal-page {
    line-height: 1.75;
    background-attachment: fixed;
}

.content-page {
    max-width: 800px !important;
    margin: 3rem auto !important;
    padding: 3.5rem !important;
    text-align: left;
}

.content-page h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
    letter-spacing: -0.01rem;
}

.content-page h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-focus);
}

.content-page p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01rem;
    word-spacing: 0.05rem;
}

.content-page ul, .content-page ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.content-page strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Adjustments for Content Pages */
@media (max-width: 768px) {
    .content-page {
        padding: 2rem !important;
        margin: 1.5rem auto !important;
    }
    
    .content-page h2 {
        font-size: 1.5rem;
    }
    
    .content-page p {
        font-size: 1.05rem;
    }
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.share-option ion-icon {
    font-size: 1.5rem;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .share-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= NOTIFICATION PREFERENCES ================= */
.notif-pref-section {
    margin-top: 3rem;
    text-align: left;
    padding: 2.5rem;
}

.notif-pref-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.notif-pref-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.notif-toggles {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.notif-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
}

.notif-toggle-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notif-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50%;
}

.notif-toggle-info strong {
    color: var(--text-primary);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.notif-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Custom Toggle Slider (used by notification prefs) */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ================= CLEAN FOOTER (SINGLE-ROW DESIGN) ================= */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    margin-top: 2rem;
    gap: 1.5rem;
    text-align: center;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links-row a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links-row a:hover {
    color: var(--accent-primary);
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-social-row a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.footer-social-row a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .notif-pref-section {
        padding: 1.5rem;
    }
    .notif-toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .toggle-switch {
        align-self: flex-end;
    }
    .footer-links-row {
        gap: 1rem;
    }

    /* FAQ Mobile Fix — reduce padding & font-size so text isn't crushed */
    #faq {
        padding: 1rem !important;
    }
    #faq .faq-item summary {
        font-size: 0.95rem !important;
        padding: 0.75rem !important;
    }
    #faq .faq-item > div {
        font-size: 0.88rem !important;
        padding: 0 0.5rem 0.5rem 0.5rem !important;
        padding-top: 0.75rem !important;
    }
}
