/* ============================================================
   Dashboard Styles — piotrlitwa.com/dashboard
   Uses same design tokens as main site
   ============================================================ */

:root {
    --accent-color: #4154f1;
    --heading-color: #012970;
    --default-color: #444444;
    --surface-color: #ffffff;
    --background-color: #f4f6fb;
    --sidebar-width: 260px;
    --sidebar-bg: #012970;
    --sidebar-color: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.12);
    --sidebar-active: rgba(255, 255, 255, 0.18);
    --topbar-height: 64px;
    --border-color: #e9ecef;
    --success-color: #198754;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    color: var(--default-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito", sans-serif;
    color: var(--heading-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: #2a3ed0;
}

/* ============================================================
   LOGIN VIEW
   ============================================================ */

.login-view {
    min-height: 100vh;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-branding {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--heading-color) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-branding-inner {
    max-width: 420px;
}

.login-logo {
    font-family: "Nunito", sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.login-logo span {
    color: rgba(255, 255, 255, 0.7);
}

.login-tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

.login-feature i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #fff;
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
}

.login-lang-switch {
    text-align: right;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    margin-bottom: 1.75rem;
}

.login-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.login-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.15);
}

.login-form .form-label {
    font-weight: 500;
    color: var(--heading-color);
    font-size: 0.875rem;
}

.login-form .btn-primary {
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem;
    transition: background 0.2s, transform 0.1s;
}

.login-form .btn-primary:hover {
    background: #2a3ed0;
}

.login-form .btn-primary:active {
    transform: scale(0.98);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #adb5bd;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-google {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    transition: border-color 0.2s, background 0.2s;
}

.btn-google:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.login-footer-text {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #adb5bd;
    text-align: center;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.sidebar-logo span {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-logo:hover {
    color: #fff;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-close:hover {
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 2px 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: #fff;
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 0 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.sidebar-lang {
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.sidebar-back,
.sidebar-logout {
    margin: 2px 0;
    font-size: 0.825rem;
}

.sidebar-logout {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-logout:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--topbar-height);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
    padding: 0.25rem;
    display: none;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
}

.topbar-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--heading-color);
}

.view-content {
    flex: 1;
    padding: 1.5rem;
}

.view-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */

.dash-card {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.dash-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dash-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin: 0;
}

.dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dash-card-icon.accent {
    background: rgba(65, 84, 241, 0.1);
    color: var(--accent-color);
}

.dash-card-icon.success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.dash-card-icon.warning {
    background: rgba(253, 126, 20, 0.1);
    color: var(--warning-color);
}

.dash-card-icon.info {
    background: rgba(13, 202, 240, 0.1);
    color: var(--info-color);
}

.dash-card-value {
    font-family: "Nunito", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dash-card-label {
    font-size: 0.8125rem;
    color: #6c757d;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.badge-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.7em;
    border-radius: 6px;
    text-transform: capitalize;
}

.badge-active,
.badge-paid,
.badge-completed {
    background: rgba(25, 135, 84, 0.12);
    color: var(--success-color);
}

.badge-in_progress,
.badge-trialing,
.badge-open {
    background: rgba(65, 84, 241, 0.12);
    color: var(--accent-color);
}

.badge-past_due,
.badge-waiting,
.badge-on_hold {
    background: rgba(253, 126, 20, 0.12);
    color: var(--warning-color);
}

.badge-canceled,
.badge-closed,
.badge-void,
.badge-unpaid {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.badge-urgent,
.badge-high {
    background: rgba(220, 53, 69, 0.12);
    color: var(--danger-color);
}

.badge-planned {
    background: rgba(13, 202, 240, 0.12);
    color: #0aa2c0;
}

/* ============================================================
   TABLES
   ============================================================ */

.dash-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dash-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.dash-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    vertical-align: middle;
}

.dash-table tbody tr:last-child td {
    border-bottom: none;
}

.dash-table tbody tr:hover {
    background: rgba(65, 84, 241, 0.03);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */

.view-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.view-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--heading-color);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-action:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(65, 84, 241, 0.1);
    color: var(--accent-color);
}

.quick-action i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* ============================================================
   SUBSCRIPTION VIEW
   ============================================================ */

.plan-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--heading-color) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.plan-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -25%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.plan-card .plan-name {
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.plan-card .plan-price {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.plan-card .plan-price small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
}

.plan-card .plan-meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

.btn-portal {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.btn-portal:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ============================================================
   DOCUMENTS VIEW
   ============================================================ */

.doc-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.doc-list-item:hover {
    border-color: var(--accent-color);
    background: rgba(65, 84, 241, 0.02);
}

.doc-list-item.active {
    border-color: var(--accent-color);
    background: rgba(65, 84, 241, 0.05);
}

.doc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(65, 84, 241, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.doc-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-category {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: capitalize;
}

.doc-viewer {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    min-height: 400px;
}

.doc-viewer h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.doc-viewer h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.doc-viewer h3 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.doc-viewer p { line-height: 1.7; margin-bottom: 1rem; }
.doc-viewer ul, .doc-viewer ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.doc-viewer li { margin-bottom: 0.25rem; line-height: 1.6; }
.doc-viewer code {
    background: #f4f6fb;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}
.doc-viewer pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.doc-viewer pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.doc-viewer table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.doc-viewer table th,
.doc-viewer table td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
.doc-viewer table th {
    background: #f4f6fb;
    font-weight: 600;
}
.doc-viewer hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.doc-files {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.doc-file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #f4f6fb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.doc-file-link:hover {
    background: #e9ecef;
    color: var(--accent-color);
}

.demo-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.demo-banner i {
    font-size: 1.5rem;
    color: #856404;
}

.demo-banner-text {
    flex: 1;
}

.demo-banner-text strong {
    color: #856404;
}

.demo-banner .btn {
    flex-shrink: 0;
}

/* ============================================================
   TICKETS VIEW
   ============================================================ */

.ticket-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ticket-list-item:hover {
    border-color: var(--accent-color);
}

.ticket-subject {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading-color);
}

.ticket-date {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.ticket-detail {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ticket-detail-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ticket-messages {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.ticket-msg {
    margin-bottom: 1rem;
    max-width: 80%;
}

.ticket-msg.admin {
    margin-left: auto;
}

.ticket-msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ticket-msg:not(.admin) .ticket-msg-bubble {
    background: #f4f6fb;
    border-bottom-left-radius: 4px;
}

.ticket-msg.admin .ticket-msg-bubble {
    background: rgba(65, 84, 241, 0.08);
    border-bottom-right-radius: 4px;
}

.ticket-msg-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    padding: 0 0.25rem;
}

.ticket-msg.admin .ticket-msg-meta {
    text-align: right;
}

.ticket-reply-form {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.ticket-reply-form textarea {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

.ticket-reply-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.1);
}

/* New ticket form */
.new-ticket-form .form-control,
.new-ticket-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
}

.new-ticket-form .form-control:focus,
.new-ticket-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.1);
}

/* ============================================================
   STATUS VIEW
   ============================================================ */

.milestone-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.milestone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.milestone-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--heading-color);
}

.milestone-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.milestone-progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.milestone-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.milestone-progress-bar.completed {
    background: var(--success-color);
}

.milestone-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.overall-progress-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--heading-color) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.overall-progress-value {
    font-family: "Nunito", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.overall-progress-bar {
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    overflow: hidden;
}

.overall-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: #fff;
    transition: width 0.6s ease;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 360px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-accent {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-accent:hover {
    background: #2a3ed0;
    color: #fff;
}

.btn-accent:active {
    transform: scale(0.98);
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-accent:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ============================================================
   LANG SWITCH (dashboard)
   ============================================================ */

.lang-switch {
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.2s;
    user-select: none;
}

.lang-switch.active {
    opacity: 1;
}

.lang-switch:hover {
    opacity: 0.8;
}

.lang-divider {
    opacity: 0.3;
    margin: 0 0.25rem;
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 1199.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar-toggle {
        display: block;
    }

    .login-container {
        flex-direction: column;
    }

    .login-branding {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .login-features {
        display: none;
    }

    .login-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .view-content {
        padding: 1rem;
    }

    .topbar {
        padding: 0 1rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .plan-card .plan-price {
        font-size: 1.75rem;
    }

    .doc-viewer {
        padding: 1.25rem;
    }

    .ticket-msg {
        max-width: 90%;
    }

    .dash-card-value {
        font-size: 1.5rem;
    }

    .login-branding {
        padding: 1.5rem;
    }

    .login-logo {
        font-size: 1.75rem;
    }

    .login-tagline {
        font-size: 1rem;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .dash-table {
        font-size: 0.8rem;
    }

    .dash-table thead th,
    .dash-table tbody td {
        padding: 0.5rem 0.625rem;
    }

    .quick-action {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}
