/* ========== MODAL STYLES (GENERAL) ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}


.modal-overlay.active {
    display: flex;
}


.modal-container {
    background: white;
    border-radius: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.4s ease-out;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e4e4e7;
}


.modal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.modal-logo-img {
    height: 35px;
    width: auto;
}


.modal-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #18181b;
}


.modal-close {
    background: #f4f4f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}


.modal-close:hover {
    background: #e4e4e7;
    color: #18181b;
    transform: scale(0.96);
}


.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}


.question-item {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



.question-text {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #18181b;
    font-size: 1rem;
}


.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    cursor: pointer;
    transition: all 0.2s;
}


.option-label:hover {
    border-color: #7c3aed;
    background: #f3e8ff;
    transform: translateX(4px);
}


.option-label input {
    accent-color: #7c3aed;
    width: 18px;
    height: 18px;
}


.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e4e4e7;
    display: flex;
    justify-content: space-between;
}


.btn-modal-back,
.btn-modal-next,
.btn-modal-submit {
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}


.btn-modal-back {
    background: #f4f4f5;
    color: #52525b;
}


.btn-modal-back:hover {
    background: #e4e4e7;
}


.btn-modal-next,
.btn-modal-submit {
    background: #7c3aed;
    color: white;
}


.btn-modal-next:hover,
.btn-modal-submit:hover {
    background: #6d28d9;
    transform: scale(1.02);
}


.modal-progress {
    height: 4px;
    background: #e4e4e7;
    border-radius: 2px;
    margin: 0 1.5rem 1rem;
    overflow: hidden;
}


.modal-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    transition: width 0.3s ease;
}


/* ========== LOGIN MODAL ========== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}


.login-modal-overlay.active {
    display: flex;
}


.login-modal-container {
    background: white;
    border-radius: 2rem;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
}


.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e4e4e7;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}


.login-modal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.login-modal-logo-img {
    height: 35px;
    width: auto;
}


.login-modal-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #18181b;
}


.login-modal-close {
    background: #f4f4f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
}


.login-modal-close:hover {
    background: #e4e4e7;
    color: #18181b;
    transform: rotate(90deg) scale(1.05);
}

[data-theme="dark"] .login-modal-close {
    background: #27272a;
    color: #a1a1aa;
}

[data-theme="dark"] .login-modal-close:hover {
    background: #3f3f46;
    color: #ffffff;
    transform: rotate(90deg) scale(1.05);
}



.login-modal-body {
    padding: 1.5rem;
}


.login-modal-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.login-modal-error.hidden {
    display: none;
}


.login-input-group {
    margin-bottom: 1.5rem;
}


.login-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #18181b;
    margin-bottom: 0.5rem;
}


.login-input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}


.login-input-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}


.login-input-group input.error {
    border-color: #dc2626;
}


.login-modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}


.login-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(124, 58, 237, 0.3);
}


.login-modal-footer {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e4e4e7;
    background: #fafafa;
}


.login-modal-footer a {
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}


.login-modal-footer a:hover {
    text-decoration: underline;
}


.login-modal-footer p {
    color: #71717a;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}


/* ========== REVIEW BOX ========== */
.review-box {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e4e4e7;
    transition: all 0.3s ease;
}


.review-box.disabled {
    background: #f4f4f5;
    opacity: 0.6;
}


.review-box.active {
    background: #ffffff;
    opacity: 1;
}


.review-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #18181b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}


.review-lock-overlay:hover {
    background: rgba(255, 255, 255, 0.75);
}


.review-lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}


.review-lock-text {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 500;
}


.review-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}


.review-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.review-avatar span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}


.review-input-area {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 1rem;
    padding: 0.85rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #18181b;
    min-height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.review-input-area:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.review-input-area.disabled {
    color: #a1a1aa;
    font-style: italic;
    background: #f4f4f5;
}

.review-input-area textarea {
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    color: #18181b;
}

.review-input-area textarea::placeholder {
    color: #a1a1aa;
    font-style: italic;
}

.review-submit-btn {
    background: #d4d4d8;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.review-box.active .review-submit-btn {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.review-box.active .review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}


.review-success-msg {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
    color: #166534;
    font-size: 0.85rem;
    display: none;
}


.review-success-msg.show {
    display: block;
}




/* ========== MODERN MODALS ========== */




/* ========== MODERN MODALS ========== */
.modal-overlay-modern {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(6px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 2000;
}


  .modal-overlay-modern.active {
      display: flex;
}


  .modal-container-modern {
      background: white;
      border-radius: 1.5rem;
      width: 90%;
      max-width: 700px;
      height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
      overflow: hidden;
}


  .modal-header-modern {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.8rem 1rem;
      background: white;
      border-bottom: 1px solid #e4e4e7;
}


  .modal-header-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
}


  .modal-logo-small {
      height: 28px;
      width: auto;
}


  .modal-close-btn {
      background: #f4f4f5;
      border: none;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
}


.ve-btn { color: white; border: none; margin: 0; padding: 0 1.5rem; height: 44px; border-radius: 40px; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem; transition: all 0.2s; white-space: nowrap; } .ve-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* CHAT MODAL STYLES EXPORTED FOR PACKAGE REQUEST */



/* HEADER */
.bykine-chat-header {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f4f4f5;
    z-index: 10;
}


.bykine-chat-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.bykine-chat-logo {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}


.bykine-chat-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #18181b;
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}


.bykine-chat-subtitle {
    font-size: 0.8rem;
    color: #71717a;
    font-weight: 500;
    margin: 0;
}


.bykine-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.bykine-chat-close {
    background: #f4f4f5;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #52525b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.bykine-chat-close:hover {
    background: #e4e4e7;
    color: #18181b;
    transform: rotate(90deg);
}

/* =========================================================
   INLINE MODALS TRANSITIONS (PACKAGE & USER CREATE)
   ========================================================= */
#createPackageModal.dashboard-section,
#createUserModal.dashboard-section {
    width: 100%;
    display: none;
}

#createPackageModal.dashboard-section.active,
#createUserModal.dashboard-section.active {
    display: block;
    animation: slideIn 0.2s ease-out;
}

#createPackageModal.dashboard-section .modal-container-modern,
#createUserModal.dashboard-section .modal-container-modern {
    background: transparent;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    box-shadow: none;
    overflow: visible;
}

