@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
}
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-ext-var.woff2") format("woff2");
}

body:has(.ezy-ai-page) #wpcontent {
    padding-left: 0 !important;
    background: transparent !important;
}
body:has(.ezy-ai-page) #wpbody-content {
    padding-bottom: 0 !important;
    background: transparent !important;
}
body:has(.ezy-ai-page) #wpbody {
    background: transparent !important;
}
body:has(.ezy-ai-page) #wpfooter {
    color: rgba(255, 255, 255, 0.5);
}
body:has(.ezy-ai-page) #adminmenuback,
body:has(.ezy-ai-page) #adminmenuwrap {
    background: rgba(0, 0, 0, 0.3) !important;
}
body:has(.ezy-ai-page) .wrap {
    margin: 0;
    padding: 0;
    max-width: none;
}

@media screen and (max-width: 782px) {
    body:has(.ezy-ai-page) #wpbody {
        padding-top: 0;
    }
    body:has(.ezy-ai-page) #wpbody-content {
        padding-left: 0;
        padding-right: 0;
    }
}

.ezy-ai-page {
    position: relative;
    color: #e5e7eb;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: calc(100vh - 32px);
    padding: clamp(14px, 2.5vw, 32px);
    margin: 0 auto;
    overflow-x: hidden;
    z-index: 0;
    max-width: 1920px;
    width: 100%;
    box-sizing: border-box;
}

.ezy-ai-page *,
.ezy-ai-page *::before,
.ezy-ai-page *::after {
    box-sizing: border-box;
}

.ezy-ai-page::before,
.ezy-ai-app::before {
    content: "";
    position: fixed;
    top: 32px;
    left: 160px;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: #000 url("../backgrounds/main-background.webp") top center / cover no-repeat;
    pointer-events: none;
}

.ezy-ai-page::after,
.ezy-ai-app::after {
    content: "";
    position: fixed;
    top: 32px;
    left: 160px;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 25%),
        linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

@media (max-width: 960px) {
    .ezy-ai-page::before,
    .ezy-ai-page::after,
    .ezy-ai-app::before,
    .ezy-ai-app::after {
        left: 36px;
    }
}

@media (max-width: 782px) {
    .ezy-ai-page::before,
    .ezy-ai-page::after,
    .ezy-ai-app::before,
    .ezy-ai-app::after {
        left: 0;
        top: 46px;
    }
    .ezy-ai-page::before,
    .ezy-ai-app::before {
        background-image: url("../backgrounds/main-background-portrait.webp");
    }
}

body.folded .ezy-ai-page::before,
body.folded .ezy-ai-page::after,
body.folded .ezy-ai-app::before,
body.folded .ezy-ai-app::after {
    left: 36px;
}

.ezy-ai-page h1,
.ezy-ai-page h2,
.ezy-ai-page h3,
.ezy-ai-page h4,
.ezy-ai-page p,
.ezy-ai-page ul,
.ezy-ai-page ol,
.ezy-ai-page li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ezy-ai-page a {
    color: #f8b585;
    text-decoration: none;
    transition: color 0.15s ease;
}
.ezy-ai-page a:hover,
.ezy-ai-page a:focus {
    color: #f16001;
}

.ezy-ai-page .notice {
    margin: 0 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
    color: #e5e7eb;
    box-shadow: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.ezy-ai-page .notice p {
    color: rgba(255, 255, 255, 0.85);
}
.ezy-ai-page .notice-success { border-left-color: #10b981; }
.ezy-ai-page .notice-error { border-left-color: #f43f5e; }
.ezy-ai-page .notice-info { border-left-color: #38bdf8; }
.ezy-ai-page .notice-warning { border-left-color: #f59e0b; }

.ezy-page-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: clamp(20px, 3vw, 32px);
}
.ezy-page-header h1 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.44px;
}
.ezy-page-header p {
    font-size: clamp(13px, 1.4vw, 16px);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.32px;
}

.ezy-page-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    padding: clamp(18px, 2.4vw, 28px);
    margin-bottom: 16px;
}
.ezy-page-card + .ezy-page-card {
    margin-top: 16px;
}
.ezy-page-card h2 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.36px;
    margin-bottom: 6px;
}
.ezy-page-card h3 {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}
.ezy-page-card p,
.ezy-page-card li,
.ezy-page-card td {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
}
.ezy-page-card .description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
}

.ezy-page-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.ezy-page-table thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ezy-page-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    vertical-align: middle;
}
.ezy-page-table tbody tr:last-child td {
    border-bottom: none;
}
.ezy-page-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.ezy-page-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ezy-page-form-row:last-child {
    border-bottom: none;
}
.ezy-page-form-row label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}
.ezy-page-form-row .description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.ezy-page-input,
.ezy-ai-page input[type="text"],
.ezy-ai-page input[type="number"],
.ezy-ai-page input[type="email"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    max-width: 320px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ezy-page-input:focus,
.ezy-ai-page input[type="text"]:focus,
.ezy-ai-page input[type="number"]:focus,
.ezy-ai-page input[type="email"]:focus {
    outline: none;
    border-color: rgba(241, 96, 1, 0.6);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(241, 96, 1, 0.18);
}

.ezy-page-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
}
.ezy-page-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ezy-page-checkbox input[type="checkbox"]:checked {
    background: #f16001;
    border-color: #f16001;
}
.ezy-page-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ezy-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    text-decoration: none;
}
.ezy-page-btn:active {
    transform: translateY(1px);
}
.ezy-page-btn-primary {
    background: linear-gradient(135deg, #f16001 0%, #d94f00 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}
.ezy-page-btn-primary:hover {
    background: linear-gradient(135deg, #ff6e0d 0%, #e85800 100%);
    color: #fff;
}
.ezy-page-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}
.ezy-page-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.ezy-page-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.ezy-ai-page .wp-list-table,
.ezy-ai-page .form-table {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #e5e7eb;
}
.ezy-ai-page .wp-list-table th,
.ezy-ai-page .form-table th {
    color: rgba(255, 255, 255, 0.7);
}
.ezy-ai-page .wp-list-table td,
.ezy-ai-page .form-table td {
    color: rgba(255, 255, 255, 0.85);
}

.ezy-page-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.ezy-page-status-pill[data-status="ok"],
.ezy-page-status-pill[data-status="connected"] {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}
.ezy-page-status-pill[data-status="warn"] {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.ezy-page-status-pill[data-status="off"],
.ezy-page-status-pill[data-status="disconnected"] {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

.ezy-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 960px) {
    .ezy-page-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.ezy-page-icon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.ezy-page-icon-header h1 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.44px;
    line-height: 1;
}
.ezy-page-icon-header svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.ezy-locked-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 0.75px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    min-height: 415px;
    justify-content: center;
    gap: 20px;
}

.ezy-locked-tile-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.ezy-locked-tile-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ezy-locked-tile {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    min-width: 0;
}
.ezy-locked-tile svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.ezy-locked-tile-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ezy-locked-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.32px;
}
.ezy-locked-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.28px;
}

.ezy-ai-page .ezy-locked-cta,
.ezy-ai-page .ezy-locked-cta:hover,
.ezy-ai-page .ezy-locked-cta:focus,
.ezy-ai-page .ezy-locked-cta:active,
.ezy-ai-page .ezy-locked-cta:visited {
    color: #fff;
    text-decoration: none;
}
.ezy-ai-page .ezy-locked-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff5300;
    border: 0.75px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 8px 22px;
    height: 38px;
    min-width: 195px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.ezy-ai-page .ezy-locked-cta:hover,
.ezy-ai-page .ezy-locked-cta:focus {
    background: #ff6614;
}
.ezy-ai-page .ezy-locked-cta:active {
    transform: translateY(1px);
}
.ezy-ai-page .ezy-locked-cta svg,
.ezy-ai-page .ezy-locked-cta img {
    width: auto;
    height: 22px;
    flex-shrink: 0;
    display: block;
}
