:root {
    --ev-primary: #81643a;
    --ev-primary-dark: #654b27;
    --ev-primary-soft: #f3ede3;
    --ev-text: #1d2433;
    --ev-muted: #6d7480;
    --ev-line: #e7e9ee;
    --ev-surface: #ffffff;
    --ev-background: #f7f6f3;
    --ev-success: #23865b;
    --ev-warning: #a66b14;
    --ev-info: #3e64a3;
}

.ev-wrap {
    width: 100%;
    min-height: 540px;
    padding: 48px 24px 72px;
    background:
        radial-gradient(circle at 10% 0%, rgba(129, 100, 58, .12), transparent 32%),
        linear-gradient(180deg, #fbfaf8 0%, var(--ev-background) 100%);
    color: var(--ev-text);
    font-family: "DM Sans", "Roboto", Arial, sans-serif;
}

.ev-header,
.ev-card {
    width: 100%;
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

.ev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ev-header h2 {
    margin: 0;
    color: var(--ev-text);
    font-size: 30px;
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

.ev-card {
    overflow: visible;
    border: 1px solid rgba(30, 36, 51, .08);
    border-radius: 18px;
    background: var(--ev-surface);
    box-shadow: 0 16px 45px rgba(38, 34, 27, .08);
}

.ev-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--ev-line);
}

.ev-search-wrap {
    position: relative;
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    max-width: 440px;
}

.ev-search-wrap > i {
    position: absolute;
    left: 15px;
    z-index: 1;
    color: #9298a3;
}

.ev-search,
.ev-filter-select {
    height: 44px;
    border: 1px solid #dfe2e7;
    border-radius: 10px;
    background: #fff;
    color: var(--ev-text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ev-search {
    width: 100% !important;
    padding: 0 15px 0 42px;
}

.ev-filter-select {
    min-width: 150px;
    padding: 0 36px 0 13px;
}

.ev-search:focus,
.ev-filter-select:focus {
    border-color: var(--ev-primary);
    box-shadow: 0 0 0 3px rgba(129, 100, 58, .12);
}

.ev-total-badge {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 38px;
    margin-left: auto;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--ev-primary-soft);
    color: var(--ev-primary-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ev-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ev-table {
    width: 100%;
    min-width: 880px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

.ev-table th,
.ev-table td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--ev-line);
    text-align: left;
    vertical-align: middle;
}

.ev-table th {
    background: #fafafa;
    color: #596170;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ev-table tbody tr {
    transition: background-color .15s ease;
}

.ev-table tbody tr:hover {
    background: #fcfbf9;
}

.ev-table tbody tr:last-child td {
    border-bottom: 0;
}

.ev-name {
    margin-bottom: 3px;
    color: var(--ev-text);
    font-weight: 650;
}

.ev-id,
.ev-type-tag {
    color: var(--ev-muted);
    font-size: 12px;
}

.ev-status {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #596170;
    font-size: 12px;
    font-weight: 650;
    text-transform: capitalize;
}

.ev-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.ev-status.verified {
    background: #e9f7f0;
    color: var(--ev-success);
}

.ev-status.sent {
    background: #edf2fb;
    color: var(--ev-info);
}

.ev-status.draft {
    background: #fff5e5;
    color: var(--ev-warning);
}

.th-right,
.td-right {
    text-align: right !important;
}

.ev-dropdown {
    position: relative;
    display: inline-block;
}

.ev-dots-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ev-line);
    border-radius: 9px;
    background: #fff;
    color: #596170;
    cursor: pointer;
}

.ev-dots-btn:hover {
    border-color: var(--ev-primary);
    color: var(--ev-primary);
}

.ev-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 190px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--ev-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(30, 36, 51, .16);
    text-align: left;
}

/* Event-row menus are temporarily portalled to body while open so the
   horizontally scrollable event table cannot crop them. */
.ev-menu.is-open {
    display: block;
    position: fixed;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
}

.ev-menu a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 11px;
    border-radius: 7px;
    color: #343b49;
    font-size: 13px;
    text-decoration: none;
}

.ev-menu a:hover {
    background: var(--ev-primary-soft);
    color: var(--ev-primary-dark);
}

.ev-menu a i {
    width: 16px;
    color: var(--ev-primary);
    text-align: center;
}

.ev-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px 24px;
    border-top: 1px solid var(--ev-line);
}

.ev-page-info {
    color: var(--ev-muted);
    font-size: 13px;
}

.ev-page-btns {
    display: flex;
    gap: 6px;
}

.ev-page-btn {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ev-line);
    border-radius: 8px;
    background: #fff;
    color: #565e6c;
    font-size: 12px;
    cursor: pointer;
}

.ev-page-btn:hover:not(:disabled),
.ev-page-btn.active {
    border-color: var(--ev-primary);
    background: var(--ev-primary);
    color: #fff;
}

.ev-page-btn:disabled {
    cursor: default;
    opacity: .42;
}

.ev-empty,
.ev-login-prompt {
    padding: 72px 24px;
    color: var(--ev-muted);
    text-align: center;
}

.ev-login-prompt {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ev-login-icon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--ev-primary-soft);
    color: var(--ev-primary);
    font-size: 28px;
}

.ev-login-prompt h4 {
    margin: 0 0 8px;
    color: var(--ev-text);
    font-size: 22px;
    font-weight: 700 !important;
}

.ev-login-prompt p {
    margin: 0 0 24px;
    font-size: 15px;
}

.ev-login-btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 45px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--ev-primary);
    box-shadow: 0 8px 20px rgba(101, 75, 39, .22);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}

.ev-login-btn:hover {
    transform: translateY(-1px);
    background: var(--ev-primary-dark);
}

.ev-wrap[dir="rtl"] .ev-table th,
.ev-wrap[dir="rtl"] .ev-table td,
.ev-wrap[dir="rtl"] .ev-menu {
    text-align: right;
}

.ev-wrap[dir="rtl"] .ev-search-wrap > i {
    right: 15px;
    left: auto;
}

.ev-wrap[dir="rtl"] .ev-search {
    padding-right: 42px;
    padding-left: 15px;
}

.ev-wrap[dir="rtl"] .ev-total-badge {
    margin-right: auto;
    margin-left: 0;
}

.ev-wrap[dir="rtl"] .ev-menu {
    right: auto;
    left: 0;
}

@media (max-width: 767px) {
    .ev-wrap {
        min-height: 460px;
        padding: 26px 12px 48px;
    }

    .ev-header h2 {
        font-size: 24px;
    }

    .ev-card {
        border-radius: 13px;
    }

    .ev-toolbar {
        flex-wrap: wrap;
        padding: 16px;
    }

    .ev-search-wrap,
    .ev-filter-select {
        width: 100%;
        max-width: none;
    }

    .ev-total-badge {
        margin-left: 0;
    }

    .ev-table th,
    .ev-table td {
        padding: 14px 13px;
    }

    .ev-pagination {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .ev-login-prompt {
        min-height: 330px;
        padding: 48px 18px;
    }
}

/* Public landing page */
.portal-landing {
    overflow: hidden;
    border-radius: 18px;
}

.portal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 48px;
    align-items: center;
    min-height: 550px;
    padding: 68px 64px;
    background:
        radial-gradient(circle at 82% 18%, rgba(184, 165, 144, .3), transparent 34%),
        linear-gradient(135deg, #fff 0%, #fbf8f5 54%, #eee6df 100%);
}

.portal-hero::before {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(169, 148, 129, .2);
    border-radius: 50%;
    content: "";
}

.portal-hero-copy,
.portal-hero-visual {
    position: relative;
    z-index: 1;
}

.portal-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #8a725e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portal-hero h1 {
    max-width: 640px;
    margin: 0 0 20px;
    color: #29231f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 600 !important;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.portal-hero-copy > p {
    max-width: 590px;
    margin: 0 0 30px;
    color: #6e665f;
    font-size: 17px;
    line-height: 1.75;
}

.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.portal-btn {
    display: inline-flex;
    gap: 10px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.portal-btn:hover {
    transform: translateY(-2px);
}

.portal-btn-primary {
    background: #9d8774;
    box-shadow: 0 10px 25px rgba(109, 88, 70, .2);
    color: #fff !important;
}

.portal-btn-primary:hover {
    background: #806b59;
}

.portal-btn-secondary {
    border-color: #ded4cb;
    background: rgba(255, 255, 255, .76);
    color: #4d433b !important;
}

.portal-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #716961;
    font-size: 12px;
}

.portal-trust-row span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.portal-trust-row i {
    color: #9d8774;
}

.portal-hero-visual {
    min-height: 390px;
}

.portal-preview-card {
    position: absolute;
    top: 36px;
    right: 18px;
    width: min(100%, 430px);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 30px 65px rgba(82, 67, 55, .16);
    backdrop-filter: blur(14px);
}

.portal-preview-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.portal-preview-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eee5de;
    color: #8a725e;
}

.portal-preview-top strong,
.portal-preview-top small {
    display: block;
}

.portal-preview-top strong {
    color: #332c27;
    font-size: 15px;
}

.portal-preview-top small {
    margin-top: 2px;
    color: #918981;
    font-size: 11px;
}

.portal-preview-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9f6ee;
    color: #367557;
    font-size: 10px;
    font-weight: 700;
}

.portal-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 28px 0 18px;
}

.portal-preview-stats div {
    padding: 15px 10px;
    border-radius: 12px;
    background: #faf8f6;
    text-align: center;
}

.portal-preview-stats strong,
.portal-preview-stats span {
    display: block;
}

.portal-preview-stats strong {
    color: #332c27;
    font-size: 22px;
}

.portal-preview-stats span {
    margin-top: 2px;
    color: #918981;
    font-size: 10px;
}

.portal-preview-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece8e4;
}

.portal-preview-progress span {
    display: block;
    width: 70%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b49a83, #8a725e);
}

.portal-preview-guests {
    display: flex;
    margin-top: 22px;
}

.portal-preview-guests span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e3d7ce;
    color: #65564a;
    font-size: 9px;
    font-weight: 700;
}

.portal-float-card {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 11px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(82, 67, 55, .13);
    color: #55493f;
    font-size: 11px;
    font-weight: 650;
}

.portal-float-card i {
    color: #8e7865;
}

.portal-float-one {
    top: 4px;
    left: 0;
}

.portal-float-two {
    right: -5px;
    bottom: 25px;
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-top: 1px solid #eee8e2;
    background: #eee8e2;
}

.portal-features article {
    padding: 35px 34px;
    background: #fff;
}

.portal-features article > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 11px;
    background: #f1ebe6;
    color: #8a725e;
}

.portal-features h2 {
    margin: 0 0 8px;
    color: #332c27;
    font-size: 17px;
    font-weight: 700 !important;
}

.portal-features p {
    margin: 0;
    color: #7d746d;
    font-size: 13px;
    line-height: 1.65;
}

/* Invitee list */
.inv-wrap,
.ai-wrap {
    min-height: 540px;
    padding: 45px 24px 70px;
    background: linear-gradient(180deg, #fbfaf8, #f6f4f1);
    color: var(--ev-text);
    font-family: "DM Sans", "Roboto", Arial, sans-serif;
}

.inv-header,
.inv-card,
.ai-header,
.ai-card {
    width: 100%;
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

.inv-header,
.ai-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.inv-header h2,
.ai-header h2 {
    margin: 0 0 5px;
    color: var(--ev-text);
    font-size: 30px;
    font-weight: 750 !important;
}

.inv-header p {
    margin: 0;
    color: var(--ev-muted);
}

.inv-btn-primary,
.ai-header-right a,
.ai-btn-submit {
    display: inline-flex;
    gap: 9px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--ev-primary);
    color: #fff !important;
    font-weight: 650;
    text-decoration: none !important;
    cursor: pointer;
}

.ai-header-right a {
    border: 1px solid #dedfe3;
    background: #fff;
    color: #515866 !important;
}

.inv-card,
.ai-card {
    overflow: visible;
    border: 1px solid rgba(30, 36, 51, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(38, 34, 27, .08);
}

.inv-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--ev-line);
}

.inv-search-wrap {
    position: relative;
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    max-width: 440px;
}

.inv-search-wrap > i {
    position: absolute;
    left: 15px;
    color: #9298a3;
}

.inv-search,
.inv-filter-select {
    height: 44px;
    border: 1px solid #dfe2e7;
    border-radius: 10px;
    background: #fff;
    color: var(--ev-text);
    font: inherit;
    outline: none;
}

.inv-search {
    width: 100% !important;
    padding: 0 15px 0 42px;
}

.inv-filter-select {
    min-width: 150px;
    padding: 0 35px 0 13px;
}

.inv-search:focus,
.inv-filter-select:focus,
.ai-input:focus {
    border-color: var(--ev-primary);
    box-shadow: 0 0 0 3px rgba(129, 100, 58, .12);
}

.inv-total-badge {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-height: 38px;
    margin-left: auto;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--ev-primary-soft);
    color: var(--ev-primary-dark);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.inv-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.inv-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.inv-table th,
.inv-table td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--ev-line);
    text-align: left;
    vertical-align: middle;
}

.inv-table th {
    background: #fafafa;
    color: #596170;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.inv-table tbody tr:hover {
    background: #fcfbf9;
}

.inv-status {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #596170;
    font-size: 12px;
    font-weight: 650;
    text-transform: capitalize;
}

.inv-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.inv-status.yes { background: #e9f7f0; color: var(--ev-success); }
.inv-status.no { background: #fdeceb; color: #b34d49; }
.inv-status.pending { background: #fff5e5; color: var(--ev-warning); }

.inv-delete-btn,
.ai-btn-add,
.ai-btn-remove {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ev-line);
    border-radius: 9px;
    background: #fff;
    color: #6c7380;
    cursor: pointer;
}

.inv-delete-btn:hover,
.ai-btn-remove:hover {
    border-color: #e8b7b4;
    background: #fff6f5;
    color: #b34d49;
}

.inv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px 24px;
    border-top: 1px solid var(--ev-line);
}

.inv-page-info { color: var(--ev-muted); font-size: 13px; }
.inv-page-btns { display: flex; gap: 6px; }
.inv-page-btn {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ev-line);
    border-radius: 8px;
    background: #fff;
    color: #565e6c;
    font-size: 12px;
    cursor: pointer;
}
.inv-page-btn.active,
.inv-page-btn:hover:not(:disabled) { border-color: var(--ev-primary); background: var(--ev-primary); color: #fff; }
.inv-page-btn:disabled { opacity: .4; cursor: default; }

.inv-empty,
.inv-login-prompt {
    padding: 70px 24px;
    color: var(--ev-muted);
    text-align: center;
}

.inv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 26, 34, .5);
    backdrop-filter: blur(3px);
}

.inv-modal-overlay.open { display: flex; }
.inv-modal {
    width: min(100%, 450px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(20, 24, 32, .25);
}
.inv-modal-header { display: flex; gap: 12px; align-items: center; padding: 22px 24px 12px; }
.inv-modal-header h5 { margin: 0; color: var(--ev-text); font-weight: 700 !important; }
.inv-modal-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: #fff0ef; color: #b34d49; }
.inv-modal-body { padding: 8px 24px 22px; color: var(--ev-muted); line-height: 1.6; }
.inv-modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; background: #fafafa; }
.inv-btn-secondary,
.inv-btn-danger { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; font-weight: 650; cursor: pointer; }
.inv-btn-secondary { border: 1px solid #dedfe3; background: #fff; color: #505866; }
.inv-btn-danger { background: #b34d49; color: #fff; }

/* Add invitees */
.ai-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--ev-line);
}
.ai-card-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ev-primary-soft); color: var(--ev-primary); }
.ai-card-header h4 { margin: 0 0 4px; color: var(--ev-text); font-weight: 700 !important; }
.ai-card-header p { margin: 0; color: var(--ev-muted); font-size: 13px; }
.ai-card-body { padding: 24px; }
.ai-rows-wrap { display: flex; flex-direction: column; gap: 12px; }
.ai-row { display: grid; grid-template-columns: 34px minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--ev-line); border-radius: 12px; background: #fcfcfc; }
.ai-note-input { min-height: 42px; padding-top: 12px; resize: vertical; }
.ai-note-field > i { top: 20px; }
.inv-private-note { min-width: 180px; max-width: 320px; white-space: normal; color: #4f5665; font-size: 13px; line-height: 1.5; }
.inv-note-empty { color: #a2a8b3; }
.inv-private-note-hint { color: var(--ev-muted); font-size: 12px; }
.ai-row-num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ev-primary-soft); color: var(--ev-primary-dark); font-size: 12px; font-weight: 700; }
.ai-field { position: relative; }
.ai-field > i { position: absolute; top: 50%; left: 14px; color: #9a9faa; transform: translateY(-50%); }
.ai-input { width: 100% !important; height: 44px; padding: 0 14px 0 40px; border: 1px solid #dfe2e7; border-radius: 9px; background: #fff; color: var(--ev-text); font: inherit; outline: none; }
.ai-row-actions { display: flex; gap: 7px; }
.ai-btn-add { border-color: #d6e8dd; background: #f4fbf7; color: var(--ev-success); }
.ai-divider { height: 1px; margin: 24px 0; background: var(--ev-line); }
.ai-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ai-footer-left { color: var(--ev-muted); font-size: 13px; }
.ai-footer-left span { color: var(--ev-primary); font-weight: 750; }

[dir="rtl"] .portal-hero,
[dir="rtl"] .portal-features,
[dir="rtl"] .inv-table th,
[dir="rtl"] .inv-table td { text-align: right; }
[dir="rtl"] .portal-preview-card { right: auto; left: 18px; }
[dir="rtl"] .portal-float-one { right: 0; left: auto; }
[dir="rtl"] .portal-float-two { right: auto; left: -5px; }
[dir="rtl"] .portal-preview-guests span { margin-right: 0; margin-left: -8px; }
[dir="rtl"] .inv-search-wrap > i,
[dir="rtl"] .ai-field > i { right: 14px; left: auto; }
[dir="rtl"] .inv-search,
[dir="rtl"] .ai-input { padding-right: 40px; padding-left: 14px; }
[dir="rtl"] .inv-total-badge { margin-right: auto; margin-left: 0; }

@media (max-width: 991px) {
    .portal-hero { grid-template-columns: 1fr; gap: 12px; padding: 52px 38px; }
    .portal-hero-copy { text-align: center; }
    .portal-hero h1,
    .portal-hero-copy > p { margin-right: auto; margin-left: auto; }
    .portal-hero-actions,
    .portal-trust-row { justify-content: center; }
    .portal-hero-visual { width: min(100%, 520px); min-height: 360px; margin: 0 auto; }
    .portal-features { grid-template-columns: 1fr; }
    .portal-features article { text-align: center; }
    .ai-row { grid-template-columns: 34px 1fr 1fr; }
    .ai-row-actions { grid-column: 2 / -1; justify-content: flex-end; }
    .ai-note-field { grid-column: 2 / -1; }
}

@media (max-width: 767px) {
    .portal-hero { min-height: auto; padding: 42px 20px 30px; }
    .portal-hero h1 { font-size: 39px; }
    .portal-hero-copy > p { font-size: 15px; }
    .portal-hero-actions { flex-direction: column; }
    .portal-btn { width: 100%; }
    .portal-trust-row { gap: 10px 15px; }
    .portal-hero-visual { min-height: 315px; }
    .portal-preview-card { top: 30px; right: 0; padding: 18px; }
    [dir="rtl"] .portal-preview-card { right: auto; left: 0; }
    .portal-float-card { display: none; }
    .portal-features article { padding: 28px 22px; }
    .inv-wrap,
    .ai-wrap { padding: 26px 12px 48px; }
    .inv-header,
    .ai-header { align-items: stretch; flex-direction: column; }
    .inv-btn-primary,
    .ai-header-right a { width: 100%; }
    .inv-toolbar { flex-wrap: wrap; padding: 16px; }
    .inv-search-wrap,
    .inv-filter-select { width: 100%; max-width: none; }
    .inv-total-badge { margin-left: 0; }
    .inv-pagination { gap: 12px; align-items: flex-start; flex-direction: column; padding: 16px; }
    .ai-card-body,
    .ai-card-header { padding: 18px; }
    .ai-row { grid-template-columns: 30px 1fr; }
    .ai-field,
    .ai-row-actions { grid-column: 2; }
    .ai-note-field { grid-column: 2; }
    .ai-card-footer { align-items: stretch; flex-direction: column; }
    .ai-btn-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
