html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================
   PRIME - LOGIN PREMIUM
========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #07110f;
    color: #f5f2eb;
}

header, footer {
    display: none !important;
}

.prime-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(44, 190, 155, 0.14), transparent 28%),
        radial-gradient(circle at 20% 50%, rgba(31, 112, 91, 0.10), transparent 34%),
        linear-gradient(145deg, #06100e, #091713 55%, #030605);
}

.prime-box {
    width: min(500px, calc(100vw - 40px));
    text-align: center;
    padding: 28px 42px 26px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(20, 42, 35, 0.94), rgba(7, 17, 15, 0.97));
    border: 1px solid rgba(205, 169, 80, 0.46);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
    animation: primeBoxIn 0.9s ease-out both;
}

.prime-logo-img {
    width: min(225px, 68%);
    display: block;
    margin: -10px auto 2px;
    background: transparent;
    animation: primeLogoIn 1.1s ease-out both;
}

.prime-line {
    width: 92px;
    height: 1px;
    margin: 0 auto 18px;
    background: linear-gradient(90deg, transparent, #e0cf9a, transparent);
    opacity: 0.85;
}

.prime-description {
    margin-bottom: 24px;
    color: rgba(245, 242, 235, 0.62);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.prime-login-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: 1px solid rgba(255, 224, 139, 0.72);
    border-radius: 12px;
    background: linear-gradient(115deg, #c19a43 0%, #f0dc9a 38%, #a9792f 72%, #d8bb6c 100%);
    color: #07110f;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(169, 121, 47, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

    .prime-login-submit::after {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -45% auto -45% -34%;
        width: 28%;
        transform: skewX(-22deg);
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
        animation: primeLoginShine 3.6s ease-in-out infinite;
    }

    .prime-login-submit:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
        box-shadow: 0 13px 34px rgba(205, 169, 80, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.48);
    }

.prime-footer {
    margin-top: 24px;
    color: rgba(245, 242, 235, 0.36);
    font-size: 12px;
    letter-spacing: 0.4px;
}

.prime-signature {
    position: fixed;
    right: 34px;
    bottom: 26px;
    color: rgba(245, 242, 235, 0.22);
    font-size: 11px;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
}

.prime-description,
.prime-login-submit,
.prime-footer {
    animation: primeFadeUp 1s ease-out both;
}

.prime-description {
    animation-delay: 0.25s;
}

.prime-login-submit {
    animation-delay: 0.38s;
}

@keyframes primeLoginShine {
    0%, 46% { left: -34%; }
    68%, 100% { left: 122%; }
}

.prime-footer {
    animation-delay: 0.55s;
}

@keyframes primeBoxIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes primeLogoIn {
    from {
        opacity: 0;
        transform: scale(0.92);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes primeFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PRIME CORE
========================= */

.core-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(44, 190, 155, 0.14), transparent 34%), linear-gradient(145deg, #06100e, #0b211c, #030605);
    color: #f5f2eb;
    padding: 34px 48px;
}

.core-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.core-logo {
    width: 120px;
    display: block;
}

.core-user {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(224, 207, 154, 0.18);
    color: rgba(245, 242, 235, 0.62);
    font-size: 13px;
}

.core-content {
    max-width: 1120px;
    margin: 90px auto 0;
}

.core-title h1 {
    margin: 0;
    font-size: 42px;
    color: #e0cf9a;
    letter-spacing: 1px;
}

.core-title p {
    margin-top: 12px;
    color: rgba(245, 242, 235, 0.58);
    font-size: 15px;
}

.company-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.company-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 22px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.20);
    transition: 0.2s ease;
    animation: cardEnter 0.7s ease-out both;
}

    .company-card h2 {
        margin: 38px 0 0;
        color: #f5f2eb;
        font-size: 22px;
        letter-spacing: 1px;
    }

    .company-card p {
        margin-top: 12px;
        color: rgba(245, 242, 235, 0.48);
        font-size: 13px;
        line-height: 1.5;
    }

.company-status {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.company-card.active .company-status {
    background: rgba(44, 190, 155, 0.12);
    color: #2cbe9b;
    border: 1px solid rgba(44, 190, 155, 0.25);
}

.company-card.waiting {
    opacity: 0.58;
}

    .company-card.waiting .company-status {
        background: rgba(245, 242, 235, 0.06);
        color: rgba(245, 242, 235, 0.45);
        border: 1px solid rgba(245, 242, 235, 0.08);
    }

.company-card.active:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 207, 154, 0.32);
}

.company-card:nth-child(1) {
    animation-delay: 0.08s;
}

.company-card:nth-child(2) {
    animation-delay: 0.16s;
}

.company-card:nth-child(3) {
    animation-delay: 0.24s;
}

.company-card:nth-child(4) {
    animation-delay: 0.32s;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   ELECTRON DASHBOARD
========================= */

.electron-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(44, 190, 155, 0.14), transparent 34%), linear-gradient(145deg, #06100e, #0b211c, #030605);
    color: #f5f2eb;
    padding: 34px 48px;
}

.electron-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    color: #e0cf9a;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.2px;
    background: rgba(224, 207, 154, 0.10);
    border: 1px solid rgba(224, 207, 154, 0.32);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    transition: 0.2s ease;
}

    .back-link:hover {
        color: #07110f;
        background: linear-gradient(135deg, #e0cf9a, #a98a42);
        border-color: rgba(224, 207, 154, 0.55);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
        transform: translateY(-2px);
    }

.electron-dashboard {
    max-width: 1180px;
    margin: 70px auto 0;
}

.electron-top {
    margin-bottom: 38px;
}

    .electron-top span {
        color: #2cbe9b;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .electron-top h1 {
        margin: 10px 0 0;
        font-size: 38px;
        color: #e0cf9a;
        letter-spacing: 2px;
    }

    .electron-top p {
        margin-top: 10px;
        color: rgba(245, 242, 235, 0.56);
        font-size: 14px;
    }

.modules-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ema-module-card {
    min-height: 235px;
    padding: 26px;
    border-radius: 24px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
    color: #f5f2eb;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
}

    .ema-module-card.active {
        border-color: rgba(224, 207, 154, 0.34);
        background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.10), transparent 38%), rgba(255, 255, 255, 0.045);
    }

        .ema-module-card.active:hover {
            transform: translateY(-5px);
            box-shadow: 0 34px 90px rgba(0, 0, 0, 0.30);
        }

    .ema-module-card.waiting {
        opacity: 0.48;
    }

.module-tag {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.7px;
}

    .module-tag.active {
        color: #2cbe9b;
        background: rgba(44, 190, 155, 0.12);
        border: 1px solid rgba(44, 190, 155, 0.26);
    }

    .module-tag.waiting {
        color: rgba(245, 242, 235, 0.45);
        background: rgba(245, 242, 235, 0.06);
        border: 1px solid rgba(245, 242, 235, 0.08);
    }

.ema-module-card h2 {
    margin: 34px 0 0;
    font-size: 25px;
    color: #f5f2eb;
}

.ema-module-card p {
    margin-top: 14px;
    color: rgba(245, 242, 235, 0.52);
    font-size: 13px;
    line-height: 1.6;
}

.module-action {
    margin-top: auto;
    padding-top: 24px;
    color: #e0cf9a;
    font-size: 13px;
    font-weight: 750;
}

    .module-action.disabled {
        color: rgba(245, 242, 235, 0.34);
    }

/* =========================
   ELECTRON - SERVICES
========================= */

.services-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    min-height: 260px;
    padding: 28px;
    border-radius: 26px;
    text-decoration: none;
    color: #f5f2eb;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.08), transparent 36%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    transition: 0.22s ease;
}

    .service-card.active:hover {
        transform: translateY(-5px);
        border-color: rgba(224, 207, 154, 0.36);
        box-shadow: 0 36px 95px rgba(0, 0, 0, 0.34);
    }

    .service-card.waiting {
        opacity: 0.58;
    }

.service-tag {
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.7px;
}

    .service-tag.active {
        color: #2cbe9b;
        background: rgba(44, 190, 155, 0.12);
        border: 1px solid rgba(44, 190, 155, 0.26);
    }

    .service-tag.waiting {
        color: rgba(245, 242, 235, 0.45);
        background: rgba(245, 242, 235, 0.06);
        border: 1px solid rgba(245, 242, 235, 0.08);
    }

.service-card h2 {
    margin: 42px 0 0;
    font-size: 26px;
    color: #f5f2eb;
    letter-spacing: 1.2px;
}

.service-card p {
    margin-top: 15px;
    color: rgba(245, 242, 235, 0.52);
    font-size: 13px;
    line-height: 1.6;
}

.service-action {
    margin-top: auto;
    padding-top: 26px;
    color: #e0cf9a;
    font-size: 13px;
    font-weight: 750;
}

    .service-action.disabled {
        color: rgba(245, 242, 235, 0.34);
    }

/* =========================
   PRIME ADMIN USERS
========================= */

.admin-users-page {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(44, 190, 155, 0.14), transparent 34%), linear-gradient(145deg, #06100e, #0b211c, #030605);
    color: #f5f2eb;
    padding: 34px 48px;
}

.admin-users-content {
    max-width: 1180px;
    margin: 70px auto 0;
}

.prime-table-card {
    margin-top: 34px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
    overflow-x: auto;
}

.prime-users-table {
    width: 100%;
    border-collapse: collapse;
}

    .prime-users-table th {
        text-align: left;
        padding: 14px 12px;
        color: #e0cf9a;
        font-size: 12px;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(224, 207, 154, 0.18);
    }

    .prime-users-table td {
        padding: 16px 12px;
        color: rgba(245, 242, 235, 0.72);
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

.user-id {
    font-size: 11px;
    color: rgba(245, 242, 235, 0.38);
}

.status-ok {
    padding: 6px 10px;
    border-radius: 999px;
    color: #2cbe9b;
    background: rgba(44, 190, 155, 0.12);
    border: 1px solid rgba(44, 190, 155, 0.25);
    font-size: 11px;
    font-weight: 800;
}

.status-wait {
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(245, 242, 235, 0.46);
    background: rgba(245, 242, 235, 0.06);
    border: 1px solid rgba(245, 242, 235, 0.10);
    font-size: 11px;
    font-weight: 800;
}

.prime-small-btn {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 999px;
    text-decoration: none;
    color: #07110f;
    background: linear-gradient(135deg, #e0cf9a, #a98a42);
    font-size: 12px;
    font-weight: 800;
}

    .prime-small-btn:hover {
        filter: brightness(1.05);
        color: #07110f;
    }

/* =========================
   PRIME USER RIGHTS
========================= */

.rights-form {
    margin-top: 34px;
}

.rights-section {
    margin-bottom: 34px;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.18);
}

    .rights-section h2 {
        margin: 0 0 20px;
        color: #e0cf9a;
        font-size: 18px;
        letter-spacing: 0.7px;
    }

.rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.right-card {
    min-height: 104px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(224, 207, 154, 0.12);
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    transition: 0.2s ease;
}

    .right-card:hover {
        border-color: rgba(224, 207, 154, 0.30);
        background: rgba(255, 255, 255, 0.045);
    }

    .right-card input {
        margin-top: 3px;
        accent-color: #e0cf9a;
    }

    .right-card strong {
        display: block;
        color: #f5f2eb;
        font-size: 14px;
        margin-bottom: 7px;
    }

    .right-card small {
        display: block;
        color: rgba(245, 242, 235, 0.48);
        font-size: 12px;
        line-height: 1.45;
    }

.rights-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

.prime-save-btn {
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #e0cf9a, #a98a42);
    color: #07110f;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

    .prime-save-btn:hover {
        filter: brightness(1.05);
    }

.prime-success-message {
    margin-top: 24px;
    padding: 15px 18px;
    border-radius: 16px;
    color: #2cbe9b;
    background: rgba(44, 190, 155, 0.10);
    border: 1px solid rgba(44, 190, 155, 0.22);
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   PRIME LOGIN FORM
========================= */

.prime-login-form {
    width: 100%;
    text-align: left;
}

    .prime-login-form label {
        display: block;
        margin: 0 0 8px 2px;
        color: #dcc47d;
        font-size: 12px;
        font-weight: 750;
        letter-spacing: 0.35px;
    }

    .prime-login-form input {
        width: 100%;
        height: 50px;
        margin-bottom: 17px;
        padding: 0 16px;
        border-radius: 11px;
        border: 1px solid rgba(205, 169, 80, 0.32);
        background: rgba(2, 10, 8, 0.58);
        color: #f5f2eb;
        outline: none;
        font-size: 14px;
        caret-color: #e0cf9a;
        box-shadow: inset 0 0 0 1000px rgba(2, 10, 8, 0.58);
        -webkit-text-fill-color: #f5f2eb;
        transition: border-color 180ms ease, box-shadow 180ms ease;
    }

        .prime-login-form input:-webkit-autofill,
        .prime-login-form input:-webkit-autofill:hover,
        .prime-login-form input:-webkit-autofill:focus,
        .prime-login-form input:-webkit-autofill:active {
            border-color: rgba(205, 169, 80, 0.32);
            -webkit-text-fill-color: #f5f2eb !important;
            -webkit-box-shadow: 0 0 0 1000px #07110f inset !important;
            box-shadow: 0 0 0 1000px #07110f inset !important;
            caret-color: #e0cf9a;
            transition: background-color 9999s ease-out 0s;
        }

        .prime-login-form input::placeholder {
            color: rgba(245, 242, 235, 0.42);
        }

        .prime-login-form input:focus {
            border-color: rgba(224, 207, 154, 0.78);
            box-shadow: 0 0 0 3px rgba(205, 169, 80, 0.08);
        }

.prime-password-field {
    position: relative;
}

    .prime-password-field input {
        padding-right: 52px;
    }

.prime-password-toggle {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
}

    .prime-password-toggle span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 19px;
        height: 12px;
        border: 1.5px solid #d8b657;
        border-radius: 50% / 58%;
        transform: translate(-50%, -50%);
    }

        .prime-password-toggle span::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #d8b657;
            transform: translate(-50%, -50%);
        }

    .prime-password-toggle[aria-pressed="true"] span::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -2px;
        width: 22px;
        height: 1.5px;
        background: #d8b657;
        transform: rotate(-35deg);
    }

.prime-login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(180, 55, 55, 0.14);
    border: 1px solid rgba(180, 55, 55, 0.35);
    color: #ffb3b3;
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   PRIME CORE ADMIN ACCESS
========================= */

.core-user-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 12px 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(224, 207, 154, 0.18);
    color: rgba(245, 242, 235, 0.62);
    font-size: 13px;
}

.logout-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(224, 207, 154, 0.12);
    color: #e0cf9a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .logout-btn:hover {
        background: rgba(224, 207, 154, 0.22);
    }

.core-title span {
    color: #2cbe9b;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1px;
}

.prime-admin-access {
    margin-top: 36px;
    margin-bottom: 34px;
}

.admin-access-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-radius: 22px;
    text-decoration: none;
    background: radial-gradient(circle at top right, rgba(224, 207, 154, 0.10), transparent 34%), rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(224, 207, 154, 0.22);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
    transition: 0.2s ease;
}

    .admin-access-card:hover {
        transform: translateY(-3px);
        border-color: rgba(224, 207, 154, 0.40);
    }

    .admin-access-card strong {
        display: block;
        color: #e0cf9a;
        font-size: 20px;
        letter-spacing: 0.6px;
    }

    .admin-access-card p {
        margin: 8px 0 0;
        color: rgba(245, 242, 235, 0.52);
        font-size: 13px;
    }

    .admin-access-card span {
        color: #e0cf9a;
        font-size: 13px;
        font-weight: 850;
    }

/* =========================
   PRIME CREATE USER
========================= */

.prime-admin-toolbar {
    margin-top: 26px;
    display: flex;
    justify-content: flex-end;
}

.prime-create-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #07110f;
    background: linear-gradient(135deg, #e0cf9a, #a98a42);
    font-size: 13px;
    font-weight: 850;
}

    .prime-create-btn:hover {
        filter: brightness(1.05);
        color: #07110f;
    }

.prime-create-user-card {
    margin-top: 34px;
    padding: 28px;
    max-width: 620px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
}

.prime-form-row {
    margin-bottom: 18px;
}

    .prime-form-row label {
        display: block;
        margin-bottom: 8px;
        color: #e0cf9a;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .prime-form-row input {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border-radius: 12px;
        border: 1px solid rgba(224, 207, 154, 0.22);
        background: rgba(255, 255, 255, 0.045);
        color: #f5f2eb;
        outline: none;
        font-size: 14px;
    }

        .prime-form-row input::placeholder {
            color: rgba(245, 242, 235, 0.36);
        }

        .prime-form-row input:focus {
            border-color: rgba(224, 207, 154, 0.65);
        }

.prime-create-note {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    color: rgba(245, 242, 235, 0.58);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.10);
    font-size: 13px;
}

/* =========================
   PRIME PASSWORD RULES
========================= */

.password-rules-box {
    margin: -4px 0 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(224, 207, 154, 0.10);
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: rgba(245, 242, 235, 0.48);
    font-size: 13px;
    font-weight: 650;
}

    .password-rule:last-child {
        margin-bottom: 0;
    }

    .password-rule span {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(245, 242, 235, 0.40);
        border: 1px solid rgba(245, 242, 235, 0.16);
        font-size: 12px;
        font-weight: 900;
    }

    .password-rule.valid {
        color: #2cbe9b;
    }

        .password-rule.valid span {
            color: #07110f;
            background: #2cbe9b;
            border-color: #2cbe9b;
        }

/* =========================
   PRIME EMPTY STATE
========================= */

.prime-empty-state {
    margin-top: 34px;
    padding: 24px 28px;
    border-radius: 22px;
    color: rgba(245, 242, 235, 0.58);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    font-size: 14px;
}


.prime-floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(224, 207, 154, 0.28);
    background: rgba(7, 17, 15, 0.82);
    color: #e0cf9a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.4px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    transition: 0.2s ease;
}

    .prime-floating-btn:hover {
        transform: translateY(-2px);
        border-color: rgba(224, 207, 154, 0.55);
        background: rgba(224, 207, 154, 0.14);
        color: #f5f2eb;
    }

    .prime-floating-btn.logout {
        background: linear-gradient(135deg, #e0cf9a, #a98a42);
        color: #07110f;
        border-color: rgba(224, 207, 154, 0.45);
    }

        .prime-floating-btn.logout:hover {
            color: #07110f;
            filter: brightness(1.06);
        }

/* =========================
   PRIME - CLEAN LAYOUT
========================= */

body > header,
body > footer {
    display: none !important;
}

/* =========================
   PRIME USER TOP INFO
========================= */

.core-user-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(224, 207, 154, 0.18);
    background: rgba(255, 255, 255, 0.025);
}

.core-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

    .core-user-info strong {
        color: #f5f2eb;
        font-size: 13px;
        font-weight: 750;
    }

    .core-user-info span {
        margin-top: 3px;
        color: rgba(245, 242, 235, 0.42);
        font-size: 11px;
    }

.logout-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #e0cf9a, #a98a42);
    color: #07110f;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

    .logout-btn:hover {
        filter: brightness(1.06);
    }

/* =========================
   PRIME GLOBAL TOPBAR
========================= */

.prime-global-topbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(7, 17, 15, 0.82);
    border: 1px solid rgba(224, 207, 154, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

    .prime-global-topbar form {
        margin: 0;
    }

.prime-global-home {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e0cf9a;
    background: rgba(224, 207, 154, 0.10);
    border: 1px solid rgba(224, 207, 154, 0.18);
    font-size: 12px;
    font-weight: 850;
}

    .prime-global-home:hover {
        color: #f5f2eb;
        background: rgba(224, 207, 154, 0.16);
    }

.prime-global-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 180px;
    line-height: 1.15;
}

    .prime-global-user span {
        color: rgba(245, 242, 235, 0.42);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .prime-global-user strong {
        margin-top: 3px;
        color: #f5f2eb;
        font-size: 12px;
        font-weight: 750;
    }

.prime-global-alert {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(104, 238, 190, 0.42);
    background: radial-gradient(circle at 35% 28%, rgba(104, 238, 190, 0.22), rgba(7, 17, 15, 0.96) 68%);
    color: #9ff4d0;
    text-decoration: none;
    box-shadow: inset 0 0 18px rgba(104, 238, 190, 0.08), 0 0 18px rgba(104, 238, 190, 0.08);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .prime-global-alert:hover {
        transform: translateY(-1px);
        border-color: rgba(159, 244, 208, 0.82);
        box-shadow: inset 0 0 20px rgba(104, 238, 190, 0.14), 0 0 22px rgba(104, 238, 190, 0.18);
    }

    .prime-global-alert svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.prime-global-alert-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #07110f;
    border-radius: 999px;
    background: #ef5d68;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

    .prime-global-alert-count[data-count="0"] {
        display: none;
    }

#prime-alerts {
    scroll-margin-top: 115px;
}

.prime-global-logout {
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #e0cf9a, #a98a42);
    color: #07110f;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

    .prime-global-logout:hover {
        filter: brightness(1.06);
    }

.prime-actions-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.prime-small-btn.secondary {
    background: rgba(224, 207, 154, 0.12);
    color: #e0cf9a;
    border: 1px solid rgba(224, 207, 154, 0.22);
}

    .prime-small-btn.secondary:hover {
        color: #f5f2eb;
        background: rgba(224, 207, 154, 0.18);
    }

/* =========================
   PRIME USER BLOCK / UNBLOCK
========================= */

.prime-actions-inline form {
    margin: 0;
}

.status-blocked {
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffb3b3;
    background: rgba(180, 55, 55, 0.14);
    border: 1px solid rgba(180, 55, 55, 0.35);
    font-size: 11px;
    font-weight: 800;
}

.prime-small-btn.block-btn {
    border: 1px solid rgba(180, 55, 55, 0.35);
    background: rgba(180, 55, 55, 0.16);
    color: #ffb3b3;
}

    .prime-small-btn.block-btn:hover {
        background: rgba(180, 55, 55, 0.24);
        color: #ffd6d6;
    }

.prime-small-btn.unblock-btn {
    border: 1px solid rgba(44, 190, 155, 0.28);
    background: rgba(44, 190, 155, 0.14);
    color: #2cbe9b;
}

    .prime-small-btn.unblock-btn:hover {
        background: rgba(44, 190, 155, 0.22);
        color: #7ff0d3;
    }

.prime-create-btn.secondary {
    margin-left: 12px;
    background: rgba(224, 207, 154, 0.12);
    color: #e0cf9a;
    border: 1px solid rgba(224, 207, 154, 0.22);
}

    .prime-create-btn.secondary:hover {
        color: #f5f2eb;
        background: rgba(224, 207, 154, 0.18);
    }

/* =========================
   EMA TRADEOPS DASHBOARD
========================= */

.tradeops-dashboard {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 22px;
}

.tradeops-main-card,
.tradeops-side-card {
    min-height: 250px;
    padding: 30px;
    border-radius: 26px;
    text-decoration: none;
    color: #f5f2eb;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.10), transparent 38%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
}

.tradeops-main-card {
    border-color: rgba(224, 207, 154, 0.32);
}

    .tradeops-main-card:hover {
        transform: translateY(-4px);
        border-color: rgba(224, 207, 154, 0.48);
    }

.tradeops-card-tag {
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: #2cbe9b;
    background: rgba(44, 190, 155, 0.12);
    border: 1px solid rgba(44, 190, 155, 0.26);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.7px;
}

    .tradeops-card-tag.waiting {
        color: rgba(245, 242, 235, 0.46);
        background: rgba(245, 242, 235, 0.06);
        border: 1px solid rgba(245, 242, 235, 0.10);
    }

.tradeops-main-card h2,
.tradeops-side-card h2 {
    margin: 38px 0 0;
    font-size: 26px;
    color: #f5f2eb;
}

.tradeops-main-card p,
.tradeops-side-card p {
    margin-top: 14px;
    color: rgba(245, 242, 235, 0.52);
    font-size: 13px;
    line-height: 1.6;
}

.tradeops-main-card span {
    margin-top: auto;
    color: #e0cf9a;
    font-size: 13px;
    font-weight: 850;
}

/* =========================
   TRADE PPI & REGULATIONS
========================= */

.tradeops-control-center {
    max-width: 1280px;
    margin: 90px auto 0;
}

.trade-kpi-grid {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.trade-kpi-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

    .trade-kpi-card span {
        display: block;
        color: rgba(245, 242, 235, 0.48);
        font-size: 11px;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .trade-kpi-card strong {
        display: block;
        margin-top: 10px;
        color: #e0cf9a;
        font-size: 26px;
    }

.trade-toolbar {
    margin-top: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.trade-search-box {
    flex: 1;
    display: flex;
    gap: 12px;
}

    .trade-search-box input {
        flex: 1;
        height: 48px;
        padding: 0 16px;
        border-radius: 999px;
        border: 1px solid rgba(224, 207, 154, 0.18);
        background: rgba(255, 255, 255, 0.04);
        color: #f5f2eb;
        outline: none;
    }

    .trade-search-box button {
        border: none;
        border-radius: 999px;
        padding: 0 20px;
        background: rgba(224, 207, 154, 0.13);
        color: #e0cf9a;
        font-weight: 850;
        cursor: pointer;
    }

.trade-article-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.trade-article-card {
    min-height: 310px;
    padding: 24px;
    border-radius: 24px;
    text-decoration: none;
    color: #f5f2eb;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.08), transparent 36%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
    transition: 0.2s ease;
}

    .trade-article-card:hover {
        transform: translateY(-4px);
        border-color: rgba(224, 207, 154, 0.34);
    }

.trade-article-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.trade-ref {
    color: #2cbe9b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.trade-article-header h2 {
    margin: 8px 0 0;
    font-size: 21px;
    color: #f5f2eb;
}

.trade-status-pill {
    height: fit-content;
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 999px;
    color: #e0cf9a;
    background: rgba(224, 207, 154, 0.10);
    border: 1px solid rgba(224, 207, 154, 0.18);
    font-size: 10px;
    font-weight: 850;
}

.trade-article-meta {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .trade-article-meta span {
        padding: 6px 10px;
        border-radius: 999px;
        color: rgba(245, 242, 235, 0.56);
        background: rgba(255, 255, 255, 0.04);
        font-size: 11px;
        font-weight: 700;
    }

.trade-progress-zone {
    margin-top: 24px;
}

.trade-progress-label {
    display: flex;
    justify-content: space-between;
    color: rgba(245, 242, 235, 0.56);
    font-size: 12px;
    font-weight: 750;
}

    .trade-progress-label strong {
        color: #e0cf9a;
    }

.trade-progress-bar {
    margin-top: 9px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

    .trade-progress-bar div {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #2cbe9b, #e0cf9a);
    }

.trade-mini-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

    .trade-mini-grid div {
        padding: 13px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(224, 207, 154, 0.08);
    }

    .trade-mini-grid span {
        display: block;
        color: rgba(245, 242, 235, 0.42);
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 750;
    }

    .trade-mini-grid strong {
        display: block;
        margin-top: 7px;
        color: #f5f2eb;
        font-size: 18px;
    }

.trade-card-footer {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(245, 242, 235, 0.42);
    font-size: 11px;
}

    .trade-card-footer strong {
        color: #e0cf9a;
    }

/* FORM ARTICLE */

.trade-article-form {
    margin-top: 38px;
}

.trade-form-section {
    margin-bottom: 26px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.18);
}

    .trade-form-section h2 {
        margin: 0 0 22px;
        color: #e0cf9a;
        font-size: 18px;
    }

.trade-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.prime-form-row.full {
    grid-column: span 3;
}

.prime-form-row textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(224, 207, 154, 0.22);
    background: rgba(255, 255, 255, 0.045);
    color: #f5f2eb;
    outline: none;
    resize: vertical;
}

.trade-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 80px;
}

/* =========================
   TRADE REFERENCE LISTS
========================= */

.trade-reference-grid {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
}

.trade-reference-panel {
    padding: 28px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.08), transparent 35%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
}

.trade-reference-panel-header span {
    color: #2cbe9b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.trade-reference-panel-header h2 {
    margin: 8px 0 0;
    color: #e0cf9a;
    font-size: 22px;
}

.trade-reference-form {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

    .trade-reference-form.two {
        grid-template-columns: 0.7fr 1.3fr auto;
    }

    .trade-reference-form input,
    .trade-reference-search input {
        height: 48px;
        padding: 0 15px;
        border-radius: 14px;
        border: 1px solid rgba(224, 207, 154, 0.18);
        background: rgba(255, 255, 255, 0.045);
        color: #f5f2eb;
        outline: none;
    }

    .trade-reference-form button,
    .trade-reference-search button {
        border: none;
        border-radius: 14px;
        padding: 0 18px;
        background: linear-gradient(135deg, #e0cf9a, #b89a45);
        color: #07110f;
        font-weight: 900;
        cursor: pointer;
    }

.trade-reference-search {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.trade-reference-list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-reference-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.10);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

    .trade-reference-item strong {
        display: block;
        color: #f5f2eb;
        font-size: 14px;
    }

    .trade-reference-item span {
        display: block;
        margin-top: 5px;
        color: rgba(245, 242, 235, 0.48);
        font-size: 12px;
    }

    .trade-reference-item small {
        display: block;
        margin-top: 5px;
        color: rgba(224, 207, 154, 0.52);
        font-size: 11px;
    }

.trade-delete-mini {
    border: 1px solid rgba(255, 95, 95, 0.25);
    border-radius: 999px;
    background: rgba(255, 95, 95, 0.08);
    color: #ff8f8f;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.prime-success-message {
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(44, 190, 155, 0.10);
    border: 1px solid rgba(44, 190, 155, 0.24);
    color: #7ff0d1;
    font-weight: 750;
}

.prime-empty-state.small {
    padding: 18px;
    font-size: 13px;
}

/* =========================
   TRADE PRICE CALCULATION
========================= */

.trade-price-result-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.trade-price-result-card {
    padding: 20px;
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.10), transparent 35%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.13);
}

    .trade-price-result-card span {
        display: block;
        color: rgba(245, 242, 235, 0.48);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 800;
    }

    .trade-price-result-card strong {
        display: block;
        margin-top: 10px;
        color: #e0cf9a;
        font-size: 22px;
    }

/* =========================
   TRADE PAGINATION + VIEW MODE
========================= */

.trade-view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-view-btn {
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    color: rgba(245, 242, 235, 0.56);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(224, 207, 154, 0.12);
}

    .trade-view-btn.active {
        color: #07110f;
        background: linear-gradient(135deg, #e0cf9a, #b89a45);
    }

.trade-pagination {
    margin: 34px 0 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

    .trade-pagination a,
    .trade-pagination span {
        min-width: 130px;
        height: 46px;
        padding: 0 18px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #e0cf9a;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(224, 207, 154, 0.16);
        font-size: 13px;
        font-weight: 850;
    }

    .trade-pagination span {
        color: rgba(245, 242, 235, 0.72);
    }

/* =========================
   TRADE COMPACT PREMIUM VIEW
========================= */

.trade-compact-list {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-compact-row {
    min-height: 86px;
    padding: 18px 20px;
    border-radius: 22px;
    text-decoration: none;
    color: #f5f2eb;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.06), transparent 32%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.12);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
    display: grid;
    grid-template-columns: 1.8fr repeat(5, 0.75fr) 0.9fr 0.65fr;
    gap: 14px;
    align-items: center;
    transition: 0.2s ease;
}

    .trade-compact-row:hover {
        transform: translateY(-2px);
        border-color: rgba(224, 207, 154, 0.34);
        background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.10), transparent 32%), rgba(255, 255, 255, 0.05);
    }

.trade-compact-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trade-compact-ref {
    color: #2cbe9b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.8px;
}

.trade-compact-main strong {
    margin-top: 5px;
    color: #f5f2eb;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-compact-main small {
    margin-top: 5px;
    color: rgba(245, 242, 235, 0.45);
    font-size: 11px;
    font-weight: 700;
}

.trade-compact-data {
    padding: 10px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid rgba(224, 207, 154, 0.07);
}

    .trade-compact-data span {
        display: block;
        color: rgba(245, 242, 235, 0.42);
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .trade-compact-data strong {
        display: block;
        margin-top: 5px;
        color: #f5f2eb;
        font-size: 14px;
    }

.trade-compact-status {
    width: fit-content;
    padding: 8px 11px;
    border-radius: 999px;
    color: #e0cf9a;
    background: rgba(224, 207, 154, 0.10);
    border: 1px solid rgba(224, 207, 154, 0.16);
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.trade-compact-open {
    color: #e0cf9a;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

/* =========================
   TRADE PRODUCTS
========================= */

.trade-products-actions {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.trade-product-action-card {
    min-height: 260px;
    padding: 28px;
    border-radius: 26px;
    text-decoration: none;
    color: #f5f2eb;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.09), transparent 36%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
}

    .trade-product-action-card:hover {
        transform: translateY(-4px);
        border-color: rgba(224, 207, 154, 0.36);
    }

    .trade-product-action-card.disabled {
        opacity: 0.62;
        cursor: default;
    }

        .trade-product-action-card.disabled:hover {
            transform: none;
            border-color: rgba(224, 207, 154, 0.16);
        }

    .trade-product-action-card h2 {
        margin: 36px 0 0;
        color: #f5f2eb;
        font-size: 24px;
    }

    .trade-product-action-card p {
        margin-top: 14px;
        color: rgba(245, 242, 235, 0.52);
        font-size: 13px;
        line-height: 1.6;
    }

    .trade-product-action-card span {
        margin-top: auto;
        color: #e0cf9a;
        font-size: 13px;
        font-weight: 900;
    }

/* =========================
   TRADE ARTICLE DETAILS
========================= */

.trade-details-grid {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.trade-details-panel {
    padding: 28px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.08), transparent 36%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
}

    .trade-details-panel.large {
        grid-column: span 1;
    }

    .trade-details-panel h2 {
        margin: 0 0 22px;
        color: #e0cf9a;
        font-size: 20px;
    }

.trade-details-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

    .trade-details-list div,
    .trade-price-summary div {
        padding: 16px;
        border-radius: 17px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(224, 207, 154, 0.08);
    }

        .trade-details-list div.full {
            grid-column: span 2;
        }

    .trade-details-list span,
    .trade-price-summary span {
        display: block;
        color: rgba(245, 242, 235, 0.42);
        font-size: 10px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .trade-details-list strong,
    .trade-price-summary strong {
        display: block;
        margin-top: 8px;
        color: #f5f2eb;
        font-size: 15px;
        line-height: 1.45;
    }

.trade-price-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .trade-price-summary strong {
        color: #e0cf9a;
        font-size: 18px;
    }

/* =========================
   TRADE ARTICLE ACTIONS
========================= */

.trade-details-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

    .trade-details-actions form {
        margin: 0;
    }

.trade-block-btn,
.trade-unblock-btn {
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.trade-block-btn {
    color: #ff9b9b;
    background: rgba(255, 95, 95, 0.08);
    border: 1px solid rgba(255, 95, 95, 0.30);
}

.trade-unblock-btn {
    color: #7ff0d1;
    background: rgba(44, 190, 155, 0.10);
    border: 1px solid rgba(44, 190, 155, 0.30);
}

.trade-blocked-warning {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    color: #ffb3b3;
    background: rgba(255, 95, 95, 0.08);
    border: 1px solid rgba(255, 95, 95, 0.22);
    font-size: 13px;
    font-weight: 750;
}

/* =========================
   TRADE BLOCKED STATUS
========================= */

.trade-status-pill.blocked,
.trade-compact-status.blocked {
    color: #ff9b9b;
    background: rgba(255, 95, 95, 0.10);
    border-color: rgba(255, 95, 95, 0.30);
}

.trade-article-card:has(.trade-status-pill.blocked),
.trade-compact-row:has(.trade-compact-status.blocked) {
    opacity: 0.72;
    border-color: rgba(255, 95, 95, 0.20);
}

/* =========================
   TRADE MANUAL PRICE EDIT
========================= */

.trade-manual-price-zone {
    margin-top: 30px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(224, 207, 154, 0.055);
    border: 1px solid rgba(224, 207, 154, 0.16);
}

.trade-manual-price-header h3 {
    margin: 0;
    color: #e0cf9a;
    font-size: 18px;
}

.trade-manual-price-header p {
    margin: 8px 0 22px;
    color: rgba(245, 242, 235, 0.52);
    font-size: 13px;
    line-height: 1.5;
}

.trade-apply-price-btn {
    margin-top: 22px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(44, 190, 155, 0.28);
    background: rgba(44, 190, 155, 0.10);
    color: #7ff0d1;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.trade-manual-price-header.premium-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
}

    .trade-manual-price-header.premium-action p {
        max-width: 720px;
    }

    .trade-manual-price-header.premium-action .trade-apply-price-btn {
        margin-top: 0;
        white-space: nowrap;
    }

/* =========================
   PRIME RIGHTS TREE
========================= */

.rights-tree-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    margin-top: 34px;
}

.rights-tree-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rights-tree-card {
    padding: 26px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(44, 190, 155, 0.08), transparent 36%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);
}

.rights-tree-head span,
.rights-tree-summary span {
    color: #2cbe9b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.rights-tree-head h2,
.rights-tree-summary h2 {
    margin: 8px 0 0;
    color: #e0cf9a;
    font-size: 22px;
}

.rights-tree-card .rights-grid {
    margin-top: 22px;
}

.rights-child {
    display: none;
}

.rights-tree-summary {
    height: fit-content;
    position: sticky;
    top: 105px;
    padding: 26px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(224, 207, 154, 0.08), transparent 36%), rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 207, 154, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

    .rights-tree-summary p {
        margin-top: 14px;
        color: rgba(245, 242, 235, 0.52);
        font-size: 13px;
        line-height: 1.55;
    }

.rights-summary-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(44, 190, 155, 0.08);
    border: 1px solid rgba(44, 190, 155, 0.18);
}

    .rights-summary-box strong {
        display: block;
        color: #7ff0d1;
        font-size: 13px;
    }

    .rights-summary-box small {
        display: block;
        margin-top: 8px;
        color: rgba(245, 242, 235, 0.52);
        font-size: 12px;
        line-height: 1.45;
    }
.ppi-expiration-date {
    color: #ff4d4f !important;
}

.ppi-recovery-form input[type="date"]::-webkit-calendar-picker-indicator,
.ppi-recovery-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(82%) sepia(32%) saturate(711%) hue-rotate(4deg) brightness(101%) contrast(88%);
    opacity: 1;
}

.ppi-exceptional-menu-btn.deposit-edit {
    width: auto;
    min-width: 150px;
    padding: 0 18px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}
@keyframes ppiGoldActionSweep {
    0%, 18% {
        left: -42%;
        opacity: 0;
    }

    28% {
        opacity: 1;
    }

    62% {
        left: 112%;
        opacity: 1;
    }

    72%, 100% {
        left: 112%;
        opacity: 0;
    }
}

/* Fiche récapitulative du stock mensuel : format ample identique aux grandes fiches ministérielles. */
dialog.monthly-summary-dialog {
  width: min(1120px, 94vw) !important;
}

.monthly-summary-dialog .monthly-summary-sheet {
  box-sizing: border-box;
  min-height: 560px;
  padding: 28px !important;
}

.monthly-summary-dialog .monthly-summary-sheet > header {
  padding-bottom: 20px !important;
}

.monthly-summary-dialog .monthly-summary-sheet > header h2 {
  margin: 8px 0 5px !important;
  font-size: 29px !important;
}

.monthly-summary-dialog .monthly-summary-steps {
  gap: 10px !important;
  margin: 22px 0 !important;
}

.monthly-summary-dialog .monthly-summary-steps > div {
  min-height: 52px;
  padding: 13px !important;
}

.monthly-summary-dialog .monthly-summary-data {
  gap: 11px !important;
}

.monthly-summary-dialog .monthly-summary-data article {
  min-height: 76px !important;
  padding: 13px !important;
}

.monthly-summary-dialog .monthly-summary-data strong {
  margin-top: 8px !important;
  font-size: 14px !important;
}

.monthly-summary-dialog .monthly-summary-sign,
.realization-summary-dialog .realization-summary-sign {
  margin: 22px 0 14px !important;
}

.monthly-summary-dialog .monthly-summary-actions {
  gap: 12px !important;
}

.monthly-summary-dialog .monthly-summary-actions button {
  min-height: 48px !important;
  padding: 0 18px !important;
  font-size: 14px;
}

/* Actions identiques aux commandes premium de la Régulation. */
.monthly-summary-dialog .monthly-summary-actions button {
  position: relative;
  overflow: hidden;
  min-height: 50px !important;
  padding: 0 23px !important;
  border: 1px solid rgba(120, 255, 201, .82) !important;
  background: radial-gradient(circle at 28% 18%, rgba(180, 255, 225, .16), transparent 42%), linear-gradient(180deg, #10251e 0%, #06110e 100%) !important;
  color: #caffea !important;
  text-shadow: 0 0 12px rgba(95, 255, 181, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 20px rgba(95,255,181,.10), 0 0 0 3px rgba(2,8,6,.92), 0 0 20px rgba(67,244,230,.26), 0 10px 24px rgba(0,0,0,.42) !important;
  animation: monthlyStockActionPulse 2.8s ease-in-out infinite;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.monthly-summary-dialog .monthly-summary-actions button::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -38%;
  width: 34%;
  height: 170%;
  pointer-events: none;
  transform: skewX(-22deg);
  background: linear-gradient(115deg, transparent 0%, rgba(67,244,230,.06) 28%, rgba(186,242,222,.42) 47%, rgba(235,255,247,.72) 52%, rgba(95,255,181,.20) 66%, transparent 100%);
  animation: monthlyStockActionSweep 3.2s linear infinite;
}

.monthly-summary-dialog .monthly-summary-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  border-color: rgba(175,255,225,.98) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 24px rgba(95,255,181,.16), 0 0 0 3px rgba(2,8,6,.96), 0 0 30px rgba(67,244,230,.42), 0 13px 28px rgba(0,0,0,.5) !important;
}

.monthly-summary-dialog .monthly-summary-sign button,
.realization-summary-dialog .realization-summary-sign button:not(.realization-ema-pending):not(.realization-ema-resend):not(.realization-ema-reassign):not(.realization-ema-cancel) {
  position: relative;
  overflow: hidden;
  min-height: 46px !important;
  padding: 0 22px !important;
  border: 1px solid rgba(247,184,103,.94) !important;
  border-radius: 999px;
  color: #211006 !important;
  background: radial-gradient(circle at 20% 0%, rgba(255,222,166,.40), transparent 38%), linear-gradient(115deg, #f1c780 0%, #c47a32 34%, #f2bd70 50%, #8b431a 78%, #3b190b 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,245,222,.78), inset 0 -10px 18px rgba(67,24,6,.22), 0 0 0 2px rgba(37,14,5,.72), 0 0 27px rgba(205,127,50,.50), 0 10px 24px rgba(0,0,0,.42) !important;
  text-shadow: 0 1px 0 rgba(255,224,180,.38);
  font-weight: 950 !important;
  cursor: pointer;
  animation: monthlyStockBronzePulse 2.5s ease-in-out infinite;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.monthly-summary-dialog .monthly-summary-sign button::before,
.realization-summary-dialog .realization-summary-sign button:not(.realization-ema-resend):not(.realization-ema-reassign):not(.realization-ema-cancel)::before {
  content: "";
  position: absolute;
  top: -42%;
  left: -42%;
  width: 34%;
  height: 190%;
  pointer-events: none;
  transform: skewX(-22deg);
  background: linear-gradient(112deg, transparent 0%, rgba(255,231,191,.08) 30%, rgba(255,250,231,.88) 50%, rgba(255,190,103,.26) 66%, transparent 100%);
  animation: monthlyStockBronzeSweep 2.9s linear infinite;
}

.monthly-summary-dialog .monthly-summary-sign button:hover,
.realization-summary-dialog .realization-summary-sign button:not(.realization-ema-pending):not(.realization-ema-resend):not(.realization-ema-reassign):not(.realization-ema-cancel):hover {
  transform: translateY(-2px);
  filter: brightness(1.12) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255,250,232,.9), inset 0 -10px 18px rgba(67,24,6,.18), 0 0 0 2px rgba(37,14,5,.82), 0 0 38px rgba(230,145,58,.68), 0 14px 28px rgba(0,0,0,.48) !important;
}

@keyframes monthlyStockActionPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }
@keyframes monthlyStockActionSweep { 0% { left:-38%; opacity:0; } 8%,45% { opacity:.95; } 60%,100% { left:108%; opacity:0; } }
@keyframes monthlyStockBronzeSweep { 0% { left:-45%; } 55%,100% { left:125%; } }
@keyframes monthlyStockBronzePulse { 0%,100% { filter:brightness(.98); } 50% { filter:brightness(1.10); } }

/* Variante bleu Stock des actions premium. */
.monthly-summary-dialog .monthly-summary-actions button {
  border-color: rgba(126, 158, 255, .88) !important;
  background: radial-gradient(circle at 28% 18%, rgba(169, 187, 255, .18), transparent 42%), linear-gradient(180deg, #151e3d 0%, #070b1b 100%) !important;
  color: #dce4ff !important;
  text-shadow: 0 0 12px rgba(126, 158, 255, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 0 22px rgba(105,133,255,.13), 0 0 0 3px rgba(3,5,15,.94), 0 0 22px rgba(91,120,255,.30), 0 10px 24px rgba(0,0,0,.44) !important;
}

.monthly-summary-dialog .monthly-summary-actions button::before {
  background: linear-gradient(115deg, transparent 0%, rgba(91,120,255,.08) 28%, rgba(176,192,255,.46) 47%, rgba(235,240,255,.76) 52%, rgba(104,132,255,.24) 66%, transparent 100%);
}

.monthly-summary-dialog .monthly-summary-actions button:hover {
  border-color: rgba(179, 196, 255, .98) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 26px rgba(105,133,255,.20), 0 0 0 3px rgba(3,5,15,.97), 0 0 34px rgba(91,120,255,.48), 0 13px 28px rgba(0,0,0,.52) !important;
}

/* Carte récapitulative Stock : palette intégralement bleue, sans accent vert. */
dialog.monthly-summary-dialog {
  border-color: rgba(126, 158, 255, .72) !important;
  background: radial-gradient(circle at 12% 3%, rgba(72, 91, 170, .20), transparent 38%), linear-gradient(145deg, #0c1328, #02050f) !important;
  box-shadow: 0 0 34px rgba(91, 120, 255, .18), 0 35px 100px rgba(0, 0, 0, .78) !important;
}

.monthly-summary-dialog .monthly-summary-sheet > header {
  border-bottom-color: rgba(126, 158, 255, .24) !important;
}

.monthly-summary-dialog .monthly-summary-sheet > header span {
  color: #91aaff !important;
}

.monthly-summary-dialog .monthly-summary-window-actions button {
  border-color: rgba(126, 158, 255, .55) !important;
  background: #111a38 !important;
  color: #dce4ff !important;
}

.monthly-summary-dialog .monthly-summary-window-actions button:first-child {
  border-color: rgba(151, 176, 255, .88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 20px rgba(91,120,255,.34) !important;
}

.monthly-summary-dialog .monthly-summary-steps > div {
  border-color: rgba(126, 158, 255, .42) !important;
  background: rgba(15, 24, 53, .78) !important;
  color: #dce4ff !important;
}

.monthly-summary-dialog .monthly-summary-steps b {
  background: linear-gradient(145deg, #b7c8ff, #718dff) !important;
  color: #07102b !important;
  box-shadow: 0 0 14px rgba(126, 158, 255, .30);
}
