.vlfp-portal,
.vlfp-admin .vlfp-panel {
    box-sizing: border-box;
}

.vlfp-portal *,
.vlfp-portal *::before,
.vlfp-portal *::after {
    box-sizing: border-box;
}

.vlfp-portal {
    width: min(1100px, 100%);
    margin: 48px auto;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(0, 255, 135, 0.18);
    border-radius: 15px;
    background: #1A1A1A;
    color: #FFFFFF;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.vlfp-portal h2,
.vlfp-portal h3,
.vlfp-portal h4 {
    color: #FFFFFF !important;
    font-family: 'Oswald', 'Impact', sans-serif !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.vlfp-portal .vlfp-portal-header h2 {
    margin: 0 0 6px !important;
    font-size: clamp(1.8rem, 4vw, 2.7rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
}

.vlfp-portal .vlfp-file-group-header h3,
.vlfp-portal .vlfp-empty-state h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.vlfp-portal .vlfp-file-card h4 {
    margin: 0 0 4px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.vlfp-portal label,
.vlfp-admin label {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 600;
}

.vlfp-portal input[type="text"],
.vlfp-portal input[type="password"],
.vlfp-admin input[type="text"],
.vlfp-admin input[type="email"],
.vlfp-admin input[type="file"] {
    width: 100%;
    max-width: 520px;
}

.vlfp-portal input[type="text"],
.vlfp-portal input[type="password"] {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #2D2D2D;
    border-radius: 6px;
    background: #0F0F0F;
    color: #FFFFFF;
}

.vlfp-portal input[type="text"]:focus,
.vlfp-portal input[type="password"]:focus {
    border-color: #00FF87;
    box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12);
    outline: none;
}

.vlfp-portal label {
    color: #FFFFFF;
}

.vlfp-inline {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
}

.vlfp-login {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.8fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.vlfp-login-form-panel {
    min-width: 0;
}

.vlfp-login-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 32px;
    border-left: 1px solid rgba(0, 255, 135, 0.16);
    background:
        radial-gradient(circle at center, rgba(0, 255, 135, 0.12) 0%, rgba(0, 255, 135, 0.04) 38%, transparent 68%);
}

.vlfp-login-brand-panel img {
    display: block;
    width: min(260px, 80%);
    height: auto;
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 20px 45px rgba(0, 255, 135, 0.18));
}

.vlfp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #00FF87;
    border-radius: 6px;
    background: linear-gradient(135deg, #00FF87 0%, #00D472 100%);
    color: #0A0A0A !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vlfp-button:hover,
.vlfp-button:focus {
    background: linear-gradient(135deg, #39FF14 0%, #00FF87 100%);
    box-shadow: 0 12px 30px rgba(0, 255, 135, 0.22);
    color: #0A0A0A !important;
    transform: translateY(-2px);
}

.vlfp-button-secondary {
    border-color: #2D2D2D;
    background: transparent;
    color: #B0B0B0 !important;
}

.vlfp-button-secondary:hover,
.vlfp-button-secondary:focus {
    border-color: #00FF87;
    background: rgba(0, 255, 135, 0.08);
    color: #00FF87 !important;
}

.vlfp-portal-header,
.vlfp-file-card,
.vlfp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vlfp-portal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2D2D2D;
}

.vlfp-portal-header p,
.vlfp-file-card p {
    margin: 4px 0 0;
    color: #B0B0B0;
}

.vlfp-portal-header p span {
    display: block;
    margin-top: 4px;
    color: #00FF87;
    font-size: 13px;
    font-weight: 700;
}

.vlfp-file-list {
    display: grid;
    gap: 12px;
}

.vlfp-file-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #2D2D2D;
    border-radius: 12px;
    background: #0F0F0F;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vlfp-file-card:hover {
    border-color: rgba(0, 255, 135, 0.45);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.vlfp-file-card span {
    margin-left: 8px;
}

.vlfp-file-details {
    min-width: 0;
}

.vlfp-file-details p {
    overflow-wrap: anywhere;
}

.vlfp-file-icon,
.vlfp-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 135, 0.35);
    border-radius: 6px;
    background: rgba(0, 255, 135, 0.08);
    color: #00FF87;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.vlfp-file-icon {
    width: 48px;
    height: 48px;
    text-transform: uppercase;
}

.vlfp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.vlfp-summary-card {
    padding: 14px;
    border: 1px solid #2D2D2D;
    border-radius: 12px;
    background: #0F0F0F;
}

.vlfp-summary-card span {
    display: block;
    margin-bottom: 6px;
    color: #B0B0B0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vlfp-summary-card strong {
    display: block;
    color: #00FF87;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    line-height: 1.1;
}

.vlfp-type-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.vlfp-type-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #2D2D2D;
    border-radius: 6px;
    background: transparent;
    color: #B0B0B0;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.vlfp-type-nav a:hover,
.vlfp-type-nav a:focus {
    border-color: #00FF87;
    color: #00FF87;
    text-shadow: none;
}

.vlfp-type-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(0, 255, 135, 0.12);
    color: #00FF87;
    font-size: 12px;
}

.vlfp-file-groups {
    display: grid;
    gap: 22px;
}

.vlfp-page-status {
    margin: -4px 0 18px;
    color: #B0B0B0;
    font-size: 14px;
    font-weight: 700;
}

.vlfp-file-group {
    scroll-margin-top: 28px;
}

.vlfp-file-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2D2D2D;
}

.vlfp-file-group-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vlfp-file-group-header > span {
    flex: 0 0 auto;
    color: #B0B0B0;
    font-size: 13px;
    font-weight: 700;
}

.vlfp-type-badge {
    min-width: 42px;
    height: 30px;
    padding: 0 8px;
}

.vlfp-error {
    padding: 10px 12px;
    border-left: 4px solid #00FF87;
    background: rgba(0, 255, 135, 0.08);
    color: #FFFFFF;
}

.vlfp-empty-state {
    padding: 22px;
    border: 1px dashed rgba(0, 255, 135, 0.35);
    border-radius: 12px;
    background: rgba(0, 255, 135, 0.04);
}

.vlfp-empty-state p {
    margin: 8px 0 16px;
    color: #B0B0B0;
}

.vlfp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #2D2D2D;
}

.vlfp-page-link,
.vlfp-page-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vlfp-page-link {
    border: 1px solid #2D2D2D;
    background: transparent;
    color: #B0B0B0;
    text-decoration: none;
}

.vlfp-page-link:hover,
.vlfp-page-link:focus,
.vlfp-page-link.is-current {
    border-color: #00FF87;
    background: rgba(0, 255, 135, 0.1);
    color: #00FF87;
    text-shadow: none;
}

.vlfp-page-link.is-current {
    cursor: default;
}

.vlfp-page-gap {
    color: #B0B0B0;
}

.vlfp-admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(420px, 1fr);
    gap: 20px;
    align-items: start;
}

.vlfp-admin .vlfp-panel {
    padding: 18px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.vlfp-user-list {
    max-width: 640px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #dcdcde;
}

.vlfp-user-list legend {
    padding: 0 6px;
    font-weight: 700;
}

.vlfp-user-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.vlfp-user-list .vlfp-select-all-users {
    margin: 2px 0 12px;
    padding: 10px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
    font-weight: 700;
}

.vlfp-user-list span,
.vlfp-muted {
    color: #646970;
}

.vlfp-file-admin-row {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dcdcde;
    background: #fbfbfc;
}

.vlfp-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .vlfp-admin-grid {
        grid-template-columns: 1fr;
    }

    .vlfp-portal-header,
    .vlfp-file-card,
    .vlfp-file-group-header {
        align-items: stretch;
        flex-direction: column;
    }

    .vlfp-summary-grid {
        grid-template-columns: 1fr;
    }

    .vlfp-login {
        grid-template-columns: 1fr;
    }

    .vlfp-login-brand-panel {
        order: -1;
        min-height: auto;
        padding: 0 0 18px;
        border-left: 0;
        border-bottom: 1px solid rgba(0, 255, 135, 0.16);
    }

    .vlfp-login-brand-panel img {
        width: min(180px, 58%);
        max-height: 180px;
    }

    .vlfp-file-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .vlfp-file-card .vlfp-button {
        grid-column: 1 / -1;
    }

    .vlfp-button {
        width: 100%;
    }
}
