/* =========================
   HOMEPAGE
========================= */
.hero {
    position: relative;
    padding: 38px 0 44px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 10%, rgba(var(--accent-rgb-3), 0.13), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(var(--accent-rgb-2), 0.11), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(var(--accent-rgb-3), 0.08), transparent 22%);
    opacity: 0.96;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

/* =========================
   HERO HEADLINE
========================= */
.hero-head {
    position: relative;
    margin-bottom: 32px;
    text-align: center;
}

.hero-title {
    margin: 0 0 16px;
    color: var(--text-main);
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.01;
    font-weight: 900;
    letter-spacing: -1.4px;
    text-wrap: balance;
    text-shadow: 0 10px 40px rgba(var(--accent-rgb-2), 0.10);
}

.hero-title .accent {
    background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-1) 54%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    max-width: min(100%, 760px);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(100, 116, 139, 0.16);
    box-shadow:
        0 12px 26px rgba(var(--accent-rgb-2), 0.060),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-stats strong {
    color: var(--text-main);
    font-weight: 900;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

/* =========================
   CREATE TABS
========================= */
.create-tabs {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 24px;
    padding: 0 0 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.create-tabs::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb-2), 0.24), transparent);
}

.create-tab-btn {
    min-width: 0;
    height: 54px;
    flex: 1 1 0;
    padding: 0 14px;
    border-radius: 17px;
    font-weight: 900;
}

.create-tab-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 56%, var(--accent-3) 100%);
    box-shadow:
        0 16px 30px rgba(var(--accent-rgb-2), 0.25),
        0 0 20px rgba(var(--accent-rgb-3), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.create-tab-btn.active:hover {
    color: #fff;
    transform: translateY(-1px);
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 56%, var(--accent-3) 100%);
    box-shadow:
        0 20px 38px rgba(var(--accent-rgb-2), 0.28),
        0 0 22px rgba(var(--accent-rgb-3), 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.create-tab-btn.result-hidden {
    display: none;
}

/* =========================
   CREATE FORM
========================= */
.create-panel {
    display: none;
}

.create-panel.active {
    display: block;
    animation: fadePanel .22s ease;
}

.create-panel .field {
    margin-bottom: 15px;
}

.create-panel .field label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
}

.create-panel .textarea {
    min-height: 164px;
}

.btn-create {
    width: 100%;
    min-height: 54px;
}

.form-note {
    margin-top: 12px;
    padding: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
    background: transparent;
    border: none;
    box-shadow: none;
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESULT
========================= */
.result-empty {
    padding: 18px;
    color: var(--text-soft);
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px dashed rgba(var(--accent-rgb-2), 0.18);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.result-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    padding-right: 6px;
}

.result-copy-all-btn {
    width: auto;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

.result-action-btn {
    width: 88px;
    min-width: 88px;
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.result-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(var(--accent-rgb-2), 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.result-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.result-table thead th {
    padding: 15px 16px;
    color: var(--text-soft);
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(var(--accent-rgb-2), 0.070), rgba(var(--accent-rgb-3), 0.040));
}

.result-table tbody td {
    padding: 15px 16px;
    color: var(--text-main);
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.result-table tbody tr {
    transition: background .18s ease;
}

.result-table tbody tr:hover {
    background: rgba(var(--accent-rgb-2), 0.055);
}

.result-short {
    color: var(--accent-blue);
    font-weight: 800;
    line-height: 1.55;
    word-break: break-all;
}

.result-status-badge {
    min-height: 30px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.result-status-badge.success {
    color: var(--success-dark);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.10));
}

.result-status-badge.error {
    color: var(--danger-dark);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.10));
}

/* =========================
   RESULT MOBILE
========================= */
.result-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.result-mobile-card {
    padding: 14px;
    border-radius: 18px;
}

.result-mobile-row {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.result-mobile-row:last-child {
    border-bottom: none;
}

.result-mobile-row:nth-child(2),
.result-mobile-row:nth-child(3),
.result-mobile-row:nth-child(4) {
    grid-template-columns: 1fr;
    gap: 7px;
}

.result-mobile-label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.result-mobile-value {
    min-width: 0;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

.result-mobile-value.short {
    color: var(--accent-blue);
    font-weight: 800;
    word-break: break-all;
}

.result-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================
   FEATURES
========================= */
.features {
    display: grid;
    gap: 14px;
}

.feature-card {
    padding: 18px;
    border-radius: 22px;
}

.feature-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 56%, var(--accent-3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 12px 24px rgba(var(--accent-rgb-2), 0.22),
        0 0 16px rgba(var(--accent-rgb-3), 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.feature-title {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.feature-text {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
}

.bottom-cta {
    margin-top: 22px;
    padding: 18px 20px;
    color: var(--text-soft);
    text-align: center;
    font-weight: 700;
}

.bottom-cta a {
    color: var(--accent-blue);
    font-weight: 900;
}

/* =========================
   TOAST
========================= */
#floatingToast {
    position: fixed;
    top: 22px;
    left: 50%;
    z-index: 9999;
    width: min(420px, calc(100% - 28px));
    min-height: 62px;
    padding: 12px 46px 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid rgba(100, 116, 139, 0.20);
    border-radius: 18px;
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(var(--accent-rgb-2), 0.030),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -14px) scale(0.98);
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

#floatingToast.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

#floatingToast .toast-icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.20);
}

#floatingToast.error .toast-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.20);
}

#floatingToast .toast-content {
    min-width: 0;
    flex: 1;
    padding-top: 0;
}

#floatingToast .toast-title {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
}

#floatingToast .toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

#floatingToast .toast-close:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.055);
    transform: scale(0.98);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .result-table-wrap {
        display: none;
    }

    .result-mobile {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0 36px;
    }

    .hero-head {
        margin-bottom: 24px;
    }

    .hero-head::before {
        width: 130px;
        height: 130px;
    }

    .hero-head::after {
        width: 190px;
        height: 190px;
    }

    .hero-title {
        font-size: clamp(34px, 12vw, 54px);
    }

    .hero-stats {
        width: 100%;
        padding: 11px 14px;
        font-size: 13px;
    }

    .create-tabs {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 13px;
    }

    .create-tab-btn {
        height: 48px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 13px;
    }

    .btn-create {
        min-height: 50px;
    }

    .features {
        gap: 12px;
    }

    .feature-card {
        padding: 15px;
        border-radius: 20px;
    }

    .feature-top {
        gap: 10px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 18px;
    }

    .feature-title {
        font-size: 15px;
    }

    .feature-text {
        font-size: 13px;
    }

    .bottom-cta {
        padding: 16px;
        font-size: 14px;
    }

    #floatingToast {
        top: 12px;
        width: calc(100% - 24px);
        min-height: 56px;
        padding: 11px 42px 11px 12px;
        border-radius: 16px;
    }

    #floatingToast .toast-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    #floatingToast .toast-title {
        font-size: 13px;
    }

    #floatingToast .toast-close {
        top: 7px;
        right: 7px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(32px, 13vw, 46px);
    }

    .hero-stats {
        line-height: 1.7;
    }

    .create-tab-btn {
        font-size: 12px;
    }

    .result-mobile-card {
        padding: 13px;
    }

    .result-action-btn {
        width: 100%;
        min-width: 0;
    }

    .result-copy-all-btn {
        width: 100%;
    }
}