/* ========================================
   MASTER CSS - Consolidated & Deduplicated
   Bootstrap 4 & 5 Compatible
   ======================================== */

/* === BOOTSTRAP 4/5 COMPATIBILITY === */
/* These rules ensure compatibility with both Bootstrap versions */

/* BS5 uses .btn-close instead of .close, support both */
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
}

.btn-close:disabled,
.btn-close.disabled {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    opacity: 0.25;
}

/* Dark variant for Bootstrap 5 */
.btn-close-white,
#login-alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* BS5 uses .ms-auto and .me-auto instead of .ml-auto and .mr-auto */
.ms-auto {
    margin-left: auto !important;
}

.me-auto {
    margin-right: auto !important;
}

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

/* BS5 uses .text-end instead of .text-right */
.text-end {
    text-align: right !important;
}

.text-start {
    text-align: left !important;
}

/* BS5 uses .float-end and .float-start */
.float-end {
    float: right !important;
}

.float-start {
    float: left !important;
}

/* BS5 modal backdrop fix */
.modal-backdrop {
    --bs-backdrop-zindex: 1050;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-backdrop-zindex);
    width: 100vw;
    height: 100vh;
    background-color: var(--bs-backdrop-bg);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: var(--bs-backdrop-opacity);
}

/* Ensure dropdown menus work in both BS4 and BS5 */
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

/* BS5 navbar toggler compatibility */
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.25rem;
}

/* Fix for data-bs-toggle (BS5) and data-toggle (BS4) */
[data-bs-toggle="collapse"]:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Alert compatibility for BS4/BS5 */
.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1.25rem;
}

/* === BASE STYLES (from style-p2.css) === */
body[data-theme=light] .text-primary--light-only {
    color: #473bf0;
}

body[data-theme=dark] .border-gray-3 {
    border-color: var(--border-color) !important;
}

body[data-theme=dark] .bg-gradient-2 {
    background-image: linear-gradient(270deg, rgba(0,0,0,0) 0, #13151c 100%);
}

body[data-theme=dark] .border-blackish-blue {
    border-color: #fff !important;
}

body[data-theme=dark] .gr-bg-blackish-blue-opacity-1 {
    background-color: rgba(255,255,255,.8) !important;
}

body[data-theme=dark] .btn-toggle {
    background-color: #efefef;
}

body[data-theme=dark] .btn-toggle span {
    background: #473bf0;
}

body[data-theme=dark] .btn-toggle.active span {
    background: #ffff;
}

/* === BUTTONS === */
.btn {
    border: 1px transparent;
    z-index: 99;
    cursor: pointer;
}

a.link:hover,
a:hover {
    color: #9035bd;
}

.btn-primary {
    background: #fff;
    color: #000;
}

/* Override from style-p5.css */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.focus,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background: linear-gradient(72deg, rgba(144, 52, 189, 1) 0%, rgba(88, 67, 182, 1) 100%);
    border-color: transparent;
    outline: 0;
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    border-color: transparent;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    background: linear-gradient(72deg, rgba(144, 52, 189, 1) 0%, rgba(88, 67, 182, 1) 100%);
    border-color: transparent;
}

.btn-outline-primary,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-outline-primary.disabled,
.btn-outline-primary:disabled,
.btn-outline-primary:focus {
    color: #D5D5D5 !important;
    border: 1px solid #D5D5D5;
    background: transparent;
    outline: 0;
}

.btn-outline-primary:hover {
    color: #fff;
    background: linear-gradient(72deg, rgba(144, 52, 189, 1) 0%, rgba(88, 67, 182, 1) 100%);
    border-color: transparent;
}

.btn-outline-secondary,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle,
.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled,
.btn-outline-secondary:focus {
    color: #9c9c9c !important;
    border: 1px solid #9c9c9c;
    background: transparent;
    outline: 0;
    border: 0;
}

.btn-outline-secondary:hover {
    color: #fff !important;
    background: linear-gradient(72deg, rgba(144, 52, 189, 1) 0%, rgba(88, 67, 182, 1) 100%);
    border-color: transparent;
}

.btn-outline-danger {
    border: 1px solid #dc3545;
}

.btn-transparent {
    background: 0 0;
    color: #fff;
}

.btn-transparent:hover {
    background: rgba(255,255,255,.1);
}

.btn-light {
    background: 0 0;
    border: 1px solid #fff;
    color: #fff;
}

.btn-light:hover {
    background: rgba(255,255,255,.2);
    border: 1px solid #fff;
    color: #fff;
}

.btn-remove {
    border: 1px solid #fff;
    width: 40px;
    height: 52px;
    border-radius: 0 10px 10px 0 !important;
}

.btn-remove:hover {
    border: 1px solid #fff;
    width: 40px;
    height: 52px;
    border-radius: 0 10px 10px 0;
}

.btn-sm {
    border-radius: 5px;
    margin-bottom: 5px;
}

.btn-xl {
    min-height: 100px;
    font-size: 26px;
}

.btn-app {
    background: 0 0;
    border: 0;
    top: 0;
    color: silver;
    margin-top: 5px;
    margin-left: 2px;
    margin-right: 2px;
}

.btn-app:active,
.btn-app:hover {
    background: #fff;
    border: 0;
    top: 0;
    color: #000;
}

.btn-quickbutton {
    inline-size: 100%;
    overflow: hidden;
}

/* Pro Buttons (from style-p3 & style-p5) */
.text-pro {
    color: #F5CE47;
}

.btn-pro:hover {
    background: transparent !important;
    color: #F5CE47;
    border: 1px solid #F5CE47;
}

.btn-pro {
    background: #F5CE47 !important;
    color: black;
    border: 1px solid #F5CE47;
}

.btn-toggle-pro {
    background: #F5CE47 !important;
}

.badge-pro-feature {
    background-image: linear-gradient(to right, #F8B400, #FFD700);
    color: #000;
    border: none;
}

.badge-pro-feature:hover {
    background-image: linear-gradient(to right, #d4a340 0%, #c98932 100%);
    color: #fff;
}

/* === FORM CONTROLS === */
.custom-select,
.form-control,
.input-group,
.input-group-prepend,
.input-group-text,
input {
    margin: 0;
    font-size: 14px;
    background: 0 0;
    color: #fff;
}

.input-group-text {
    padding-left: 12px;
}

input[type=email],
input[type=email]:focus,
input[type=email]:hover,
input[type=number],
input[type=number]:focus,
input[type=number]:hover,
input[type=password],
input[type=password]:focus,
input[type=password]:hover,
input[type=text],
input[type=text]:focus,
input[type=text]:hover,
input[type=text]:read-only,
textarea,
textarea:focus {
    background: 0 0 !important;
    color: #fff;
}

textarea {
    color: #fff !important;
}

.form-control:active,
.form-control:focus {
    color: #fff;
}

.form-group {
    background: 0 0;
    color: #fff;
}

.form-control-sm {
    padding-top: 0 !important;
}

select,
select:focus {
    background: 0 0;
    color: #fff;
}

.custom-select {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='white' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right .75rem center/8px 10px no-repeat !important;
}

.custom-select option,
.custom-select optgroup {
    color: black;
}

.input-group,
.input-group-prepend,
.input-group-text,
.custom-select,
.custom-file,
.custom-file-input,
.custom-file-label,
.form-control {
    border-color: #3E4046;
}

.input-group-prepend {
    background: rgba(255,255,255,.2);
    border-radius: 10px 0 0 10px;
}

.input-group-prepend-none {
    background: 0 0;
}

.custom-file-label {
    background: transparent;
    color: white;
}

.custom-control-label::before {
    border-color: black;
}

.custom-control-input:focus ~ .custom-control-label::before {
    border-color: #7A3CB0 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 47, 69, 0.25) !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: #7A3CB0 !important;
    background-color: #7A3CB0 !important;
}

.custom-control-input:active ~ .custom-control-label::before {
    background-color: #7A3CB0 !important;
    border-color: #7A3CB0 !important;
}

.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #7A3CB0 !important;
}

.custom-control-input-green:not(:disabled):active ~ .custom-control-label::before {
    background-color: #7A3CB0 !important;
    border-color: #7A3CB0 !important;
}

/* === TABLE === */
.table {
    table-layout: fixed;
}

.table th {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

td {
    vertical-align: middle !important;
}

thead > tr > td {
    border-top: 0 !important;
}

.table-markers thead tr td {
    background: rgba(255,255,255,.1);
}

.table-markers thead tr td:first-child {
    border-radius: 15px 0 0;
}

.table-markers thead tr td:last-child {
    border-radius: 0 15px 0 0;
}

/* === LOADER === */
.loader {
    border: 4px solid #5843b6;
    border-radius: 50%;
    border-top: 4px solid #1e1e2f;
    border-bottom: 4px solid #1e1e2f;
    width: 50px;
    height: 50px;
    -webkit-animation: 3s linear infinite spin;
    animation: 3s linear infinite spin;
    margin: 20px auto 10px;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* === LAYOUT === */
header {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1400px;
}

.container-xxl {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

@media (max-width:992px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width:992px) and (max-width:1400px) {
    .container {
        padding-left: 45px;
        padding-right: 45px;
    }
}

@media (min-width:1400px) and (max-width:1445px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* === NAVBAR === */
.navbar {
    z-index: 999;
}

.navbar-toggler {
    border: 0;
}

.navbar-nav-wrapper {
    position: relative;
    z-index: 1050;
}

header .dropdown-menu {
    background: #0D1018;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 10px;
}

header .drop-menu-item {
    color: white !important;
}

.dropdown,
.dropdown-toggle {
    outline: none !important;
}

/* === UPLOADER === */
.display-none,
.uploader #file-image.hidden,
.uploader #notimage.hidden,
.uploader #response.hidden,
.uploader #start.hidden,
.uploader input[type=file] {
    display: none;
}

.result_image {
    border: 5px solid #5843b6;
}

#result_div {
    margin-bottom: 15px;
}

.uploader {
    display: block;
    clear: both;
    margin: 0;
    width: 100%;
    cursor: pointer;
    background: transparent !important;
}

.uploader label {
    cursor: pointer;
    float: left;
    clear: both;
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 7px;
    border: 3px solid #eee;
    transition: .2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.uploader label:hover {
    border-color: #5843b6;
}

.uploader label.hover {
    border: 3px solid #454cad;
    box-shadow: inset 0 0 0 6px #eee;
}

.uploader label.hover #start i.fa {
    transform: scale(.8);
    opacity: .3;
}

.uploader #response,
.uploader #start {
    float: left;
    clear: both;
    width: 100%;
}

.uploader #start i.fa {
    font-size: 50px;
    margin-bottom: 1rem;
    transition: .2s ease-in-out;
}

.uploader #response #messages {
    margin-bottom: .5rem;
}

.uploader #file-image {
    display: inline;
    margin: 0 auto .5rem;
    width: auto;
    height: auto;
    max-width: 180px;
}

.uploader #notimage {
    display: block;
    float: left;
    clear: both;
    width: 100%;
}

.uploader .progress,
.uploader progress {
    display: inline;
    clear: both;
    margin: 0 auto;
    width: 100%;
    max-width: 180px;
    height: 8px;
    border: 0;
    border-radius: 4px;
    background-color: #eee;
    overflow: hidden;
}

.uploader .progress[value]::-webkit-progress-bar {
    border-radius: 4px;
    background-color: #eee;
}

.uploader .progress[value]::-webkit-progress-value {
    background: linear-gradient(to right, #393f90 0, #454cad 50%);
    border-radius: 4px;
}

.uploader .progress[value]::-moz-progress-bar {
    background: linear-gradient(to right, #393f90 0, #454cad 50%);
    border-radius: 4px;
}

.uploader div {
    margin: 0 0 .5rem;
    color: #5843b6;
}

.uploader .btn {
    display: inline-block;
    margin: .5rem .5rem 1rem;
    clear: both;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: initial;
    border: none;
    border-radius: .2rem;
    outline: 0;
    padding: 0 1rem;
    height: 36px;
    line-height: 36px;
    color: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

#file-drag,
#file-message {
    background: transparent !important;
    color: white !important;
}

#file-btn {
    background: transparent !important;
    color: white !important;
    border: 1px solid white;
}

.file-message {
    overflow: hidden;
}

/* === SLIDER === */
.slidecontainer {
    background: transparent !important;
    border-radius: 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: white;
    outline: 0;
    opacity: .9;
    -webkit-transition: .2s;
    transition: opacity .2s;
    padding: 0;
    margin: 25px 10px 0;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #8619ab;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #8619ab;
    cursor: pointer;
}

/* === CAROUSEL === */
.carousel,
.carousel-inner,
.carousel-item {
    position: relative;
}

.carousel.pointer-event {
    touch-action: pan-y;
}

.carousel-inner {
    width: 100%;
    overflow: hidden;
}

.carousel-inner::after {
    display: block;
    clear: both;
    content: "";
}

.carousel-item {
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform .9s ease-in-out;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

.active.carousel-item-end,
.carousel-item-next:not(.carousel-item-start) {
    transform: translateX(100%);
}

.active.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-100%);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end,
.carousel-fade .carousel-item.active {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .active.carousel-item-end,
.carousel-fade .active.carousel-item-start {
    z-index: 0;
    opacity: 0;
    transition: opacity 0s .6s;
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s;
}

.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: .5;
    transition: opacity .6s;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-caption {
    position: absolute;
    right: 15%;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
}

.carousel-dark .carousel-control-next-icon,
.carousel-dark .carousel-control-prev-icon {
    filter: invert(1) grayscale(100);
}

.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #000;
}

.carousel-dark .carousel-caption {
    color: #000;
}

@media (prefers-reduced-motion:reduce) {
    .carousel-control-next,
    .carousel-control-prev,
    .carousel-fade .active.carousel-item-end,
    .carousel-fade .active.carousel-item-start,
    .carousel-indicators [data-bs-target],
    .carousel-item {
        transition: none;
    }
}

/* === MODAL === */
.modal-content {
    background-color: #0e1019;
    color: #f0f0f0;
    border-color: grey;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 10px;
}

.modal-app {
    border: 0;
}

.modal-body,
.modal-footer,
.modal-header {
    padding: 12px;
}

.app-menu .dropdown-menu {
    background: #171a1e;
}

/* === UTILITY CLASSES === */
.transparent_pattern {
    background-color: #dedede;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%), linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.b-only-l {
    border-radius: 10px 0 0 10px !important;
}

.b-only-r {
    border-radius: 0 10px 10px 0 !important;
}

.w-400 {
    width: 400px;
}

.no-overflow {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-focus,
.no-focus:focus {
    outline: 0;
    user-select: none;
}

.flash {
    animation: 1s blink;
}

@keyframes blink {
    20% { background-color: #fff; }
}

.round-dark {
    background: #0E1018 !important;
}

/* === TYPOGRAPHY & LINKS === */
p {
    color: #e3e3e3;
}

.close > span,
label,
li {
    color: #f0f0f0;
}

li {
    font-size: 19px;
}

label > a:link,
label > a:visited,
li > a:link,
li > a:visited,
p > a:link,
p > a:visited {
    color: #c979ea;
    text-decoration: none;
}

label > a:active,
label > a:hover,
li > a:active,
li > a:hover,
p > a:active,
p > a:hover {
    color: #fff;
}

.link-light {
    color: white !important;
    text-decoration: underline;
}

a > .fa {
    width: 28px;
}

/* === HERO & HEADER === */
.hero-area {
    min-height: 500px;
}

.helpbtn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
}

.drop-account-info {
    border-radius: 10px 10px 0 0;
    background: #cfcfcf;
    color: #000;
}

.drop-menu-item a:hover {
    color: rgb(144, 52, 189);
}

/* === RESPONSE BOXES (from style-p3) === */
.responsebox-danger {
    border: 1px solid var(--danger);
    padding: 30px;
    font-size: 16px;
}

.responsebox-danger > h3 {
    color: var(--danger);
}

.responsebox-warning {
    border: 1px solid var(--warning);
    padding: 30px;
    font-size: 16px;
}

.responsebox-warning > h3 {
    color: var(--warning);
}

.responsebox-success {
    border: 1px solid var(--success);
    padding: 30px;
    font-size: 16px;
}

.responsebox-success > h3 {
    color: var(--success);
}

.responsebox-pro {
    border: 1px solid #F5CE47;
    padding: 30px;
    font-size: 16px;
}

.responsebox-pro > h3 {
    color: #F5CE47;
}

.responsebox-info {
    border: 1px solid var(--info);
    padding: 30px;
    font-size: 16px;
}

.responsebox-info > h3 {
    color: var(--info);
}

.responsebox-light {
    border: 1px solid var(--light);
    padding: 30px;
    font-size: 16px;
}

.responsebox-light > h3 {
    color: var(--light);
}

/* === ALERTS (from style-p5) === */
.alert-danger {
    border: 1px solid var(--danger);
    padding: 30px;
    font-size: 16px;
    background: transparent;
    color: #B7B8BA !important;
    border-radius: 10px;
}

.alert-danger > h3 {
    color: var(--danger);
}

.alert-success {
    border: 1px solid var(--success);
    padding: 30px;
    font-size: 16px;
    background: transparent;
    color: #B7B8BA !important;
    border-radius: 10px;
}

.alert-success > h3 {
    color: var(--success);
}

#login-alert > .btn-close {
    color: white;
}

.fade-out {
    transition: opacity 1s ease-out;
    opacity: 0;
}

/* === PROCESSOR LOADER === */
#processor-loader {
    margin-top: 5%;
    width: 200px;
    transform-box: fill-box;
    transform-origin: center;
    border-radius: 50%;
    animation: rotateAnimationSlow 10s linear infinite;
}

.processor-loader-shape2 {
    fill: #FFFFFF;
    filter: url(#glowEffect);
    transform: scale(0.5, 0.5);
}

.processor-loader-shape1 {
    fill: #E33E84;
    filter: url(#glowEffect);
    transform: scale(0.5, 0.5);
}

@keyframes rotateAnimationSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === APP PANEL (from style-p4) === */
#custom_timecode {
    font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
    background: 0 0;
    border: 0;
    padding: 10px;
    font-size: 4vw;
    color: #fff;
    width: 100%;
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 10px;
    outline: 0;
}

.app-menu {
    background: #171a1e;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.app-menu a.navbar-brand {
    font-size: 16px;
}

#app_panel {
    background: var(--bg);
    height: 100vh;
    min-height: 900px;
    width: 100%;
    padding: 0;
    margin: 0;
}

:fullscreen {
    width: 100vw;
    height: 100vh;
    padding: 50px;
}

:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    padding: 50px;
}

/* === GLASS EFFECTS === */
.bg-glass-dark {
    background: rgba(0, 0, 0, 0.26);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.27);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.blurbackground {
    background: rgba(24, 26, 30, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* === LANGUAGE BOX === */
.language-box {
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.language-box:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    text-decoration: none;
    color: black;
}

.language-box.selected {
    border-color: #007bff;
    background-color: #e9f5ff;
    color: black;
}

.language-box .flag {
    font-size: 1.5rem;
    margin-right: 12px;
}

/* === LOGO EFFECTS === */
.logo-backdrop-home {
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease;
}

.logo-backdrop-home:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.logo-opacity-home {
    opacity: 0.7;
}

.logo-opacity-home:hover {
    opacity: 1;
    cursor: pointer;
}

.inner-logo-home {
    transition: background-color 0.1s linear;
    margin: 2px;
    padding: 20px;
}

.inner-logo-home img {
    max-width: 140px;
}

/* === PRICING CARD === */
#buydownload .pricing-card {
    border-color: white !important;
}

.pricing-card {
    border-color: #F5CE47 !important;
}

/* === GROUP SEPARATOR === */
.et-group-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #f0f0f0;
    clear: both;
}

.et-group-separator::before,
.et-group-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #f0f0f0;
}

.et-group-separator:not(:empty)::before {
    margin-right: .25em;
}

.et-group-separator:not(:empty)::after {
    margin-left: .25em;
}

/* === LOGIN CONTAINER === */
.login-container {
    background: url('/img/loginscreen_background.jpg') top center;
    background-size: cover;
    padding-top: 80px;
    padding-bottom: 80px;
    margin-top: -170px;
    min-height: 800px;
}

.login-container p {
    font-size: 16px;
}

.login-container .custom-control-label a:link,
.login-container .custom-control-label a:visited {
    color: white !important;
}

.login-container .custom-control-label a:hover,
.login-container .custom-control-label a:active {
    color: gray !important;
}

.login-container .form-group {
    margin-bottom: 8px;
}

.sign-in-with-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-weight: 100;
    font-size: 15px;
    color: #000;
    border: none;
    border: 0px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 8px;
    background: #fff;
}

.sign-in-with-btn:hover {
    color: #000;
}

.pwforgotten-btn {
    padding: 5px 10px;
    font-weight: 100;
    font-size: 14px;
    color: #fff;
    border: none;
    border: 0px white solid;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* === DROPDOWN MENU (from style-p5) === */
@media (min-width: 992px) {
    .gr-menu-dropdown {
        position: absolute;
        min-width: 280px;
        max-width: 350px;
        box-shadow: 0 52px 54px rgba(65, 62, 101, 0.3);
        border-radius: 8px;
        border: 1px solid #E5E5E5;
        background-color: #FFFFFF;
        padding: 10px 0px;
        top: 100%;
        z-index: 9999;
        opacity: 0;
        transition: opacity .4s, top .4s;
        pointer-events: none;
        left: 0;
        right: auto;
        border-radius: 0 0 10px 10px;
        border: 1px solid #eae9f2;
        background-color: #ffffff;
        display: block;
        border-top: 3px solid #473bf0;
    }
}

.gr-menu-dropdown .drop-menu-item {
    color: #19191b;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    padding: 0;
}

.gr-menu-dropdown .drop-menu-item a {
    display: block;
    padding: 10px 30px;
    color: inherit;
    text-decoration: none;
}

.gr-menu-dropdown .drop-menu-item a:hover {
    background-color: #ffffff;
    color: #000000;
}

.gr-menu-dropdown .drop-menu-item:hover a {
    color: #000000;
}

.gr-menu-dropdown .drop-menu-item .gr-menu-dropdown {
    border-top-color: #68d585;
}

@media (min-width: 992px) {
    .gr-menu-dropdown .drop-menu-item .gr-menu-dropdown {
        top: 10px;
        left: auto;
        right: 0;
        opacity: 0;
        transform: translateX(110%);
        transition: .4s;
        pointer-events: none;
        will-change: transform;
    }
}

@media (min-width: 380px) {
    .gr-menu-dropdown .drop-menu-item .gr-menu-dropdown .drop-menu-item {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (min-width: 992px) {
    .gr-menu-dropdown .drop-menu-item .gr-menu-dropdown .drop-menu-item {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.gr-menu-dropdown.dropdown-right {
    left: auto;
    right: -90%;
}

@media (min-width: 992px) {
    .nav-item.dropdown {
        position: relative;
        z-index: 1000;
    }
    
    .nav-item.dropdown:hover > .gr-menu-dropdown {
        top: 90%;
        opacity: 1;
        pointer-events: visible;
    }
    
    .nav-item.dropdown:hover .gr-megamenu-dropdown.center {
        transform: translateX(-50%) translateY(-10px);
        z-index: 99;
        opacity: 1;
        pointer-events: visible;
    }
    
    .nav-item.dropdown:hover .gr-megamenu-dropdown-2,
    .nav-item.dropdown:hover.triangle-shape:after,
    .nav-item.dropdown:hover.triangle-shape:before {
        transform: translateX(-50%) translateY(-10px);
        z-index: 99;
        opacity: 1;
        pointer-events: visible;
    }
}

.drop-menu-item.dropdown {
    position: relative;
}

.drop-menu-item.dropdown .gr-toggle-arrow i {
    transform: rotate(-90deg);
}

@media (min-width: 992px) {
    .drop-menu-item.dropdown:hover .gr-menu-dropdown {
        top: 10px;
        opacity: 1;
        pointer-events: visible;
        transform: translateX(100%);
    }
}

@media (min-width: 1200px) {
    .dropdown-menu-dynamic-xl {
        min-width: 600px;
    }
}

@media (max-width: 1200px) {
    .dropdown-menu-dynamic-xl {
        min-width: 300px;
    }
}

.header-btns {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.2rem;
}

.header-btns .btn-globe {
    width: 80px;
    min-width: 80px;
    justify-content: center;
}

.gr-menu-dropdown .row {
    margin-top: -10px;
}

/* === RESPONSIVE STYLES === */
@media (max-width:768px) {
    #custom_timecode {
        font-size: 8vw;
    }
    
    .mobile-hide {
        display: none;
    }
    
    .app_panel {
        margin: 0;
        padding: 0;
    }
    
    .sub-panel1,
    .sub-panel2,
    .sub-panel3 {
        position: relative;
        float: left;
        top: 0;
        left: 0;
        width: 100%;
    }
    
    .sub-panel1 {
        height: 15%;
    }
    
    .sub-panel2 {
        padding: 0;
    }
}

@media (min-width:768px) {
    .sub-panel1 {
        position: relative;
        float: left;
        top: 0;
        left: 0;
        width: 100%;
        height: 15%;
        min-height: 8vw;
    }
    
    .sub-panel2,
    .sub-panel3 {
        position: relative;
        float: left;
        top: 0;
        left: 0;
        width: 50%;
        height: 80%;
    }
    
    .sub-panel2 {
        padding: 10px;
    }
}

@media (min-width:2000px) {
    #custom_timecode {
        font-size: 4vw;
    }
}
