:root {
    --upvid-bg: #f4f7fb;
    --upvid-card: #ffffff;
    --upvid-text: #162033;
    --upvid-muted: #61708a;
    --upvid-primary: #3459d1;
    --upvid-primary-dark: #2845a5;
    --upvid-border: rgba(22, 32, 51, 0.08);
    --upvid-shadow: 0 18px 48px rgba(20, 32, 68, 0.12);
}

body {
    background:
        radial-gradient(circle at top right, rgba(52, 89, 209, 0.12), transparent 28%),
        linear-gradient(180deg, #eef3ff 0%, var(--upvid-bg) 100%);
    color: var(--upvid-text);
    font-family: 'Cairo', 'Inter', sans-serif;
    min-height: 100vh;
}

body[dir='ltr'] {
    font-family: 'Inter', 'Cairo', sans-serif;
}

.hero-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-card,
.admin-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--upvid-border);
    border-radius: 28px;
    box-shadow: var(--upvid-shadow);
    backdrop-filter: blur(10px);
}

.hero-card {
    overflow: hidden;
}

.hero-content {
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(52, 89, 209, 0.96), rgba(39, 62, 147, 0.95));
    color: #fff;
}

.hero-content p,
.hero-content li {
    color: rgba(255, 255, 255, 0.88);
}

.hero-form {
    padding: 2rem;
}

.language-switcher a {
    text-decoration: none;
    color: var(--upvid-muted);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
}

.language-switcher a.active,
.language-switcher a:hover {
    background: rgba(52, 89, 209, 0.1);
    color: var(--upvid-primary);
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid rgba(97, 112, 138, 0.28);
    padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(52, 89, 209, 0.46);
    box-shadow: 0 0 0 0.25rem rgba(52, 89, 209, 0.14);
}

.btn-primary {
    background: linear-gradient(135deg, var(--upvid-primary), #5374e4);
    border: 0;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--upvid-primary-dark), #4264d8);
}

.form-note,
.text-muted-soft {
    color: var(--upvid-muted);
}

.preview-box {
    display: none;
    margin-top: 1rem;
    border: 1px dashed rgba(52, 89, 209, 0.35);
    border-radius: 18px;
    padding: 0.75rem;
    background: rgba(52, 89, 209, 0.04);
}

.preview-box.active {
    display: block;
}

.preview-box video {
    width: 100%;
    max-height: 240px;
    border-radius: 14px;
    background: #0d1424;
}

.iti,
.selectcountry,
.niceCountryInputMenu,
.niceCountryInputMenuDropdownContent,
.select2-container {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
}

.phone-ltr,
.iti input[type='tel'] {
    direction: ltr !important;
    text-align: left !important;
}

body[dir='rtl'] .iti {
    direction: ltr;
}

.iti__country-container {
    left: 0 !important;
    right: auto !important;
}

.iti--separate-dial-code .iti__tel-input,
.iti--allow-dropdown .iti__tel-input {
    padding-left: 90px !important;
    padding-right: 1rem !important;
}

.niceCountryInputMenu {
    min-height: 52px;
    border: 1px solid rgba(97, 112, 138, 0.28) !important;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.9rem;
    box-shadow: none;
}

.niceCountryInputMenu:focus-within,
.niceCountryInputMenuFilter input:focus,
.select2-container--default .select2-selection--single:focus {
    border-color: rgba(52, 89, 209, 0.46) !important;
    box-shadow: 0 0 0 0.25rem rgba(52, 89, 209, 0.14);
    outline: 0;
}

.niceCountryInputMenuDefaultText {
    width: calc(100% - 20px);
}

.niceCountryInputMenuDefaultText a,
.niceCountryInputMenuDropdownContent a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.niceCountryInputMenuDropdown {
    width: auto;
    height: auto;
    float: none;
    color: var(--upvid-muted);
}

.niceCountryInputMenuFilter {
    border: 1px solid rgba(97, 112, 138, 0.18);
    border-top: 0;
    background: #fff;
}

.niceCountryInputMenuFilter input {
    border: 1px solid rgba(97, 112, 138, 0.28);
    border-radius: 12px;
}

.niceCountryInputMenuDropdownContent {
    border: 1px solid rgba(97, 112, 138, 0.18);
    border-top: 0;
    background: #fff;
    border-radius: 0 0 14px 14px;
}

.niceCountryInputMenuDropdownContent a {
    height: auto;
    line-height: 1.4;
    padding: 0.65rem 0.85rem;
}

.niceCountryInputMenuDropdownContent a:hover {
    background-color: rgba(52, 89, 209, 0.08) !important;
    color: var(--upvid-primary) !important;
}

.niceCountryInputMenuCountryFlag {
    margin-inline: 0;
}

.select2-container--default .select2-selection--single {
    height: 52px;
    border: 1px solid rgba(97, 112, 138, 0.28);
    border-radius: 14px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--upvid-text);
    line-height: 50px;
    padding-inline: 1rem 2.25rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    inset-inline-end: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--upvid-muted);
}

.select2-dropdown {
    border: 1px solid rgba(97, 112, 138, 0.18);
    border-radius: 14px;
    overflow: hidden;
}

.select2-search--dropdown {
    padding: 0.75rem;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(97, 112, 138, 0.28);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}

.select2-results__option {
    padding: 0.7rem 0.9rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--upvid-primary);
}

.sr-only-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.table-shell {
    overflow-x: auto;
}

.table thead th {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .hero-content,
    .hero-form,
    .admin-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-shell {
        padding: 1rem 0;
    }

    .hero-content,
    .hero-form,
    .admin-card {
        padding: 1.2rem;
    }
}
