* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c40c0c;
    --secondary: #ff6500;
    --accent: #cc561e;
    --highlight: #f6ce71;
    --text: #2c2c2c;
    --text-light: #666666;
    --bg: #ffffff;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: rgba(196, 12, 12, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector-wrapper {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    position: relative;
}

.language-selector:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.language-selector i.fa-globe {
    color: var(--primary);
    font-size: 1rem;
}

.language-selector .selected-lang {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.language-selector i.fa-chevron-down {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.language-dropdown.active ~ .language-selector i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--bg);
}

.lang-option .flag {
    font-size: 1.25rem;
}

.lang-option span:last-child {
    font-size: 0.875rem;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
}

.register-box {
    max-width: 520px;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.logo-container p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.form-row .form-group {
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
    background-color: var(--white);
}

.form-group select {
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 12, 12, 0.1);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-primary {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 12, 12, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.register-link p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--secondary);
}

.error-message {
    display: none;
    padding: 0.875rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: 0.875rem;
    text-align: center;
}

.success-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    color: #155724;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease-out;
}

.success-message i {
    font-size: 1.5rem;
    color: #28a745;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== APP LAYOUT ===== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 70px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    box-shadow: 4px 0 20px var(--shadow);
    justify-content: space-between;
}

.sidebar-logo {
    margin-bottom: 3rem;
}

.sidebar-logo h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    flex: 1;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.nav-item.inactive {
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    cursor: not-allowed;
}

.nav-item.inactive:hover {
    color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== HEADER ===== */
.header {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown {
    position: relative;
}

.profile-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.profile-button:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item i {
    color: var(--primary);
    width: 20px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* ===== CONTENT AREA ===== */
.content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
}

.page {
    height: 100%;
}

.page.hidden {
    display: none;
}

/* ===== CHAT PAGE ===== */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100%;
}

.chat-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.chat-search {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-search i {
    color: var(--text-light);
}

.chat-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.chat-item:hover {
    background: var(--bg);
}

.chat-item.active {
    background: var(--bg);
    border-left-color: var(--primary);
}

.chat-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chat-info p {
    font-size: 0.8125rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Chat Main */
.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.chat-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    padding: 0.875rem 1.25rem;
    border-radius: 18px;
    position: relative;
}

.message.received .message-content {
    background: var(--white);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.6875rem;
    opacity: 0.7;
}

.chat-input {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    border-color: var(--primary);
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-send:hover {
    transform: scale(1.1);
}

/* ===== SETTINGS PAGE ===== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.settings-container h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.settings-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.settings-section h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.license-info {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.license-info p {
    margin: 0.5rem 0;
    color: var(--text);
}

.license-info strong {
    color: var(--primary);
}

.employee-row {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.employee-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.employee-row-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
}

.btn-remove-employee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-remove-employee:hover {
    background: #c82333;
}

.btn-remove-employee i {
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(204, 86, 30, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

.employees-list {
    margin-bottom: 2rem;
}

.employees-list h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.employees-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.employee-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.employee-info strong {
    color: var(--primary);
    font-size: 1rem;
}

.employee-email {
    color: var(--text-light);
    font-size: 0.875rem;
}

.btn-delete-employee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-delete-employee:hover {
    background: #c82333;
}

.add-employee-trigger {
    margin-bottom: 1.5rem;
}

.employee-name-clickable {
    cursor: pointer;
    transition: color 0.3s;
}

.employee-name-clickable:hover {
    color: var(--accent);
    text-decoration: underline;
}

.employee-password-form {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    border: 1px solid var(--accent);
}

.employee-password-form .form-actions {
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--white);
    cursor: pointer;
}

.settings-group input:focus,
.settings-group select:focus {
    border-color: var(--primary);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-label span:first-child {
    font-weight: 500;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== INFO PAGE ===== */
.info-group {
    margin-bottom: 1.5rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.info-group p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== PLACEHOLDER PAGES ===== */
.placeholder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}

.placeholder-container i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.placeholder-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.placeholder-container p {
    font-size: 1rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== MARKETPLACE PAGE ===== */
.marketplace-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.marketplace-container h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.marketplace-search {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.marketplace-search i {
    color: var(--text-light);
    font-size: 1rem;
}

.marketplace-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.product-card .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

.product-card .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

/* ===== TABS COMPONENT ===== */
.tabs-container {
    margin-top: 2rem;
}

.tabs-nav {
    display: flex;
    gap: 0.25rem;
    background: var(--bg);
    padding: 0.5rem 0.5rem 0 0.5rem;
    border-radius: 12px 12px 0 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn i {
    font-size: 1.125rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(196, 12, 12, 0.08);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
    border-color: var(--border);
    border-bottom-color: var(--white);
}

.tabs-content {
    background: var(--white);
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 2rem;
    min-height: 400px;
}

.tab-pane {
    display: none !important;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INFO PAGE ===== */
.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg);
    border-radius: 12px;
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(196, 12, 12, 0.05);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-details {
    flex: 1;
}

.info-details label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-details p {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

.info-details a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.info-details a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        display: none;
    }

    .sidebar {
        width: 60px;
    }

    .header {
        padding: 0 1rem;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-container {
        padding: 1rem;
    }

    .tabs-nav {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
        margin-bottom: 0;
        padding: 0.875rem 1rem;
    }

    .tab-btn.active {
        border-bottom: 1px solid var(--border);
        border-left-color: var(--primary);
    }

    .info-row {
        grid-template-columns: 1fr;
    }
}

/* ===== CHAT PAGE ===== */
.chat-page-container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 80px);
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

/* Conversations Sidebar */
.conversations-sidebar {
    width: 300px;
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.chat-sidebar {
    width: 300px;
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.chat-sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.btn-new-conversation {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-new-conversation:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.chat-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-sidebar-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.chat-sidebar-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.chat-sidebar-item:hover {
    background: rgba(196, 12, 12, 0.05);
    transform: translateX(4px);
}

.chat-sidebar-item.active {
    background: linear-gradient(135deg, rgba(196, 12, 12, 0.1), rgba(255, 101, 0, 0.1));
    border-color: var(--primary);
}

.chat-sidebar-item-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.chat-sidebar-item-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.conversations-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    background: var(--white);
}

.conversations-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.no-conversations {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.conversation-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.conversation-item:hover {
    background: rgba(196, 12, 12, 0.05);
    transform: translateX(4px);
}

.conversation-item.active {
    background: linear-gradient(135deg, rgba(196, 12, 12, 0.1), rgba(255, 101, 0, 0.1));
    border-color: var(--primary);
}

.conversation-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.conversation-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Chat Main Area */
.chat-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-page-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-page-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.btn-upload-bando {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(196, 12, 12, 0.2);
}

.btn-upload-bando:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(196, 12, 12, 0.3);
}

.btn-upload-bando.disabled,
.btn-upload-bando:disabled {
    background: #cccccc;
    color: #999999;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-upload-bando.disabled:hover,
.btn-upload-bando:disabled:hover {
    background: #cccccc;
    transform: none;
    box-shadow: none;
}

.btn-upload-bando i {
    font-size: 1rem;
}

.btn-upload-allegati {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(204, 86, 30, 0.2);
}

.btn-upload-allegati:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(204, 86, 30, 0.3);
}

.btn-upload-allegati:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-upload-allegati i {
    font-size: 1rem;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(196, 12, 12, 0.1), rgba(255, 101, 0, 0.1));
    border-radius: 50px;
    border: 2px solid var(--primary);
}

.credits-display i {
    color: var(--primary);
    font-size: 1.125rem;
}

.credits-display span {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9375rem;
}

.elaborazioni-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(204, 86, 30, 0.1), rgba(246, 206, 113, 0.1));
    border-radius: 50px;
    border: 2px solid var(--accent);
}

.elaborazioni-display i {
    color: var(--accent);
    font-size: 1.125rem;
}

.elaborazioni-display span {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9375rem;
}

.btn-new-chat {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.btn-new-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(196, 12, 12, 0.4);
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    display: flex;
    max-width: 70%;
    animation: slideIn 0.3s ease-out;
}

.chat-bubble.sent {
    align-self: flex-end;
}

.chat-bubble.received {
    align-self: flex-start;
}

.bubble-content {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-bubble.sent .bubble-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-bubble.received .bubble-content {
    background: var(--white);
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 2px solid var(--border);
}

.bubble-time {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.chat-bubble.sent .bubble-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
}

.chat-bubble.received .bubble-time {
    text-align: right;
    color: var(--text-light);
}

.copy-message-icon {
    position: absolute;
    bottom: 0;
    right: -2rem;
    font-size: 1.125rem;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.copy-message-icon:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.2);
}

.chat-input-container {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border);
    background: var(--white);
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input-container input,
.chat-input-container textarea {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    resize: none;
    line-height: 1.5;
    max-height: 150px;
    overflow-y: auto;
}

.chat-input-container input:focus,
.chat-input-container textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(196, 12, 12, 0.1);
}

.chat-input-container .btn-send {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.125rem;
}

.chat-input-container .btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(196, 12, 12, 0.4);
}

.chat-input-container .btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling for chat */
.chat-messages-container::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-bubble {
        max-width: 85%;
    }

    .chat-page-container {
        height: calc(100vh - 100px);
    }
}

/* ===== HOME PAGE ===== */
.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.home-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(196, 12, 12, 0.05), rgba(255, 101, 0, 0.05));
    border-radius: 16px;
}

.home-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.home-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.home-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.home-card-icon i {
    font-size: 1.75rem;
}

.home-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.home-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.home-card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.home-card:hover .home-card-arrow {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.home-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.home-card.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    z-index: 1;
}

.home-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.home-card-lock {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 2;
}

.home-card-lock i {
    font-size: 1rem;
}

.home-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border);
    text-align: center;
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== DASHBOARD CONTAINER ===== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

/* ===== PRICING PAGE ===== */
.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    border: 2px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(196, 12, 12, 0.15);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(196, 12, 12, 0.2);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.pricing-card-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(196, 12, 12, 0.1), rgba(255, 101, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    line-height: 1.4;
}

.pricing-features {
    flex: 1;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.25rem;
    min-width: 24px;
}

.feature-item span {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.pricing-footer {
    margin-top: auto;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(124, 58, 237, 0.05));
    border-radius: 12px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: super;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.price-period {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

.btn-pricing {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pricing:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 12, 12, 0.4);
}

.btn-pricing:active {
    transform: translateY(0);
}

/* Responsive Pricing */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 1rem;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

/* Conversations List */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.conversation-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

.conversation-info {
    flex: 1;
}

.conversation-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.conversation-date {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conversation-item i.fa-chevron-right {
    color: var(--accent);
    font-size: 1.25rem;
}

/* Add Project Button */
.btn-add-project {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(204, 86, 30, 0.3);
}

.btn-add-project:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(196, 12, 12, 0.4);
}

.btn-add-project.disabled,
.btn-add-project:disabled {
    background: #cccccc;
    color: #999999;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-add-project.disabled:hover,
.btn-add-project:disabled:hover {
    background: #cccccc;
    transform: none;
    box-shadow: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content .login-form {
    padding: 1.5rem;
}

/* Typing Indicator */
.typing-indicator .bubble-content {
    padding: 1rem 1.5rem;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 1rem;
}

.typing-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Activation Page */
.activation-content {
    padding: 2rem 0;
}

.activation-state {
    text-align: center;
    padding: 2rem;
}

.activation-state h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.activation-state p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.activation-state .fa-spinner {
    animation: spin 1s linear infinite;
}

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