﻿* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0
}

body {
    font-family: Arial,"Segoe UI",Tahoma,sans-serif;
    background: #f3f4f6;
    color: #111827;
}

img {
    display: block;
    max-width: 100%
}

.container {
    width: min(1180px,calc(100% - 32px));
    margin: 0 auto
}

.ff-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(5,120,80,.12), transparent 24%), linear-gradient(180deg,#f8f8f8 0%,#eef2f7 100%);
}

/* HERO */
.ff-hero {
    padding: 28px 0 0;
}

.ff-poster-wrap {
    border-radius: 36px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15,23,42,.12);
}

.ff-poster {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* MAIN */
.ff-main {
    margin-top: 28px;
    padding-bottom: 48px;
}

.ff-top-intro {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
    margin-bottom: 22px;
}

.ff-intro-card,
.ff-info-tile,
.ff-form-shell {
    border-radius: 30px;
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.ff-intro-main {
    padding: 28px;
    background: linear-gradient(135deg,#08b36d,#00a8a8);
    color: #fff;
}

    .ff-intro-main h1 {
        margin: 0 0 12px;
        font-size: clamp(30px,4vw,48px);
        line-height: 1.08;
        font-weight: 900;
    }

    .ff-intro-main p {
        margin: 0;
        font-size: 16px;
        line-height: 1.75;
        color: rgba(255,255,255,.95);
    }

.ff-intro-side {
    display: grid;
    gap: 20px;
}

.ff-info-tile {
    padding: 22px;
    color: #fff;
}

.ff-red {
    background: linear-gradient(135deg,#ea003f,#ac0035)
}

.ff-blue {
    background: linear-gradient(135deg,#23b7d4,#2a5bd7)
}

.ff-tile-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ff-tile-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
}

.ff-tile-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.94);
}

/* BADGES */
.ff-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.ff-badge-green {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}

.ff-badge-dark {
    background: #0f172a;
    color: #fff;
}

/* FORM */
.ff-form-shell {
    background: #fff;
    padding: 30px;
    border: 1px solid #e8edf3;
}

.ff-form-head {
    margin-bottom: 24px;
}

    .ff-form-head h2 {
        margin: 0 0 8px;
        font-size: clamp(28px,3vw,38px);
        line-height: 1.08;
        font-weight: 900;
        color: #0f172a;
    }

    .ff-form-head p {
        margin: 0;
        color: #64748b;
        font-size: 15px;
    }

.required {
    color: #e6003d;
    font-weight: 800;
}

.success-box {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg,#e8fff3,#f2fffb);
    border: 1px solid #bdebd4;
    color: #046c4e;
    font-weight: 700;
}

.ff-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.full {
    grid-column: 1/-1;
}

.field label {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

/* INPUT */
.text-input,
.select-input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #dbe2ea;
    background: #fbfcfe;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    transition: .25s ease;
}

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

    .text-input:focus,
    .select-input:focus {
        background: #fff;
        border-color: #08b36d;
        box-shadow: 0 0 0 4px rgba(8,179,109,.12);
    }

.select-wrap {
    position: relative
}

.select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 46px;
    cursor: pointer;
}

    .select-input:disabled {
        cursor: not-allowed;
        background: #f3f4f6;
        color: #94a3b8;
    }

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 18px;
    font-weight: 800;
}

.field-note {
    min-height: 18px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

/* CHOICE */
.ff-choice-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.ff-choice-grid-2 {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.ff-choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 82px;
    padding: 18px;
    border-radius: 22px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .25s ease;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

    .ff-choice:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(15,23,42,.10);
    }

    .ff-choice input[type=radio] {
        margin-top: 4px;
        transform: scale(1.12);
    }

    .ff-choice span {
        font-size: 15px;
        line-height: 1.6;
        font-weight: 700;
    }

.ff-green {
    background: linear-gradient(135deg,#08b36d,#19d18c);
    color: #fff;
}

.ff-red-soft {
    background: linear-gradient(135deg,#ea003f,#cf3c74);
    color: #fff;
}

.ff-blue-soft {
    background: linear-gradient(135deg,#24b6d3,#5c74ff);
    color: #fff;
}

.ff-yellow {
    background: linear-gradient(135deg,#f3e300,#d6bb00);
    color: #17212f;
}

.ff-white {
    background: linear-gradient(180deg,#fff,#f8fafc);
    border-color: #e5e7eb;
    color: #0f172a;
}

/* BUTTON */
.submit-wrap {
    padding-top: 4px
}

.submit-btn {
    border: none;
    cursor: pointer;
    transition: .25s ease;
}

.ff-submit {
    width: 100%;
    min-height: 60px;
    border-radius: 20px;
    padding: 0 24px;
    background: linear-gradient(135deg,#0b144a,#e6003d);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .01em;
    box-shadow: 0 22px 52px rgba(11,20,74,.22);
}

    .ff-submit:hover {
        transform: translateY(-2px);
        filter: brightness(1.03);
    }

/* MOBILE */
@media (max-width: 1024px) {
    .ff-top-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 20px,1180px)
    }

    .ff-poster-wrap,
    .ff-intro-card,
    .ff-info-tile,
    .ff-form-shell {
        border-radius: 22px;
    }

    .ff-intro-main,
    .ff-info-tile,
    .ff-form-shell {
        padding: 20px;
    }

    .ff-grid,
    .ff-choice-grid,
    .ff-choice-grid-2 {
        grid-template-columns: 1fr;
    }

    .text-input,
    .select-input {
        min-height: 54px;
        border-radius: 16px;
    }

    .ff-choice {
        min-height: 72px;
        border-radius: 18px;
        padding: 15px;
    }
}
.field-error {
    border-color: #e6003d !important;
    box-shadow: 0 0 0 4px rgba(230, 0, 61, .12) !important;
    background: #fff7fa !important;
}

.upd-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: .22s ease;
}

    .upd-popup-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.upd-popup {
    width: min(460px, 100%);
    border-radius: 28px;
    padding: 28px 24px 22px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
    transform: translateY(16px) scale(.96);
    transition: .22s ease;
    text-align: center;
}

.upd-popup-overlay.show .upd-popup {
    transform: translateY(0) scale(1);
}

.upd-popup-icon {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 16px;
}

.upd-popup-success .upd-popup-icon {
    background: linear-gradient(135deg, #08b36d, #13d98d);
    color: #fff;
    box-shadow: 0 18px 36px rgba(8, 179, 109, .22);
}

.upd-popup-error .upd-popup-icon {
    background: linear-gradient(135deg, #e6003d, #ff5b7f);
    color: #fff;
    box-shadow: 0 18px 36px rgba(230, 0, 61, .22);
}

.upd-popup-title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.upd-popup-text {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 18px;
}

.upd-popup-btn {
    min-width: 140px;
    min-height: 48px;
    border: none;
    border-radius: 16px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0b144a, #e6003d);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(11, 20, 74, .18);
    transition: .2s ease;
}

    .upd-popup-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }
.field-error {
    border-color: #e6003d !important;
    box-shadow: 0 0 0 4px rgba(230, 0, 61, .12) !important;
    background: #fff7fa !important;
}
.ff-footer {
    margin-top: 28px;
    padding: 0 0 28px;
}

.ff-footer-inner {
   /* background: linear-gradient(135deg, #0b144a, #18275f);
    color: rgba(255,255,255,.92);*/
    border-radius: 24px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(11, 20, 74, .16);
}

    .ff-footer-inner p {
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
        font-weight: 600;
        letter-spacing: .02em;
    }

@media (max-width: 768px) {
    .ff-footer {
        margin-top: 20px;
        padding-bottom: 20px;
    }

    .ff-footer-inner {
        border-radius: 18px;
        padding: 16px;
    }

        .ff-footer-inner p {
            font-size: 13px;
        }
}
.view-toolbar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.view-userbox {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.view-usertext {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg,#eef5ff,#f8fbff);
    color: #0b144a;
    font-weight: 800;
    border: 1px solid #dce6f7;
}

.view-filter-card {
    border-radius: 24px;
    background: linear-gradient(180deg,#fbfcff,#f7fafc);
    border: 1px solid #e6edf5;
    padding: 20px;
    margin-bottom: 22px;
}

.view-filter-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.view-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.view-btn {
    min-height: 48px;
    border: none;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

    .view-btn:hover {
        transform: translateY(-1px);
    }

.view-btn-primary {
    background: linear-gradient(135deg,#0b144a,#e6003d);
    color: #fff;
    box-shadow: 0 16px 30px rgba(11,20,74,.15);
}

.view-btn-secondary {
    background: linear-gradient(135deg,#08b36d,#19d18c);
    color: #fff;
    box-shadow: 0 16px 30px rgba(8,179,109,.15);
}

.view-btn-logout {
    background: linear-gradient(135deg,#ea003f,#cf3c74);
    color: #fff;
    box-shadow: 0 16px 30px rgba(234,0,63,.15);
}

.view-message {
    display: block;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.view-message-error {
    background: #fff1f5;
    color: #b0003a;
    border: 1px solid #ffc8d8;
}

.view-message-info {
    background: #eef8ff;
    color: #0b4f79;
    border: 1px solid #cce9ff;
}

.view-grid-shell {
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid #e8edf3;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.view-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

    .view-grid th {
        background: linear-gradient(135deg,#0b144a,#1d2d72);
        color: #fff;
        padding: 14px 12px;
        text-align: left;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
        position: sticky;
        top: 0;
    }

    .view-grid td {
        padding: 12px;
        border-bottom: 1px solid #edf2f7;
        font-size: 14px;
        line-height: 1.55;
        vertical-align: top;
        color: #1f2937;
    }

.view-grid-row {
    background: #ffffff;
}

.view-grid-row-alt {
    background: #f8fbff;
}

.view-grid tr:hover td {
    background: #eef8ff;
}

.view-grid-pager {
    background: #fff;
    padding: 14px;
    text-align: center;
}

    .view-grid-pager table {
        margin: 0 auto;
    }

    .view-grid-pager a,
    .view-grid-pager span {
        display: inline-block;
        min-width: 36px;
        height: 36px;
        line-height: 36px;
        margin: 0 4px;
        border-radius: 12px;
        text-align: center;
        text-decoration: none;
        font-weight: 800;
    }

    .view-grid-pager a {
        background: #eef2ff;
        color: #0b144a;
    }

    .view-grid-pager span {
        background: linear-gradient(135deg,#08b36d,#19d18c);
        color: #fff;
    }

@media (max-width: 768px) {
    .view-filter-grid {
        grid-template-columns: 1fr;
    }

    .view-filter-actions {
        flex-direction: column;
    }

    .view-btn {
        width: 100%;
    }
}