* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 40px 35px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.page-card {
    max-width: 800px;
}

.card:hover {
    transform: translateY(-5px);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.nav-brand {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #ffd200;
    background: rgba(255, 215, 0, 0.1);
}

.nav-links a.active {
    color: #ffd200;
    background: rgba(255, 215, 0, 0.15);
}

h1 {
    text-align: center;
    color: #ffffff;
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 span {
    font-weight: 700;
    background: linear-gradient(90deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

h2 {
    color: #ffd200;
    font-size: 22px;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

h3 {
    color: #ffd200;
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-weight: 500;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Password output */
.password-output {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 25px;
    transition: border-color 0.3s;
}

.password-output:focus-within {
    border-color: #ffd200;
}

#password {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    outline: none;
    width: 100%;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#password::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
    margin-left: 12px;
}

.copy-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    color: #ffd200;
    border-color: #ffd200;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: rgba(0, 255, 150, 0.25);
    color: #00ff96;
    border-color: #00ff96;
}

/* Settings */
.settings {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
}

.setting-row label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
}

.setting-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ffd200;
    cursor: pointer;
    filter: drop-shadow(0 0 4px rgba(255, 210, 0, 0.3));
}

.setting-row input[type="range"] {
    width: 140px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    outline: none;
    transition: background 0.3s;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f7971e, #ffd200);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f7971e, #ffd200);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.length-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    color: #ffd200;
    font-size: 22px;
    text-shadow: 0 0 20px rgba(255, 210, 0, 0.2);
}

.generate-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a2e;
    background: linear-gradient(90deg, #f7971e, #ffd200);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(255, 210, 0, 0.3);
    text-transform: uppercase;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 45px rgba(255, 210, 0, 0.5);
}

.generate-btn:active {
    transform: scale(0.97);
}

/* Strength */
.strength {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.strength-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.strength-bars {
    display: flex;
    gap: 6px;
    flex: 1;
}

.strength-bars .bar {
    height: 6px;
    flex: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.4s;
}

.strength-bars .bar.active.weak {
    background: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}
.strength-bars .bar.active.medium {
    background: #ffa502;
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.4);
}
.strength-bars .bar.active.strong {
    background: #2ed573;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.4);
}
.strength-bars .bar.active.very-strong {
    background: #1dd1a1;
    box-shadow: 0 0 15px rgba(29, 209, 161, 0.4);
}

.strength-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 700;
    min-width: 90px;
    text-align: right;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ☕ Donate Section */
.donate-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.coffee-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff813f, #ffd200);
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 129, 63, 0.3);
    letter-spacing: 0.5px;
}

.coffee-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(255, 129, 63, 0.5);
}

.coffee-btn:active {
    transform: scale(0.97);
}

.donate-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

/* 📝 Content Block - For SEO & AdSense */
.content-block {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 16px;
}

.content-block p {
    margin-bottom: 16px;
}

.content-block ul {
    margin: 12px 0 20px 20px;
    list-style: none;
    padding: 0;
}

.content-block ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.content-block ul li::before {
    content: "•";
    color: #ffd200;
    font-size: 20px;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 6px;
}

.content-block a {
    color: #ffd200;
    text-decoration: none;
    transition: color 0.3s;
}

.content-block a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.content-block h2 {
    color: #ffd200;
    font-size: 24px;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.content-block h2:first-of-type {
    margin-top: 0;
}

.content-block h3 {
    color: #ffd200;
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-weight: 500;
}

.content-block strong {
    color: #ffffff;
}

/* Content pages */
.content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 16px;
}

.content p {
    margin-bottom: 15px;
}

.content ul {
    list-style: none;
    padding: 0;
}

.content ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-content h2 {
    margin-top: 25px;
}

.legal-content p {
    margin-bottom: 10px;
}

/* Contact page - centered email */
.contact-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.contact-info-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.contact-item-center {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px 50px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.contact-item-center:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.contact-item-center .contact-icon {
    font-size: 42px;
}

.contact-item-center strong {
    color: #fff;
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item-center p {
    margin: 0;
}

.email-link {
    color: #ffd200;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.email-link:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Legacy contact styles (if any) */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    transition: background 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 28px;
}

.contact-item strong {
    color: #fff;
    display: block;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #ffd200;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffd200;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
}

.privacy-highlight {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    color: #ffd200;
    margin-top: 30px;
}

/* Footer */
.footer {
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a,
.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 8px;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer a:hover {
    color: #ffd200;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 25px 20px;
        max-width: 100%;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
        gap: 10px;
    }
    .nav-links a {
        font-size: 12px;
        padding: 4px 8px;
    }
    #password {
        font-size: 20px;
    }
    .setting-row {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .setting-row input[type="range"] {
        width: 100px;
    }
    .length-value {
        min-width: 30px;
        font-size: 18px;
    }
    h1 {
        font-size: 26px;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .contact-item {
        padding: 14px;
    }
    .contact-item-center {
        padding: 20px 30px;
        flex-direction: column;
        text-align: center;
    }
    .contact-item-center .contact-icon {
        font-size: 36px;
    }
    .email-link {
        font-size: 18px;
    }
    .coffee-btn {
        font-size: 16px;
        padding: 10px 24px;
    }
    .content-block {
        font-size: 15px;
        line-height: 1.7;
    }
    .content-block h2 {
        font-size: 20px;
    }
    .content-block ul li {
        padding: 5px 0 5px 20px;
    }
}
.content a,
.legal-content a {
    color: #ffd200; /* Фирменный желтый цвет сайта */
    text-decoration: none;
    transition: color 0.3s;
}

.content a:hover,
.legal-content a:hover {
    color: #ffffff; /* Белый цвет при наведении */
    text-decoration: underline;
}