:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #2b0910 100%);
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --accent-glow: rgba(225, 29, 72, 0.35);
    --display-bg: rgba(15, 23, 42, 0.6);
    --checkbox-bg: rgba(15, 23, 42, 0.4);
    --checkbox-border: #334155;
    --ad-bg: rgba(30, 41, 59, 0.4);
    --ad-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #ffe4e6 0%, #f1f5f9 100%);
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(226, 232, 240, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --accent-glow: rgba(225, 29, 72, 0.25);
    --display-bg: #f8fafc;
    --checkbox-bg: #f1f5f9;
    --checkbox-border: #cbd5e1;
    --ad-bg: rgba(255, 255, 255, 0.65);
    --ad-border: rgba(203, 213, 225, 0.8);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-gradient);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    color: gray;
    text-decoration: none; /* volitelné – odstraní podtržení */
}

.background-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}

.glow-1 {
width: 380px;
    height: 380px;
    background: #e11d48;
    top: -60px;
    left: -60px;
    animation: floatGlow1 8s ease-in-out infinite alternate;
}

.glow-2 {
    width: 420px;
    height: 420px;
    background: #9f1239;
    bottom: -100px;
    right: -100px;
    animation: floatGlow2 10s ease-in-out infinite alternate;
}

.page-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 580px;
    flex-shrink: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    // color: var(--text-muted);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    // color: var(--text-main);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-display-wrapper {
    background: var(--display-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.password-display {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    word-break: break-all;
    user-select: all;
    color: var(--text-main);
    max-height: 120px;
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.btn-copy {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.strength-meter-container {
    margin-bottom: 28px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.strength-text {
    font-weight: 600;
    color: var(--text-main);
}

.meter-bar {
    height: 6px;
    background: var(--checkbox-bg);
    border-radius: 10px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.option-group {
    margin-bottom: 24px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.length-badge {
    background: var(--accent);
    color: white;
    font-family: var(--font-mono);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--checkbox-border);
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--checkbox-bg);
    border: 1px solid var(--checkbox-border);
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.checkbox-card:hover {
    border-color: var(--accent);
}

.checkbox-card input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--checkbox-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s;
}

.checkbox-card input:checked + .custom-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
}

.checkbox-label .title {
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label .subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.security-rules h2 {
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.security-rules h2 i {
    color: var(--accent);
}

.security-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rule-card {
    background: var(--checkbox-bg);
    border: 1px solid var(--checkbox-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s;
}

.rule-card:hover {
    border-color: var(--accent);
}

.rule-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(225, 29, 72, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 4px;
}

.rule-card h3 {
    font-size: 14px;
    font-weight: 600;
}

.rule-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ad-banner {
    width: 180px;
    height: 600px;
    position: sticky;
    top: 20px;
    flex-shrink: 0;
}

.ad-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--text-muted);
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ad-bg);
    border: 2px dashed var(--ad-border);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.ad-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ad-placeholder span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder small {
    margin-top: 10px;
    font-size: 11px;
    opacity: 0.7;
    font-family: var(--font-mono);
}

.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ad-banner {
        width: 100%;
        max-width: 580px;
        height: 120px;
        position: static;
    }

    .ad-placeholder {
        padding: 12px;
        flex-direction: row;
        gap: 15px;
    }

    .ad-icon {
        margin-bottom: 0;
        font-size: 24px;
    }

    .ad-placeholder span {
        font-size: 12px;
    }

    .ad-placeholder small {
        margin-top: 0;
        display: block;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
    }
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .password-display-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .action-buttons {
        justify-content: flex-end;
    }
    .ad-banner {
        height: 100px;
    }
}





@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatGlow1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }
    100% {
        transform: translate(40px, 30px) scale(1.15);
        opacity: 0.5;
    }
}

@keyframes floatGlow2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-30px, -40px) scale(1.2);
        opacity: 0.45;
    }
}



