/* ============================================================
   GoFrag Suggestions v1.0.0
   Фича "Предложить правку" (MVP: теги)
   ============================================================ */

/* Кнопка "Предложить тег" (sibling .gfa-tags, стиль матчится с .gfa-more) */
.gfs-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
    margin-top: 6px;
    margin-left: 6px;
    line-height: 20px;
    background: transparent;
    border: 1px dashed rgba(168, 168, 180, .28);
    border-radius: 10px;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    vertical-align: top;
    transition: all .2s ease;
}
.gfs-suggest-btn:hover,
.gfs-suggest-btn:focus {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .45);
    color: #22c55e;
    outline: none;
    box-shadow: 0 0 10px rgba(34, 197, 94, .10);
}
.gfs-suggest-btn__paw {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: .8;
}
.gfs-suggest-btn:hover .gfs-suggest-btn__paw { opacity: 1; }

/* ============================================================
   МОДАЛКА
   ============================================================ */
.gfs-modal.uk-modal {
    background: rgba(0, 0, 0, .75);
}
.gfs-modal.uk-modal > .uk-modal-dialog,
.gfs-modal .uk-modal-dialog {
    background-color: #16161c !important;
    background-image: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(22, 22, 30, 0) 50%) !important;
    border: 1px solid rgba(34, 197, 94, 0.30) !important;
    border-radius: 14px !important;
    max-width: 1020px !important;
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #e4e4e7;
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.10), 0 20px 60px rgba(0, 0, 0, 0.7) !important;
    overflow: hidden;
}

.gfs-modal__header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.gfs-modal__header > div:first-child { flex: 1; min-width: 0; }
.gfs-modal__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.gfs-modal__title-game {
    color: #22c55e;
    font-weight: 600;
}
.gfs-modal__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.4;
}
.gfs-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.gfs-modal__close:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.gfs-modal__body {
    padding: 18px 20px 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.gfs-modal__footer {
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, .18);
}

/* ------------ Revision banner (показывается если подача на доработке) ------------ */
.gfs-revision-banner {
    padding: 12px 14px;
    margin-bottom: 14px;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .30);
    border-left: 3px solid #6366f1;
    border-radius: 8px;
}
.gfs-revision-banner__title {
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gfs-revision-banner__text {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 6px;
    line-height: 1.4;
}
.gfs-revision-banner__hint {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    font-style: italic;
}

/* ------------ Tabs (свои, pill-style) ------------ */
.gfs-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: rgba(0, 0, 0, .2);
    border-radius: 10px;
    margin-bottom: 16px;
}
.gfs-tab {
    flex: 1;
    padding: 9px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.gfs-tab:hover {
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .75);
}
.gfs-tab.is-active {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, .08);
}

.gfs-tab-panel { display: none; }
.gfs-tab-panel.is-active { display: block; }

/* ------------ Search ------------ */
.gfs-search {
    position: relative;
    margin-bottom: 10px;
}
.gfs-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .4);
    pointer-events: none;
    z-index: 1;
}
.gfs-modal .gfs-search__input {
    width: 100% !important;
    padding: 9px 12px 9px 40px !important;
    background: rgba(0, 0, 0, .25) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: border-color .15s ease, background .15s ease;
}
.gfs-modal .gfs-search__input:focus {
    outline: none !important;
    border-color: rgba(34, 197, 94, .4) !important;
    background: rgba(0, 0, 0, .35) !important;
}

/* ------------ Tag list ------------ */
.gfs-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 2px;
    margin: 0 -2px;
}
.gfs-tag-list__empty {
    color: rgba(255, 255, 255, .4);
    font-size: 13px;
    padding: 16px 4px;
    width: 100%;
    text-align: center;
}

.gfs-tag {
    position: relative;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.gfs-tag:hover:not(:disabled) {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .30);
    color: #22c55e;
}
.gfs-tag.is-selected {
    background: rgba(34, 197, 94, .16);
    border-color: rgba(34, 197, 94, .45);
    color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, .12);
}
.gfs-tag:disabled {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}
.gfs-tag__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 8px;
    vertical-align: middle;
}
.gfs-tag__badge--has {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .6);
}
.gfs-tag__badge--pending {
    background: rgba(245, 158, 11, .18);
    color: #f59e0b;
}

/* ------------ Fields (новый тег) ------------ */
.gfs-field {
    margin-bottom: 12px;
}
.gfs-label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gfs-input,
.gfs-textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, background .15s ease;
}
.gfs-textarea {
    min-height: 80px;
    resize: vertical;
}
.gfs-input:focus,
.gfs-textarea:focus {
    outline: none;
    border-color: rgba(34, 197, 94, .4);
    background: rgba(0, 0, 0, .35);
}
.gfs-counter {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    text-align: right;
}
.gfs-hint {
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(245, 158, 11, .08);
    border-left: 2px solid rgba(245, 158, 11, .45);
    border-radius: 4px;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    line-height: 1.4;
}
.gfs-hint--warn {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .30);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    line-height: 1.5;
}
.gfs-hint--warn b {
    color: #f59e0b;
}
.gfs-label-opt {
    color: rgba(255, 255, 255, .35);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    margin-left: 4px;
}

/* ------------ Блок "Убрать лишние теги" ------------ */
.gfs-remove {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(239, 68, 68, .04);
    border: 1px solid rgba(239, 68, 68, .14);
    border-radius: 10px;
}
.gfs-remove__title {
    margin: 0 0 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gfs-remove__hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
}
.gfs-remove__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gfs-remove-chip {
    position: relative;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.gfs-remove-chip:hover {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .30);
    color: #ef4444;
}
.gfs-remove-chip.is-marked {
    background: rgba(239, 68, 68, .16);
    border-color: rgba(239, 68, 68, .45);
    color: #ef4444;
    text-decoration: line-through;
}

/* Чип "удалить" в блоке "Что предлагаешь" */
.gfs-chip--remove {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .30);
    color: #ef4444;
}
.gfs-chip--remove .gfs-chip__remove:hover {
    background: rgba(239, 68, 68, .18);
}

/* ============================================================
   Таб "Правки" в профиле (gfs-p__ префикс)
   ============================================================ */
.gfs-p__empty, .gfs-p__loading {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 14px;
}
.gfs-p__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 10px;
    margin-bottom: 4px;
}
.gfs-p__count {
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.gfs-p__admin-note {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 11px;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.30);
    border-radius: 10px;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.gfs-p__btn--hideall {
    margin-left: auto;
    padding: 5px 12px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
    border-color: rgba(255,255,255,.12);
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
}
.gfs-p__btn--hideall:hover {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.30);
    color: #ef4444;
}
.gfs-p__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 0;
}
.gfs-p__item {
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-left: 3px solid rgba(255,255,255,.12);
    border-radius: 8px;
    font-size: 13px;
}
.gfs-p__item--pending            { border-left-color: #f59e0b; }
.gfs-p__item--revision_requested { border-left-color: #6366f1; }
.gfs-p__item--approved           { border-left-color: #22c55e; }
.gfs-p__item--rejected           { border-left-color: #ef4444; }

.gfs-p__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.gfs-p__status {
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.gfs-p__status--pending            { background: rgba(245,158,11,.15); color: #f59e0b; }
.gfs-p__status--revision_requested { background: rgba(99,102,241,.15); color: #a5b4fc; }
.gfs-p__status--approved           { background: rgba(34,197,94,.15); color: #22c55e; }
.gfs-p__status--rejected           { background: rgba(239,68,68,.15); color: #ef4444; }

.gfs-p__type {
    padding: 1px 7px;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}
.gfs-p__date {
    margin-left: auto;
    color: rgba(255,255,255,.35);
    font-size: 11px;
}
.gfs-p__title {
    margin-bottom: 8px;
}
.gfs-p__game {
    color: #e4e4e7;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.gfs-p__game:hover {
    color: #22c55e;
    text-decoration: underline;
}
.gfs-p__diff {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.gfs-p__chip {
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}
.gfs-p__chip--add    { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.28); color: #22c55e; }
.gfs-p__chip--new    { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.35); border-style: dashed; color: #22c55e; }
.gfs-p__chip--remove { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.28); color: #ef4444; text-decoration: line-through; }
.gfs-p__chip--excluded { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #888; text-decoration: line-through; opacity: .75; }
.gfs-p__diff--excluded { margin-top: 4px; align-items: center; }
.gfs-p__excluded-label { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: 0.4px; margin-right: 4px; }
.gfs-p__reason, .gfs-p__modcomment {
    margin-top: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.2);
    border-radius: 4px;
}
.gfs-p__reason b, .gfs-p__modcomment b {
    color: rgba(255,255,255,.9);
}
.gfs-p__modcomment {
    border-left: 2px solid rgba(99,102,241,.5);
}
.gfs-p__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.gfs-p__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.gfs-p__btn:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: #fff;
    text-decoration: none;
}
.gfs-p__btn--primary {
    background: rgba(34,197,94,.15);
    border-color: rgba(34,197,94,.40);
    color: #22c55e;
}
.gfs-p__btn--primary:hover {
    background: rgba(34,197,94,.22);
    border-color: rgba(34,197,94,.55);
    color: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,.15);
}
.gfs-p__btn--del {
    margin-left: auto;
    color: rgba(239,68,68,.7);
    border-color: rgba(239,68,68,.20);
}
.gfs-p__btn--del:hover {
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.40);
    color: #ef4444;
}

/* ------------ Selected chips ------------ */
.gfs-selected {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(34, 197, 94, .04);
    border: 1px solid rgba(34, 197, 94, .14);
    border-radius: 10px;
}
.gfs-selected__title {
    margin: 0 0 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gfs-selected__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    align-items: center;
}
.gfs-selected__empty {
    color: rgba(255, 255, 255, .35);
    font-size: 12px;
    font-style: italic;
}

.gfs-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 10px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .30);
    border-radius: 10px;
    color: #22c55e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gfs-chip--new {
    background: rgba(34, 197, 94, .06);
    border-style: dashed;
}
.gfs-chip__remove {
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: .6;
    font-size: 16px;
    line-height: 1;
    border-radius: 5px;
    transition: opacity .15s ease, background .15s ease;
}
.gfs-chip__remove:hover {
    opacity: 1;
    background: rgba(34, 197, 94, .18);
}

/* ------------ Buttons ------------ */
.gfs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.gfs-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .7);
}
.gfs-btn--ghost:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}
.gfs-btn--primary {
    background: linear-gradient(180deg, rgba(34, 197, 94, .9) 0%, rgba(22, 163, 74, .95) 100%);
    color: #0a1f0e;
    box-shadow: 0 4px 14px rgba(34, 197, 94, .25);
}
.gfs-btn--primary:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
    box-shadow: 0 4px 18px rgba(34, 197, 94, .35);
    transform: translateY(-1px);
}
.gfs-btn--primary:disabled {
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .3);
    cursor: not-allowed;
    box-shadow: none;
}
.gfs-btn__paw {
    flex-shrink: 0;
}

/* ------------ Toast ------------ */
.gfs-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(100px);
    min-width: 280px;
    max-width: 420px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(22, 22, 30, 0.98) 60%);
    border: 1px solid rgba(34, 197, 94, 0.40);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 30px rgba(34, 197, 94, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.gfs-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.gfs-toast.is-error {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.22) 0%, rgba(22, 22, 30, 0.98) 60%);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 30px rgba(239, 68, 68, 0.18);
}
.gfs-toast.is-error .gfs-toast__paw { color: #ef4444; }
.gfs-toast__paw {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #22c55e;
}
.gfs-toast__text {
    flex: 1;
    min-width: 0;
}
.gfs-toast__close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    margin-left: 4px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.gfs-toast__close:hover,
.gfs-toast__close:focus {
    background: rgba(255,255,255,.08);
    color: #fff;
    outline: none;
}

/* ------------ Mobile ------------ */
@media (max-width: 640px) {
    .gfs-modal .uk-modal-dialog {
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
    }
    .gfs-modal__header { padding: 16px 16px 12px; }
    .gfs-modal__body   { padding: 14px 16px 8px; }
    .gfs-modal__footer {
        flex-direction: column-reverse;
        padding: 12px 16px 16px;
    }
    .gfs-modal__footer .gfs-btn { width: 100%; justify-content: center; }
    .gfs-modal__title { font-size: 16px; }
    .gfs-tag-list { max-height: 45vh; }
}
@media (max-width: 360px) {
    .gfs-tab { font-size: 12px; padding: 9px 8px; }
}

/* ============================================================
   GoFrag Suggestions - Torrent submission (v1.7.0+)
   ------------------------------------------------------------
   Префикс .gfst- (gofrag-suggestions-torrent) для новых элементов.
   Переиспользуем .gfs-modal__*, .gfs-btn, .gfs-input, .gfs-textarea,
   .gfs-label, .gfs-label-opt, .gfs-counter из основного файла выше.
   ============================================================ */

/* ---------- Кнопка-слот "Предложить раздачу" ---------- */
.gfst-suggest-slot {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    color: inherit;
    text-align: left;
    appearance: none;
}
.gfst-suggest-slot__spine {
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, rgba(34,197,94,.35), rgba(34,197,94,.06));
    opacity: .55;
    transition: opacity .25s, width .25s, top .25s, bottom .25s, background .25s;
    pointer-events: none;
}
.gfst-suggest-slot__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 13px 16px 13px 22px;
    background: rgba(0,0,0,.18);
    border: 1px dashed rgba(34,197,94,.24);
    border-radius: 10px;
    transition: background .2s, border-color .2s, border-style .2s;
}
.gfst-suggest-slot:hover .gfst-suggest-slot__inner,
.gfst-suggest-slot:focus-visible .gfst-suggest-slot__inner {
    background: rgba(34,197,94,.05);
    border-color: rgba(34,197,94,.45);
    border-style: solid;
}
.gfst-suggest-slot:hover .gfst-suggest-slot__spine,
.gfst-suggest-slot:focus-visible .gfst-suggest-slot__spine {
    opacity: 1;
    width: 3px;
    top: 4px;
    bottom: 4px;
    background: linear-gradient(180deg, var(--gf-green, #22c55e) 0%, rgba(34,197,94,.3) 100%);
}
.gfst-suggest-slot:focus-visible { outline: none; }
.gfst-suggest-slot:focus-visible .gfst-suggest-slot__inner {
    box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.gfst-suggest-slot__plus {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 7px;
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.2);
    color: var(--gf-green, #22c55e);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s;
    flex-shrink: 0;
}
.gfst-suggest-slot:hover .gfst-suggest-slot__plus {
    transform: rotate(90deg);
    background: rgba(34,197,94,.16);
    border-color: rgba(34,197,94,.4);
}
.gfst-suggest-slot__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gfst-suggest-slot__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gf-text, #e4e4e7);
    letter-spacing: -0.005em;
    line-height: 1.25;
}
.gfst-suggest-slot__hint {
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 11px;
    letter-spacing: .02em;
    color: var(--gf-text-muted, #71717a);
    line-height: 1.2;
}
.gfst-suggest-slot__chev {
    color: var(--gf-text-muted, #71717a);
    transition: color .2s, transform .25s;
    flex-shrink: 0;
    display: inline-flex;
}
.gfst-suggest-slot:hover .gfst-suggest-slot__chev {
    color: var(--gf-green, #22c55e);
    transform: translateX(3px);
}

/* ---------- Модалка: torrent-версия ---------- */
.gfs-modal--torrent.uk-modal > .uk-modal-dialog,
.gfs-modal--torrent .uk-modal-dialog {
    max-width: 680px !important;
}
.gfs-modal__eyebrow {
    display: inline-block;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 10px;
    letter-spacing: .24em;
    color: rgba(34,197,94,.55);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ---------- Drop zone ---------- */
.gfst-dropzone {
    position: relative;
    min-height: 160px;
    padding: 30px 24px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(34,197,94,.05) 0%, transparent 60%),
        rgba(0,0,0,.22);
    border: 1px dashed rgba(34,197,94,.28);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s, transform .2s;
}
.gfst-dropzone:hover,
.gfst-dropzone:focus-visible,
.gfst-dropzone.is-dragover {
    border-color: rgba(34,197,94,.6);
    background:
        radial-gradient(ellipse at 50% 100%, rgba(34,197,94,.10) 0%, transparent 60%),
        rgba(34,197,94,.035);
    outline: none;
}
.gfst-dropzone.is-dragover {
    transform: scale(1.008);
    border-style: solid;
}
.gfst-dropzone.is-error {
    border-color: rgba(239,68,68,.5);
    background: rgba(239,68,68,.04);
    animation: gfst-shake .4s ease-in-out;
}
.gfst-dropzone.is-error .gfst-dropzone__icon { color: #ef4444; }
@keyframes gfst-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}
.gfst-dropzone__corner {
    position: absolute;
    width: 14px; height: 14px;
    border: 1.5px solid rgba(34,197,94,.42);
    pointer-events: none;
    transition: border-color .2s, width .2s, height .2s;
}
.gfst-dropzone__corner--tl { top: 8px; left: 8px;  border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.gfst-dropzone__corner--tr { top: 8px; right: 8px; border-left: 0;  border-bottom: 0; border-top-right-radius: 3px; }
.gfst-dropzone__corner--bl { bottom: 8px; left: 8px;  border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.gfst-dropzone__corner--br { bottom: 8px; right: 8px; border-left: 0;  border-top: 0; border-bottom-right-radius: 3px; }
.gfst-dropzone:hover .gfst-dropzone__corner,
.gfst-dropzone.is-dragover .gfst-dropzone__corner {
    border-color: rgba(34,197,94,.85);
    width: 18px; height: 18px;
}
.gfst-dropzone__scanline {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(34,197,94,.8) 50%, transparent);
    box-shadow: 0 0 12px rgba(34,197,94,.5);
    opacity: 0;
    pointer-events: none;
}
.gfst-dropzone.is-parsing .gfst-dropzone__scanline {
    opacity: 1;
    animation: gfst-scan 1.2s ease-in-out infinite;
}
@keyframes gfst-scan {
    0%   { top: 0%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { top: calc(100% - 2px); opacity: 1; }
    60%, 100% { opacity: 0; }
}
.gfst-dropzone__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.gfst-dropzone__icon {
    color: var(--gf-green, #22c55e);
    opacity: .7;
    transition: opacity .2s, transform .2s;
}
.gfst-dropzone:hover .gfst-dropzone__icon,
.gfst-dropzone.is-dragover .gfst-dropzone__icon {
    opacity: 1;
    transform: translateY(-2px);
}
.gfst-dropzone__label {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    line-height: 1.4;
}
.gfst-dropzone__label b {
    color: var(--gf-green, #22c55e);
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-weight: 700;
    letter-spacing: .01em;
}
.gfst-dropzone__hint {
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--gf-text-muted, #71717a);
    text-transform: uppercase;
}

/* ---------- Parsing dots ---------- */
.gfst-parsing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 160px;
    color: var(--gf-text-dim, #a1a1aa);
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.gfst-parsing__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gf-green, #22c55e);
    box-shadow: 0 0 8px rgba(34,197,94,.5);
    animation: gfst-dot 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
.gfst-parsing__dot:nth-child(2) { animation-delay: .15s; }
.gfst-parsing__dot:nth-child(3) { animation-delay: .3s; }
@keyframes gfst-dot {
    0%, 40%, 100% { opacity: .3; transform: scale(.85); }
    20%           { opacity: 1;  transform: scale(1.2); }
}

/* ---------- Manifest preview ---------- */
.gfst-manifest {
    position: relative;
    background: var(--gf-surface, #1c1c24);
    border: 1px solid rgba(34,197,94,.28);
    border-radius: 10px;
    padding: 14px 16px 14px 22px;
    overflow: hidden;
    animation: gfst-slideIn .3s ease-out;
}
.gfst-manifest::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gf-green, #22c55e), rgba(34,197,94,.3));
    box-shadow: 0 0 8px rgba(34,197,94,.3);
}
@keyframes gfst-slideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.gfst-manifest__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px; height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: var(--gf-text-muted, #71717a);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
    font-family: inherit;
}
.gfst-manifest__remove:hover {
    color: #ef4444;
    border-color: rgba(239,68,68,.4);
    background: rgba(239,68,68,.08);
}
.gfst-manifest__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 32px;
}
.gfst-manifest__pin {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gf-green, #22c55e);
    box-shadow: 0 0 8px rgba(34,197,94,.7);
    flex-shrink: 0;
    animation: gfst-pulse-pin 2.4s ease-in-out infinite;
}
@keyframes gfst-pulse-pin {
    0%, 100% { transform: scale(1);   opacity: 1;  }
    50%      { transform: scale(1.3); opacity: .7; }
}
.gfst-manifest__filename {
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 13px;
    font-weight: 700;
    color: var(--gf-text, #e4e4e7);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gfst-manifest__size {
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 12px;
    font-weight: 700;
    color: var(--gf-green, #22c55e);
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.25);
    white-space: nowrap;
    flex-shrink: 0;
}
.gfst-manifest__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,.06);
}
.gfst-manifest__meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .02em;
}
.gfst-manifest__meta-label {
    color: var(--gf-text-muted, #71717a);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    padding-top: 1px;
}
.gfst-manifest__meta-value {
    color: var(--gf-text-dim, #a1a1aa);
    min-width: 0;
    word-break: break-all;
}
.gfst-manifest__meta-value--hash {
    color: var(--gf-green, #22c55e);
    font-weight: 600;
    letter-spacing: 0;
    font-size: 10.5px;
}

/* ---------- Section ---------- */
.gfst-section { margin-top: 22px; }
.gfst-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(34,197,94,.12);
}
.gfst-section__bar {
    display: inline-block;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--gf-green, #22c55e);
    box-shadow: 0 0 6px rgba(34,197,94,.45);
    flex-shrink: 0;
}
.gfst-section__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gf-text, #e4e4e7);
    letter-spacing: .02em;
}
.gfst-field { margin-bottom: 14px; }
.gfst-field:last-child { margin-bottom: 0; }
.gfst-req {
    margin-left: 4px;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 8px;
    background: rgba(34,197,94,.12);
    color: var(--gf-green, #22c55e);
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0;
}
.gfs-modal--torrent .gfst-input--mono {
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    letter-spacing: .02em;
}

/* ---------- Footer note ---------- */
.gfst-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    border-left: 2px solid rgba(34,197,94,.4);
    border-radius: 6px;
    color: var(--gf-text-muted, #71717a);
    font-size: 12px;
    line-height: 1.5;
}
.gfst-footer-note__icon {
    color: var(--gf-green, #22c55e);
    flex-shrink: 0;
    margin-top: 2px;
    opacity: .75;
}

/* ---------- Submit button ---------- */
.gfst-submit {
    position: relative;
    padding-left: 22px;
}
.gfst-submit__pin {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(4,22,7,.85);
    box-shadow: 0 0 6px rgba(4,22,7,.4);
    flex-shrink: 0;
}
.gfst-submit:disabled .gfst-submit__pin {
    background: rgba(255,255,255,.2);
    box-shadow: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .gfs-modal--torrent .uk-modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
    }
    .gfst-dropzone { min-height: 140px; padding: 26px 18px; }
    .gfst-dropzone__label { font-size: 14px; }
    .gfst-manifest__meta-row { grid-template-columns: 90px 1fr; }
    .gfst-suggest-slot__hint { display: none; }
    .gfst-suggest-slot__inner { padding: 12px 14px 12px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .gfst-manifest__pin,
    .gfst-dropzone__scanline,
    .gfst-parsing__dot,
    .gfst-manifest {
        animation: none !important;
    }
    .gfst-dropzone.is-error { animation: none !important; }
}

/* ============================================================
   "Примеры с трекеров" - always-open section + lightbox
   ============================================================ */

.gfst-examples {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,.06);
}

/* Header-row: bar + eyebrow+label колонка + count chip */
.gfst-examples__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}
.gfst-examples__head::after {
    content: '';
    position: absolute;
    left: 16px; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(34,197,94,.38) 0%, rgba(34,197,94,0) 70%);
    pointer-events: none;
}
.gfst-examples__bar {
    flex-shrink: 0;
    align-self: stretch;
    width: 3px;
    border-radius: 2px;
    background: var(--gf-green, #22c55e);
    box-shadow: 0 0 6px rgba(34,197,94,.45);
}
.gfst-examples__head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gfst-examples__eyebrow {
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(34,197,94,.55);
    font-weight: 600;
}
.gfst-examples__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--gf-text, #e4e4e7);
    line-height: 1.3;
}
.gfst-examples__count {
    flex-shrink: 0;
    padding: 3px 10px;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--gf-green, #22c55e);
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.22);
    border-radius: 999px;
    align-self: center;
}

.gfst-examples__intro {
    margin: 14px 0 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--gf-text-dim, #a1a1aa);
    opacity: 0;
    transform: translateY(4px);
}

.gfst-examples__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

/* Reveal animation - триггерится классом .is-revealed (вешается JS-ом
   при UIkit-событии "shown" на dialog модалки) */
.gfst-examples.is-revealed .gfst-examples__intro {
    animation: gfst-fadeUp .35s cubic-bezier(.2,.8,.2,1) forwards;
}
.gfst-examples.is-revealed .gfst-example {
    animation: gfst-fadeUp .4s cubic-bezier(.2,.8,.2,1) forwards;
}
.gfst-examples.is-revealed .gfst-example:nth-child(1) { animation-delay: .06s; }
.gfst-examples.is-revealed .gfst-example:nth-child(2) { animation-delay: .12s; }
.gfst-examples.is-revealed .gfst-example:nth-child(3) { animation-delay: .18s; }
.gfst-examples.is-revealed .gfst-example:nth-child(4) { animation-delay: .24s; }

/* ---------- Card-тайл ---------- */
.gfst-example {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--gf-surface, #1c1c24);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    appearance: none;
}
.gfst-example:hover,
.gfst-example:focus-visible {
    border-color: rgba(34,197,94,.45);
    background: #161c22;
    box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 6px 20px rgba(0,0,0,.28);
    outline: none;
}

/* Crop-marks TL+BR diagonal */
.gfst-example::before,
.gfst-example::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border: 1.5px solid rgba(34,197,94,0);
    pointer-events: none;
    transition: border-color .2s ease;
    z-index: 2;
}
.gfst-example::before {
    top: 4px; left: 4px;
    border-right: 0; border-bottom: 0;
    border-top-left-radius: 2px;
}
.gfst-example::after {
    bottom: 4px; right: 4px;
    border-left: 0; border-top: 0;
    border-bottom-right-radius: 2px;
}
.gfst-example:hover::before,
.gfst-example:hover::after,
.gfst-example:focus-visible::before,
.gfst-example:focus-visible::after {
    border-color: rgba(34,197,94,.85);
}

.gfst-example__num {
    position: absolute;
    top: 8px; left: 8px;
    padding: 2px 7px;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--gf-green, #22c55e);
    background: rgba(11,15,19,.82);
    border: 1px solid rgba(34,197,94,.28);
    border-radius: 4px;
    z-index: 3;
    transition: border-color .2s ease, background .2s ease;
}
.gfst-example:hover .gfst-example__num {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.16);
}

.gfst-example__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: #0b0f13;
    overflow: hidden;
}
.gfst-example__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.gfst-example:hover .gfst-example__img {
    transform: scale(1.04);
}

.gfst-example__zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    background: rgba(11,15,19,.88);
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 6px;
    color: var(--gf-green, #22c55e);
    opacity: 0;
    transform: scale(.85) translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2;
    pointer-events: none;
}
.gfst-example:hover .gfst-example__zoom,
.gfst-example:focus-visible .gfst-example__zoom {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Placeholder когда картинка упала - hatched + dashed + mono-текст */
.gfst-example__media.is-placeholder {
    background:
        repeating-linear-gradient(135deg,
            rgba(34,197,94,.045) 0 8px,
            transparent 8px 16px),
        linear-gradient(135deg, #141a20 0%, #0b0f13 100%);
}
.gfst-example__media.is-placeholder .gfst-example__img { opacity: 0; }
.gfst-example__media.is-placeholder::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(34,197,94,.22);
    border-radius: 4px;
    pointer-events: none;
}
.gfst-example__media.is-placeholder::after {
    content: 'ожидает заливки';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(34,197,94,.55);
}

.gfst-example__caption {
    position: relative;
    display: block;
    padding: 10px 12px 11px;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gf-text-dim, #a1a1aa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}
.gfst-example__caption::before {
    content: '';
    position: absolute;
    left: 12px; right: 12px; top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(34,197,94,.5), rgba(34,197,94,0) 70%);
    opacity: .55;
    transition: opacity .2s ease, background .2s ease;
}
.gfst-example:hover .gfst-example__caption,
.gfst-example:focus-visible .gfst-example__caption {
    color: var(--gf-green, #22c55e);
}
.gfst-example:hover .gfst-example__caption::before,
.gfst-example:focus-visible .gfst-example__caption::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(34,197,94,.9), rgba(34,197,94,.15) 100%);
}

/* ---------- Lightbox ---------- */
.gfst-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: none;
}
.gfst-lightbox[data-open="true"] { display: block; }
.gfst-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,6,10,.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: gfst-fadeIn .22s ease-out;
    cursor: zoom-out;
}
.gfst-lightbox__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: gfst-scaleIn .3s cubic-bezier(.2,.8,.2,1);
}
.gfst-lightbox__img-wrap {
    position: relative;
    background: #0b0f13;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(34,197,94,.22);
    box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(34,197,94,.08);
}
.gfst-lightbox__img {
    display: block;
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    background: #0b0f13;
}
.gfst-lightbox__corner {
    position: absolute;
    width: 16px; height: 16px;
    border: 1.5px solid rgba(34,197,94,.7);
    pointer-events: none;
    z-index: 2;
}
.gfst-lightbox__corner--tl { top: -8px; left: -8px;  border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.gfst-lightbox__corner--tr { top: -8px; right: -8px; border-left: 0;  border-bottom: 0; border-top-right-radius: 3px; }
.gfst-lightbox__corner--bl { bottom: -8px; left: -8px;  border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.gfst-lightbox__corner--br { bottom: -8px; right: -8px; border-left: 0;  border-top: 0; border-bottom-right-radius: 3px; }

.gfst-lightbox__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 0;
    font-family: var(--gfd-mono, ui-monospace, 'Cascadia Code', Menlo, monospace);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.gfst-lightbox__title { color: var(--gf-text, #e4e4e7); font-weight: 700; }
.gfst-lightbox__index { color: var(--gf-green, #22c55e); font-weight: 700; letter-spacing: .18em; }

.gfst-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 34px; height: 34px;
    padding: 0;
    background: rgba(11,15,19,.85);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: var(--gf-text, #e4e4e7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
    z-index: 3;
}
.gfst-lightbox__close:hover {
    background: rgba(239,68,68,.18);
    border-color: rgba(239,68,68,.5);
    color: #ef4444;
}

@keyframes gfst-fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gfst-fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes gfst-scaleIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 720px) {
    .gfst-examples__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gfst-examples__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        margin: 0 -16px;
        padding: 0 16px 6px;
        -webkit-overflow-scrolling: touch;
    }
    .gfst-example {
        flex: 0 0 180px;
        scroll-snap-align: start;
    }
    .gfst-lightbox__close { top: 8px; right: 8px; }
    .gfst-lightbox__img { max-height: 75vh; }
}

@media (prefers-reduced-motion: reduce) {
    .gfst-examples__intro,
    .gfst-example {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .gfst-lightbox__backdrop,
    .gfst-lightbox__frame { animation: none !important; }
    .gfst-example__img { transition: none !important; }
}
