.fai-hook-tool,
.fai-hook-tool * {
    box-sizing: border-box;
}

.fai-hook-tool {
    width: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #101827;
}

.fai-hook-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px;
}

.fai-hook-header {
    text-align: center;
    margin-bottom: 24px;
}

.fai-hook-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--fai-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.fai-hook-header h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: #0f172a;
}

.fai-hook-header p {
    max-width: 760px;
    margin: 14px auto 0;
    color: #526071;
    font-size: 17px;
    line-height: 1.7;
}

.fai-hook-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
    align-items: start;
}

.fai-hook-card {
    overflow: visible;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 22px;
}

.fai-field {
    margin-bottom: 16px;
    overflow: visible;
}

.fai-field label {
    display: block;
    margin-bottom: 8px;
    color: #182234;
    font-size: 14px;
    font-weight: 800;
}

.fai-field input,
.fai-field textarea,
.fai-field select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 15px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    padding: 13px 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fai-field select {
    display: block !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    line-height: 50px !important;
    padding: 0 46px 0 15px !important;
    overflow: visible !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff !important;
    background-image: linear-gradient(45deg, transparent 50%, #0f172a 50%), linear-gradient(135deg, #0f172a 50%, transparent 50%) !important;
    background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
}

.fai-field select option {
    color: #0f172a;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.4;
}

.fai-field textarea {
    resize: vertical;
    min-height: 116px;
}

.fai-field input:focus,
.fai-field textarea:focus,
.fai-field select:focus {
    border-color: var(--fai-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.fai-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fai-generate-btn,
.fai-copy-all,
.fai-copy-one {
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fai-generate-btn {
    width: 100%;
    border-radius: 17px;
    padding: 15px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--fai-accent), #0f172a);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
    font-size: 16px;
}

.fai-generate-btn:hover,
.fai-copy-all:hover,
.fai-copy-one:hover {
    transform: translateY(-1px);
}

.fai-small-note {
    margin: 13px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.fai-results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.fai-result-label {
    display: block;
    color: var(--fai-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 900;
    margin-bottom: 5px;
}

.fai-results-top h3 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.fai-copy-all {
    display: none;
    border-radius: 999px;
    padding: 11px 15px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
}

.fai-empty-state {
    min-height: 300px;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 20px;
    background: rgba(248, 251, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
}

.fai-empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--fai-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 26px;
    margin-bottom: 14px;
}

.fai-empty-state p {
    margin: 0;
    color: #687386;
    font-size: 15px;
}

.fai-hooks-output {
    display: grid;
    gap: 12px;
}

.fai-hook-item {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.fai-hook-item-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fai-hook-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--fai-accent);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 13px;
}

.fai-hook-text {
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 750;
    flex: 1;
}

.fai-copy-one {
    margin-top: 12px;
    width: 100%;
    border-radius: 13px;
    padding: 10px 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
}

.fai-copy-message {
    display: none;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .fai-hook-grid,
    .fai-two-col {
        grid-template-columns: 1fr;
    }

    .fai-hook-shell {
        padding: 24px 14px;
    }

    .fai-results-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .fai-copy-all {
        width: 100%;
    }
}


@media (max-width: 640px) {
    .fai-two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fai-field select {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        line-height: 52px !important;
        background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px !important;
    }
}
