.fl-page-hero {
    margin-bottom: 20px;
}

.fl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.fl-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.fl-card--site,
.fl-card--apply {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.fl-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #1e293b;
}

.fl-card-head p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.fl-site {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f6f8ff 100%);
    border: 1px solid #e8edf4;
}

.fl-site-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.fl-site-icon {
    border-radius: 8px;
    object-fit: contain;
}

.fl-site-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: #0f172a;
}

.fl-site-url {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.fl-label {
    display: block;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.fl-code-box {
    margin-bottom: 12px;
}

.fl-code {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    font-family: Consolas, monospace;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
    background: #fbfdff;
    color: #334155;
    line-height: 1.5;
}

.fl-copy-btn,
.fl-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fl-copy-btn {
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #334155;
}

.fl-copy-btn:hover {
    background: #f8fafc;
    border-color: #c7d2e3;
}

.fl-notice {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid #e2ebf7;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.fl-tip {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.fl-form {
    display: grid;
    gap: 14px;
}

.fl-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.fl-input-box {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 0 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fl-input-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgb(0 89 255 / 16%);
}

.fl-input-box.is-locked {
    background: #f6f8ff;
    border-color: #e2e8f5;
    box-shadow: none;
    cursor: not-allowed;
}

.fl-input-box.is-locked:focus-within {
    border-color: #e2e8f5;
    box-shadow: none;
}

.fl-input-box input,
.fl-input-box textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    padding: 10px 0;
    min-width: 0;
    box-shadow: none;
}

.fl-input-box.is-locked input {
    color: #64748b;
    cursor: not-allowed;
    -webkit-text-fill-color: #64748b;
}

.fl-input-box textarea {
    resize: vertical;
    min-height: 96px;
    padding: 12px 0;
}

.fl-submit-btn {
    width: 100%;
    border: none;
    background: var(--primary-blue);
    color: #fff;
}

.fl-submit-btn:hover {
    background: rgba(0, 47, 255, 0.82);
}

.fl-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.fl-partner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fl-partner:hover {
    transform: translateY(-2px);
    border-color: #bfd4ff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.fl-partner-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-partner-icon img {
    border-radius: 6px;
    object-fit: contain;
}

.fl-partner-name {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.fl-partner-url {
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
}

.fl-empty {
    color: #94a3b8;
    margin: 0;
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 12px;
}

.friend-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.friend-links-list img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
}

.ip-cell-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.ip-cell-main {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.ip-report-link {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 13px;
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
}

.ip-report-link:hover {
    color: var(--primary-blue);
}

.ip-feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ip-feedback-overlay.is-open,
.ip-feedback-overlay.is-closing {
    visibility: visible;
}

.ip-feedback-overlay.is-open {
    opacity: 1;
}

.ip-feedback-overlay.is-closing {
    opacity: 0;
}

.ip-feedback-modal {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.ip-feedback-overlay.is-open .ip-feedback-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ip-feedback-overlay.is-closing .ip-feedback-modal {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
}

.ip-feedback-modal h3 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #0f172a;
}

.ip-feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ip-feedback-actions button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ip-feedback-cancel {
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #475569;
}

.ip-feedback-cancel:hover {
    background: #f8fafc;
}

.ip-feedback-submit {
    border: none;
    background: var(--primary-blue);
    color: #fff;
}

.ip-feedback-submit:hover {
    background: rgba(0, 47, 255, 0.82);
}

.ip-feedback-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .fl-layout {
        grid-template-columns: 1fr;
    }
}
