
.password_gen_section{
    margin-top: 30px;
}

.password_gen_section .tool-section {
    padding: 0 0 60px;
}

.password_gen_section .tool-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ===== CARD ===== */
.password_gen_section .card {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.password_gen_section .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password_gen_section .card-title i {
    color: var(--primary-color);
    font-size: 18px;
}

.password_gen_section .divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* ===== PASSWORD OUTPUT ===== */
.password_gen_section .password-display-wrap {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    transition: border-color 0.3s;
}

.password_gen_section .password-display-wrap:focus-within {
    border-color: var(--primary-color);
}

.password_gen_section .password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.password-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pwd-entropy {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0369a1;
}

[data-theme="dark"] .pwd-entropy {
    background: #0c2340;
    color: #7dd3fc;
}

.password-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-text);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    word-break: break-all;
    line-height: 1.5;
    min-height: 34px;
    cursor: pointer;
    user-select: all;
}

.password-text .char-upper {
    color: #6366f1;
}

.password-text .char-lower {
    color: var(--primary-text);
}

.password-text .char-num {
    color: #f59e0b;
}

.password-text .char-sym {
    color: #ef4444;
}

/* ===== STRENGTH BAR ===== */
.strength-section {
    margin-top: 14px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.strength-label {
    font-size: 12px;
    color: var(--gray-text);
    font-weight: 500;
}

.strength-name {
    font-size: 12px;
    font-weight: 700;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bar {
    flex: 1;
    height: 5px;
    border-radius: 10px;
    background: var(--border);
    transition: background 0.4s;
}

.strength-bar.active-1 {
    background: #ef4444;
}

.strength-bar.active-2 {
    background: #f97316;
}

.strength-bar.active-3 {
    background: #eab308;
}

.strength-bar.active-4 {
    background: #22c55e;
}

.strength-bar.active-5 {
    background: #6366f1;
}

/* ===== ACTION BTNS ===== */
.action-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.password_gen_section .btn-sm {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: Poppins;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    flex: 1;
    justify-content: center;
}

.btn-sm:hover {
    /* background: var(--hover-color); */
    background-color: var(--menu-hover);
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    opacity: 0.88;
    color: #fff;
    background: var(--primary-color);
}

.password_gen_section .btn-generate {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    font-family: Poppins;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-generate:hover {
    opacity: 0.88;
    transform: scale(0.99);
}

.btn-generate i {
    font-size: 18px;
}

/* ===== LENGTH SLIDER ===== */
.slider-section {
    margin-bottom: 20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
}

.slider-value {
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    min-width: 42px;
    text-align: center;
}

.password_gen_section .range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.password_gen_section .range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s;
}

.password_gen_section .range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* ===== TOGGLE OPTIONS ===== */
.password_gen_section .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.password_gen_section .toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-item:hover {
    border-color: var(--primary-color);
    background-color: var(--menu-hover);
    /* background: var(--hover-color); */
}

.toggle-item.checked {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.06);
}

.toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.toggle-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
}

.toggle-sub {
    font-size: 10px;
    color: var(--gray-text);
}

/* Switch */
.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch input {
    display: none;
}

.switch-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 20px;
    transition: 0.3s;
    cursor: pointer;
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.switch-track {
    background: var(--primary-color);
}

.toggle-switch input:checked+.switch-track::after {
    transform: translateX(16px);
}

/* ===== EXCLUDE CHARS ===== */
.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.input-row i {
    color: var(--gray-text);
    font-size: 16px;
}

.input-row input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--primary-text);
    font-size: 13px;
    font-family: monospace;
    outline: none;
}

.input-row input::placeholder {
    color: var(--gray-text);
}

/* ===== BATCH / MODE TABS ===== */
.password_gen_section .tab-nav {
    display: flex;
    gap: 6px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 16px;
}

.password_gen_section .tab-btn {
    flex: 1;
    padding: 9px 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: Poppins;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.password_gen_section .tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.password_gen_section .tab-panel {
    display: none;
}

.password_gen_section .tab-panel.active {
    display: block;
}

/* ===== BATCH OUTPUT ===== */
.password_gen_section .batch-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 340px;
    overflow-y: auto;
}

.batch-list::-webkit-scrollbar {
    width: 4px;
}

.batch-list::-webkit-scrollbar-track {
    background: transparent;
}

.batch-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.password_gen_section .batch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    gap: 10px;
    transition: 0.2s;
}

.batch-item:hover {
    border-color: var(--primary-color);
}

.batch-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-text);
    min-width: 22px;
}

.batch-pwd {
    flex: 1;
    font-size: 13px;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-text);
    font-size: 15px;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    transition: 0.2s;
}

.batch-copy:hover {
    color: var(--primary-color);
    background: var(--hover-color);
}

/* ===== PASSPHRASE ===== */
.password_gen_section .passphrase-display {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    line-height: 1.6;
    word-break: break-all;
    min-height: 60px;
    cursor: pointer;
    user-select: all;
    transition: border-color 0.3s;
}

.passphrase-display .word-part {
    color: #6366f1;
}

.passphrase-display .sep-part {
    color: var(--gray-text);
}

.word-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sep-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.password_gen_section .sep-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: Poppins;
    transition: 0.3s;
}

.sep-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== STRENGTH METER LARGE ===== */
.strength-preview {
    border-radius: 16px;
    padding: 18px;
    background: var(--input-bg);
    border: 1px solid var(--border);
}

.strength-circle-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.strength-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.4s;
}

.strength-circle.s1 {
    background: #fee2e2;
    color: #dc2626;
}

.strength-circle.s2 {
    background: #ffedd5;
    color: #ea580c;
}

.strength-circle.s3 {
    background: #fef9c3;
    color: #ca8a04;
}

.strength-circle.s4 {
    background: #dcfce7;
    color: #16a34a;
}

.strength-circle.s5 {
    background: #ede9fe;
    color: #7c3aed;
}

.strength-info .s-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text);
}

.strength-info .s-desc {
    font-size: 12px;
    color: var(--gray-text);
    margin-top: 2px;
}

.crack-time-label {
    font-size: 11px;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.crack-time-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-text);
    font-family: monospace;
}

/* ===== CHECKER ===== */
.checker-criteria {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criterion {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-text);
    transition: 0.3s;
}

.criterion-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: var(--border);
    color: var(--gray-text);
    transition: 0.3s;
    flex-shrink: 0;
}

.criterion.met .criterion-icon {
    background: #dcfce7;
    color: #16a34a;
}

.criterion.met {
    color: var(--primary-text);
}

/* ===== HISTORY ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.history-list::-webkit-scrollbar {
    width: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.history-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.2s;
}

.history-entry:hover {
    border-color: var(--primary-color);
}

.history-pwd {
    flex: 1;
    font-size: 12px;
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-time {
    font-size: 10px;
    color: var(--gray-text);
    flex-shrink: 0;
}

.empty-state {
    font-size: 12px;
    color: var(--gray-text);
    text-align: center;
    padding: 16px;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.password_gen_section .stat-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-lbl {
    font-size: 10px;
    color: var(--gray-text);
    margin-top: 2px;
}

/* ===== TOAST ===== */
.password_gen_section .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .password_gen_section .tool-grid {
        grid-template-columns: 1fr;
    }

    .header__heading h1 {
        font-size: 26px;
    }

        .password_gen_section .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .action-row {
        flex-wrap: wrap;
    }

        .password_gen_section .btn-sm {
        font-size: 11px;
        padding: 9px 12px;
    }
}



/* ===== HOW TO USE SECTION ===== */
.password_gen_section.password-how-section {
    padding: 30px 0 70px;
    margin-top: 80px;
    background-color: var(--section-bg);
}

.password_gen_section .pg-how-head {
    max-width: 720px;
    margin: 0 auto 26px;
    text-align: center;
}

.password_gen_section .pg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--hover-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.password_gen_section .pg-kicker i {
    font-size: 16px;
}

.password_gen_section .pg-how-head h2 {
    font-size: 32px;
    line-height: 1.25;
    color: var(--primary-text);
    margin-bottom: 10px;
}

.password_gen_section .pg-how-head p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-text);
}

.password_gen_section .pg-how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.password_gen_section .pg-how-card {
    position: relative;
    overflow: hidden;
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
}

.password_gen_section .pg-how-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), transparent 48%);
    opacity: 0;
    transition: 0.3s ease;
}

.password_gen_section .pg-how-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.password_gen_section .pg-how-card:hover::before {
    opacity: 1;
}

.password_gen_section .pg-step-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.password_gen_section .pg-how-card h3 {
    position: relative;
    font-size: 16px;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.password_gen_section .pg-how-card p {
    position: relative;
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-text);
}

.password_gen_section .pg-security-box {
    margin-top: 18px;
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.password_gen_section .pg-security-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.password_gen_section .pg-security-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.password_gen_section .pg-security-left h3 {
    font-size: 16px;
    color: var(--primary-text);
    margin-bottom: 5px;
}

.password_gen_section .pg-security-left p {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.7;
}

.password_gen_section .pg-security-preview {
    min-width: 250px;
    background: var(--input-bg);
    border: 1px dashed var(--primary-color);
    border-radius: 16px;
    padding: 14px 16px;
}

.password_gen_section .pg-security-preview span {
    display: block;
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 600;
    margin-bottom: 6px;
}

.password_gen_section .pg-security-preview strong {
    display: block;
    font-family: "Courier New", monospace;
    color: var(--primary-text);
    font-size: 16px;
    word-break: break-all;
}

[data-theme="dark"] .password_gen_section .pg-security-icon {
    background: #0b2a18;
    color: #4ade80;
}

@media (max-width: 900px) {
    .password_gen_section .pg-how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .password_gen_section .pg-security-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .password_gen_section .pg-security-preview {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 520px) {
    .password_gen_section .pg-how-head h2 {
        font-size: 24px;
    }

    .password_gen_section .pg-how-grid {
        grid-template-columns: 1fr;
    }

    .password_gen_section .pg-how-card {
        padding: 18px;
    }

    .password_gen_section .pg-security-left {
        align-items: flex-start;
    }
}


/* ===== FEATURES SECTION ===== */
.password_gen_section.pg-features-section {
    padding: 30px 0 70px;
}

.password_gen_section .pg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.password_gen_section .pg-feature-card {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
}

.password_gen_section .pg-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: var(--cardhover);
}

.password_gen_section .pg-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.password_gen_section .pg-feature-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.password_gen_section .pg-feature-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.password_gen_section .pg-feature-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.password_gen_section .pg-feature-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.password_gen_section .pg-feature-icon.cyan {
    background: #e0f2fe;
    color: #0284c7;
}

.password_gen_section .pg-feature-card h3 {
    font-size: 16px;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.password_gen_section .pg-feature-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-text);
}

[data-theme="dark"] .password_gen_section .pg-feature-icon {
    background: #141a3a;
    color: #818cf8;
}

[data-theme="dark"] .password_gen_section .pg-feature-icon.green {
    background: #0b2a18;
    color: #4ade80;
}

[data-theme="dark"] .password_gen_section .pg-feature-icon.orange {
    background: #311807;
    color: #fb923c;
}

[data-theme="dark"] .password_gen_section .pg-feature-icon.purple {
    background: #211337;
    color: #a78bfa;
}

[data-theme="dark"] .password_gen_section .pg-feature-icon.red {
    background: #330f0f;
    color: #f87171;
}

[data-theme="dark"] .password_gen_section .pg-feature-icon.cyan {
    background: #082f49;
    color: #38bdf8;
}

@media (max-width: 900px) {
    .password_gen_section .pg-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .password_gen_section .pg-features-grid {
        grid-template-columns: 1fr;
    }

    .password_gen_section .pg-feature-card {
        padding: 18px;
    }
}



/* ===== CONTENT SECTION ===== */
.password_gen_section.pg-content-section {
    padding: 40px 0 70px;
    background-color: var(--section-bg);
}

.password_gen_section .pg-content-wrap {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 22px;
    align-items: stretch;
}

.password_gen_section .pg-content-left,
.password_gen_section .pg-content-right {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--card-shadow);
}

.password_gen_section .pg-content-left h2 {
    font-size: 30px;
    line-height: 1.3;
    color: var(--primary-text);
    margin-bottom: 14px;
}

.password_gen_section .pg-content-left p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--gray-text);
    margin-bottom: 14px;
}

.password_gen_section .pg-content-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.password_gen_section .pg-content-points div {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 600;
}

.password_gen_section .pg-content-points i {
    color: #16a34a;
    font-size: 18px;
}

.password_gen_section .pg-content-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password_gen_section .pg-mini-card {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: 0.25s ease;
}

.password_gen_section .pg-mini-card:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.password_gen_section .pg-mini-card span {
    display: block;
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 600;
    margin-bottom: 6px;
}

.password_gen_section .pg-mini-card strong {
    display: block;
    font-size: 15px;
    color: var(--primary-text);
    word-break: break-word;
}

.password_gen_section .pg-content-note {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.password_gen_section .pg-content-note i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.password_gen_section .pg-content-note p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--primary-text);
}

@media (max-width: 900px) {
    .password_gen_section .pg-content-wrap {
        grid-template-columns: 1fr;
    }

    .password_gen_section .pg-content-left h2 {
        font-size: 25px;
    }
}

@media (max-width: 520px) {
    .password_gen_section .pg-content-left,
    .password_gen_section .pg-content-right {
        padding: 20px;
    }

    .password_gen_section .pg-content-left h2 {
        font-size: 23px;
    }
}



/* ===== EXAMPLE SECTION ===== */
.password_gen_section.pg-example-section {
    padding: 20px 0 70px;
}

.password_gen_section .pg-example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.password_gen_section .pg-example-card {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
}

.password_gen_section .pg-example-card:hover {
    transform: translateY(-5px);
}

.password_gen_section .pg-example-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.password_gen_section .pg-example-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.password_gen_section .pg-example-top span {
    font-size: 14px;
    font-weight: 700;
}

.password_gen_section .pg-example-password {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    color: var(--primary-text);
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 700;
    word-break: break-all;
    margin-bottom: 14px;
}

.password_gen_section .pg-example-meter {
    width: 100%;
    height: 7px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.password_gen_section .pg-example-meter span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.password_gen_section .pg-example-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-text);
}

.password_gen_section .pg-example-card.weak {
    border-color: rgba(220, 38, 38, 0.22);
}

.password_gen_section .pg-example-card.weak .pg-example-icon {
    background: #fee2e2;
    color: #dc2626;
}

.password_gen_section .pg-example-card.weak .pg-example-top span {
    color: #dc2626;
}

.password_gen_section .pg-example-card.weak .pg-example-meter span {
    width: 28%;
    background: #dc2626;
}

.password_gen_section .pg-example-card.medium {
    border-color: rgba(234, 88, 12, 0.22);
}

.password_gen_section .pg-example-card.medium .pg-example-icon {
    background: #ffedd5;
    color: #ea580c;
}

.password_gen_section .pg-example-card.medium .pg-example-top span {
    color: #ea580c;
}

.password_gen_section .pg-example-card.medium .pg-example-meter span {
    width: 62%;
    background: #ea580c;
}

.password_gen_section .pg-example-card.strong {
    border-color: rgba(22, 163, 74, 0.22);
}

.password_gen_section .pg-example-card.strong .pg-example-icon {
    background: #dcfce7;
    color: #16a34a;
}

.password_gen_section .pg-example-card.strong .pg-example-top span {
    color: #16a34a;
}

.password_gen_section .pg-example-card.strong .pg-example-meter span {
    width: 96%;
    background: #16a34a;
}

.password_gen_section .pg-example-flow {
    margin-top: 18px;
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.password_gen_section .pg-example-flow > i {
    color: var(--primary-color);
    font-size: 20px;
}

.password_gen_section .pg-flow-item {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.password_gen_section .pg-flow-item span {
    display: block;
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 600;
    margin-bottom: 5px;
}

.password_gen_section .pg-flow-item strong {
    display: block;
    font-size: 14px;
    color: var(--primary-text);
}

[data-theme="dark"] .password_gen_section .pg-example-card.weak .pg-example-icon {
    background: #330f0f;
    color: #f87171;
}

[data-theme="dark"] .password_gen_section .pg-example-card.medium .pg-example-icon {
    background: #311807;
    color: #fb923c;
}

[data-theme="dark"] .password_gen_section .pg-example-card.strong .pg-example-icon {
    background: #0b2a18;
    color: #4ade80;
}

@media (max-width: 900px) {
    .password_gen_section .pg-example-grid {
        grid-template-columns: 1fr;
    }

    .password_gen_section .pg-example-flow {
        flex-direction: column;
    }

    .password_gen_section .pg-example-flow > i {
        transform: rotate(90deg);
    }

    .password_gen_section .pg-flow-item {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .password_gen_section .pg-example-card {
        padding: 18px;
    }

    .password_gen_section .pg-example-password {
        font-size: 14px;
    }
}


/* ===== FAQ SECTION ===== */
.password_gen_section.pg-faq-section {
    padding: 20px 0 80px;
    background-color: var(--section-bg);
}

.password_gen_section .pg-faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password_gen_section .pg-faq-item {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: 0.3s ease;
}

.password_gen_section .pg-faq-item.active {
    border-color: rgba(99, 102, 241, 0.55);
}

.password_gen_section .pg-faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 18px 20px;
    color: var(--primary-text);
    font-family: Poppins;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.password_gen_section .pg-faq-question i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.password_gen_section .pg-faq-item.active .pg-faq-question i {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(180deg);
}

.password_gen_section .pg-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}

.password_gen_section .pg-faq-answer p {
    padding: 0 20px 18px;
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

.password_gen_section .pg-faq-item:hover {
    border-color: var(--primary-color);
}

@media (max-width: 520px) {
    .password_gen_section .pg-faq-question {
        padding: 16px;
        font-size: 13px;
    }

    .password_gen_section .pg-faq-answer p {
        padding: 0 16px 16px;
    }
}


/* ===== RELATED TOOLS SECTION ===== */
.password_gen_section.pg-related-section {
    padding: 20px 0 80px;
}

.password_gen_section .pg-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.password_gen_section .pg-related-card {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    transition: 0.3s ease;
}

.password_gen_section .pg-related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: var(--cardhover);
}

.password_gen_section .pg-related-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.password_gen_section .pg-related-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.password_gen_section .pg-related-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.password_gen_section .pg-related-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.password_gen_section .pg-related-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.password_gen_section .pg-related-icon.cyan {
    background: #e0f2fe;
    color: #0284c7;
}

.password_gen_section .pg-related-card h3 {
    font-size: 15px;
    color: var(--primary-text);
    margin-bottom: 5px;
}

.password_gen_section .pg-related-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--gray-text);
}

.password_gen_section .pg-related-card span {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--input-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.password_gen_section .pg-related-card:hover span {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(4px);
}

[data-theme="dark"] .password_gen_section .pg-related-icon {
    background: #141a3a;
    color: #818cf8;
}

[data-theme="dark"] .password_gen_section .pg-related-icon.green {
    background: #0b2a18;
    color: #4ade80;
}

[data-theme="dark"] .password_gen_section .pg-related-icon.orange {
    background: #311807;
    color: #fb923c;
}

[data-theme="dark"] .password_gen_section .pg-related-icon.purple {
    background: #211337;
    color: #a78bfa;
}

[data-theme="dark"] .password_gen_section .pg-related-icon.red {
    background: #330f0f;
    color: #f87171;
}

[data-theme="dark"] .password_gen_section .pg-related-icon.cyan {
    background: #082f49;
    color: #38bdf8;
}

@media (max-width: 900px) {
    .password_gen_section .pg-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .password_gen_section .pg-related-grid {
        grid-template-columns: 1fr;
    }

    .password_gen_section .pg-related-card {
        padding: 16px;
    }
}