.shortener-page .main-container-app {
    padding: 40px 20px 64px;
    max-width: 920px;
}

.shortener-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.shortener-card__head {
    text-align: center;
    margin-bottom: 24px;
}

.shortener-card__head h1 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #0f172a;
}

.shortener-card__head p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.shortener-input-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.shortener-input-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.shortener-input {
    width: 100%;
    height: 52px;
    padding: 0 88px 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shortener-input::placeholder {
    color: #94a3b8;
}

.shortener-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.shortener-paste-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.shortener-paste-btn:hover {
    background: #dbeafe;
}

.shortener-submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    height: 52px;
    padding: 0 22px;
    border: none;
    border-radius: 14px;
    background: #6b7f96;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.shortener-submit:hover:not(:disabled) {
    background: #5a6d82;
    transform: translateY(-1px);
}

.shortener-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shortener-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.feature-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.feature-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.feature-tile.is-active {
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.feature-tile__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-tile__icon--link { background: #eff6ff; color: #3b82f6; }
.feature-tile__icon--lock { background: #ecfdf5; color: #10b981; }
.feature-tile__icon--calendar { background: #f5f3ff; color: #8b5cf6; }
.feature-tile__icon--qr { background: #fff7ed; color: #f97316; }

.feature-tile__label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.35;
}

.feature-panel {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #f8fafc;
}

.feature-panel.is-open {
    display: block;
}

.feature-panel label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.feature-panel input,
.feature-panel select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.feature-panel input:focus,
.feature-panel select:focus {
    outline: none;
    border-color: #94a3b8;
}

.feature-panel__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

.shortener-error {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}

.shortener-result {
    display: none;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #dfe3ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8f9ff 0%, #f1f5ff 100%);
}

.shortener-result__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.shortener-result__row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.shortener-result__link {
    flex: 1;
    min-width: 180px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #5b5ff8;
}

.shortener-copy-btn {
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: #5b5ff8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.shortener-result__meta {
    margin: 10px 0 0;
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.shortener-result__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.shortener-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.shortener-qr {
    display: none;
    margin-top: 16px;
    text-align: center;
}

.shortener-qr.is-visible {
    display: block;
}

.shortener-qr img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 8px;
}

.shortener-qr p {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 720px) {
    .shortener-input-row {
        flex-direction: column;
    }

    .shortener-submit {
        width: 100%;
        min-width: 0;
    }

    .shortener-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .shortener-card {
        padding: 20px 16px;
    }

    .feature-tile__label {
        font-size: 11px;
    }
}
