/** OVERALL STYLE **/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    background: #09090c;
    color: #e2e8f0;
}
.theme-colors {
    background: #000000;
    color: #ffffff;
    font-size: 1rem;
}
.theme-colors a {
    color: #c5ac96;
    text-decoration: none;
    transition: color 0.15s;
}
.theme-colors a:hover {
    color: #ebd5bf;
    text-decoration: underline;
}
a {
    color: #c5ac96;
    text-decoration: none;
    transition: color 0.15s;
}
a:hover {
    color: #ebd5bf;
    text-decoration: underline;
}
.header {
    padding: 1.15rem 1.5rem;
    line-height: 1.8;
    background: #000000;
    border-bottom: 1px solid #202028;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.header-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none !important;
    vertical-align: middle;
}
.header-logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5ac96;
    box-shadow: 0 0 12px rgba(197, 172, 150, 0.3);
    vertical-align: middle;
}
.header-brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.header-brand-separator {
    color: #556275;
    margin: 0 0.35rem;
}
.header-brand-slogan {
    color: #c5ac96;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.footer {
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #000000;
    border-top: 1px solid #202028;
    color: #8892a0;
    font-size: 0.9rem;
}
.main {
    padding: 1.5rem 1.5rem 6rem 1.5rem;
    max-width: 54rem;
}
.breadcrumb-part {
    white-space: nowrap;
}

/** FOLDERS & LISTINGS **/

.folder-icon {
    height: 20px;
    width: 20px;
    margin-right: 5px;
}
li {
    line-height: 1.6;
    list-style-image: none;
    color: #cbd5e1;
}
.li-folder {
    list-style-image: url('icons/folder.svg');
}
.li-folder.li-folder-open {
    list-style-image: url('icons/folder-open.svg');
}
.hidden {
    display: none;
}
.selected {
    background: rgba(197, 172, 150, 0.25);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
}

/** INDENTATION **/

.indent-1 { white-space: pre; tab-size: 2; }
.indent-2 { white-space: pre; tab-size: 4; }
.indent-3 { white-space: pre; tab-size: 6; }
.indent-4 { white-space: pre; tab-size: 8; }
.indent-5 { white-space: pre; tab-size: 10; }
.indent-6 { white-space: pre; tab-size: 12; }
.indent-7 { white-space: pre; tab-size: 14; }
.indent-8 { white-space: pre; tab-size: 16; }
.indent-9 { white-space: pre; tab-size: 18; }
.indent-right-align { white-space: pre; tab-size: 100; }

/** HIGHLIGHTED REGIONS **/

.oxe-image {
    position: relative;
    display: inline-block;
    max-width: none;
}
.oxe-image .big-img {
    max-width: none !important;
    width: initial !important;
}
.oxe-region {
    position: absolute;
    display: block;
    background: rgba(197, 172, 150, 0.35);
    border: 1px solid #c5ac96;
}

/** TABLES **/
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}
td, th {
    border: 1px solid #2d2d3a;
    padding: 0.6rem 0.8rem;
}
th {
    background: #14141c;
    color: #d4bca7;
}

/** IMAGES **/

.big-img {
    max-width: 50rem;
    border-radius: 6px;
}
@media only screen and (hover: none) {
    html .big-img {
        max-width: 100%;
    }
}

.clsEmphBOLD {
    font-weight: bold;
}
.NOTE {
    font-style: italic;
    color: #94a3b8;
}
.NOTE_label {
    font-weight: bold;
    color: #d4bca7;
}
.ICON {
    height: 1em;
}
.imageHolder {
    margin-top: 1em;
}
.imageCaption {
    font-size: 1.25em;
    color: #d4bca7;
    font-weight: 600;
}
.imageHolder img {
    display: block;
    max-width: 50rem;
    border-radius: 6px;
}
.svgImageHolder {
    page-break-before: always;
    page-break-after: always;
}
.clsArticleSvg {
    width: 80rem;
}
@media only screen and (max-width: 75rem) {
    .imageHolder img.clsArticleSvg {
        width: 50rem;
    }
}
@media only screen and (hover: none) {
    html .imageHolder img.clsArticleSvg {
        width: 100%;
    }
    html .imageHolder img {
        max-width: 100%;
    }
}

.other-warning {
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 8px;
}
.other-variant {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}
.other-car {
    background: rgba(197, 172, 150, 0.15);
    border: 1px solid rgba(197, 172, 150, 0.4);
    color: #ebd5bf;
}
.other-announcement {
    background: rgba(197, 172, 150, 0.12);
    border: 1px solid rgba(197, 172, 150, 0.35);
    color: #ebd5bf;
}

/** ABOUT PAGE **/
.about-body {
    padding: 2.5rem 6vw;
}
.about-h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.about-content {
    line-height: 1.7;
    max-width: 44rem;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

/** BUTTONS & FORMS **/
button[type="submit"], .auth-btn-primary {
    background: linear-gradient(135deg, #d4bca7 0%, #b79f87 100%);
    color: #08080a;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
button[type="submit"]:hover, .auth-btn-primary:hover {
    background: linear-gradient(135deg, #e3cbb6 0%, #c7ae96 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(197, 172, 150, 0.35);
}
button[type="submit"]:active, .auth-btn-primary:active {
    transform: translateY(0);
}

.auth-input, input[type="text"], input[type="password"] {
    background: #111116;
    border: 1px solid #2d2d3a;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}
.auth-input:focus, input[type="text"]:focus, input[type="password"]:focus {
    border-color: #c5ac96;
    box-shadow: 0 0 0 3px rgba(197, 172, 150, 0.25);
}

/** HEADER USER BADGE **/
.auth-header-status {
    float: right;
    font-size: 0.85rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.35rem;
}
.auth-badge {
    background: #141418;
    border: 1px solid #363645;
    color: #d4bca7;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 600;
}
.auth-header-status a {
    color: #c5ac96;
    text-decoration: none;
}
.auth-header-status a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/** STANDALONE AUTHENTICATION PAGE STYLES **/
.auth-standalone-body {
    background: radial-gradient(circle at 50% 12%, #181822 0%, #060608 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #e2e8f0;
}
.auth-standalone-container {
    width: 100%;
    max-width: 27rem;
    padding: 2.5rem 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.auth-brand-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-standalone-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c5ac96;
    box-shadow: 0 0 35px rgba(197, 172, 150, 0.35), 0 0 0 1px rgba(197, 172, 150, 0.2);
    margin-bottom: 1.15rem;
}
.auth-brand-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.auth-brand-tagline {
    margin-top: 0.4rem;
    color: #c5ac96;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.auth-standalone-card {
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid #2a2a36;
    border-radius: 16px;
    padding: 2.25rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(197, 172, 150, 0.15);
}
.auth-card-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.auth-card-desc {
    margin: 0 0 1.5rem 0;
    color: #8392a5;
    font-size: 0.9rem;
    line-height: 1.5;
}
.auth-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.auth-alert-warning {
    background: rgba(197, 172, 150, 0.15);
    border: 1px solid rgba(197, 172, 150, 0.4);
    color: #ebd5bf;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}
.auth-standalone-footer {
    margin-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}
.auth-standalone-footer a {
    color: #c5ac96;
    text-decoration: none;
}
.auth-standalone-footer a:hover {
    color: #ecd5bf;
    text-decoration: underline;
}

/** HEADER CONTROLS & LANGUAGE SWITCHER **/

.header-controls {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.15rem;
    position: relative;
    z-index: 1000;
}

.lang-switcher-container {
    display: inline-flex;
    align-items: center;
    background: #14151c;
    border: 1px solid #2e3040;
    border-radius: 8px;
    padding: 0.22rem 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    gap: 0.35rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.lang-btn:hover {
    color: #ffffff;
    background: rgba(197, 172, 150, 0.12);
}

.lang-btn.active {
    color: #ebd5bf;
    background: rgba(197, 172, 150, 0.2);
    border-color: rgba(197, 172, 150, 0.45);
    box-shadow: 0 0 10px rgba(197, 172, 150, 0.25);
}

.lang-divider {
    color: #3b3f54;
    font-size: 0.75rem;
    user-select: none;
}

.auth-card-top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

/** USER DROPDOWN MENU **/

.auth-header-container {
    position: relative;
    z-index: 1000;
}
.user-dropdown {
    position: relative;
    display: inline-block;
}
.user-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #14151c;
    border: 1px solid #2e3040;
    color: #ebd5bf;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.user-dropdown-btn:hover,
.user-dropdown-btn.active {
    border-color: #c5ac96;
    background: #1a1c26;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(197, 172, 150, 0.25);
}
.user-avatar-badge {
    font-size: 1rem;
    line-height: 1;
}
.user-name-label {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-dropdown-arrow {
    font-size: 0.75rem;
    color: #c5ac96;
    transition: transform 0.2s ease;
}
.user-dropdown-btn.active .user-dropdown-arrow {
    transform: rotate(180deg);
}
.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #12131a;
    border: 1px solid #2d2f3e;
    border-radius: 10px;
    min-width: 210px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(197, 172, 150, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.user-dropdown-menu.hidden {
    display: none !important;
}
.user-dropdown-header {
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #232533;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.user-dropdown-item:hover {
    background: rgba(197, 172, 150, 0.12);
    color: #ffffff;
    text-decoration: none !important;
}
.item-admin {
    color: #e5c3a6;
    font-weight: 700;
}
.item-admin:hover {
    background: rgba(197, 172, 150, 0.2);
    color: #ebd5bf;
}
.item-logout {
    color: #f87171;
}
.item-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
.user-dropdown-divider {
    height: 1px;
    background: #232533;
    margin: 0.25rem 0;
}

/** ADMIN PANEL DASHBOARD **/

.admin-body {
    background: #09090c;
    color: #e2e8f0;
    margin: 0;
    min-height: 100vh;
}
.admin-container {
    max-width: 68rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem 1.5rem;
}
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.admin-main-title {
    margin: 0 0 0.4rem 0;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.admin-subtitle {
    margin: 0;
    color: #8c9bb0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.admin-subtitle b {
    color: #c5ac96;
}
.admin-quick-actions {
    display: flex;
    gap: 0.75rem;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.admin-stat-card {
    background: #12131a;
    border: 1px solid #232533;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, border-color 0.2s;
}
.admin-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 172, 150, 0.35);
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8c9bb0;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.stat-gold {
    color: #c5ac96;
}
.stat-silver {
    color: #94a3b8;
}
.stat-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* Alerts */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}
.admin-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.admin-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.alert-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Cards */
.admin-card {
    background: #12131a;
    border: 1px solid #232533;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.admin-card-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}
.admin-card-badge {
    background: rgba(197, 172, 150, 0.15);
    border: 1px solid rgba(197, 172, 150, 0.35);
    color: #ebd5bf;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.admin-card-intro {
    color: #8c9bb0;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

/* Forms */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    align-items: flex-end;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #94a3b8;
}
.form-group input,
.form-group select {
    background: #181922;
    border: 1px solid #2f3244;
    color: #ffffff;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c5ac96;
    box-shadow: 0 0 0 3px rgba(197, 172, 150, 0.2);
}
.form-group-btn {
    min-width: 140px;
}
.btn-primary {
    background: linear-gradient(135deg, #c5ac96 0%, #a88d75 100%);
    color: #0d0e12;
    border: none;
    padding: 0.68rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(197, 172, 150, 0.3);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ebd5bf 0%, #bca189 100%);
    box-shadow: 0 4px 18px rgba(197, 172, 150, 0.45);
    transform: translateY(-1px);
}
.btn-secondary {
    background: #181922;
    border: 1px solid #2e3040;
    color: #cbd5e1;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    border-color: #c5ac96;
    color: #ffffff;
    background: #20222e;
}

/* User Directory Table */
.table-responsive {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.admin-table th {
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #232533;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.admin-table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid #1e202c;
    vertical-align: middle;
}
.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.tr-current-user {
    background: rgba(197, 172, 150, 0.04);
}
.td-id {
    color: #64748b;
    font-family: monospace;
    font-size: 0.85rem;
}
.td-username {
    color: #ffffff;
    font-size: 0.95rem;
}
.badge-current-user {
    margin-left: 0.5rem;
    background: rgba(197, 172, 150, 0.2);
    border: 1px solid rgba(197, 172, 150, 0.4);
    color: #ebd5bf;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}
.badge-role {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.badge-role-admin {
    background: rgba(197, 172, 150, 0.2);
    border: 1px solid rgba(197, 172, 150, 0.45);
    color: #ebd5bf;
}
.badge-role-user {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-status-pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}
.badge-status-active {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.td-date {
    color: #8c9bb0;
    font-size: 0.85rem;
    white-space: nowrap;
}
.th-actions,
.td-actions {
    text-align: right;
}
.action-button-group {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}
.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.btn-table-action {
    background: #181922;
    border: 1px solid #2e3040;
    color: #cbd5e1;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-table-action:hover {
    border-color: #c5ac96;
    color: #ffffff;
    background: #222533;
}
.btn-role-toggle:hover {
    border-color: #c5ac96;
    color: #ebd5bf;
}
.btn-reset-pw:hover {
    border-color: #38bdf8;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.1);
}
.btn-delete:hover {
    border-color: #ef4444;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
}
.btn-table-action.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #232533;
    color: #64748b;
}

/* Reset Password Modal */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    box-sizing: border-box;
}
.admin-modal-overlay.hidden {
    display: none !important;
}
.admin-modal-card {
    background: #14151d;
    border: 1px solid #333647;
    border-radius: 14px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(197, 172, 150, 0.15);
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #232533;
    background: rgba(0, 0, 0, 0.3);
}
.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #ffffff;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: #8c9bb0;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close-btn:hover {
    color: #ffffff;
}
.modal-body {
    padding: 1.5rem;
}
.modal-body p {
    margin: 0 0 1.25rem 0;
    color: #8c9bb0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.modal-body b {
    color: #ebd5bf;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.modal-actions button {
    width: auto;
}

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

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .header-controls {
        float: none;
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    .auth-header-container {
        float: none;
    }
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .admin-header-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   Admin Navigation Tabs & Localization Editor
   ========================================================================== */

.admin-tabs-nav {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #232533;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    background: #14151e;
    border: 1px solid #282a39;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-tab-btn:hover {
    background: #1a1c29;
    color: #e2e8f0;
    border-color: #3b3e54;
    transform: translateY(-1px);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(197, 172, 150, 0.18), rgba(197, 172, 150, 0.05));
    border-color: #c5ac96;
    color: #ebd5bf;
    box-shadow: 0 4px 14px rgba(197, 172, 150, 0.15);
}

.tab-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.tab-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.tab-badge-highlight {
    background: rgba(197, 172, 150, 0.25);
    color: #ebd5bf;
    border: 1px solid rgba(197, 172, 150, 0.35);
}

/* Category Blocks */
.texts-category-block {
    background: #101118;
    border: 1px solid #232533;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.texts-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.4rem;
    background: linear-gradient(90deg, #151722, #101118);
    border-bottom: 1px solid #232533;
}

.category-icon {
    font-size: 1.3rem;
}

.texts-category-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ebd5bf;
    flex-grow: 1;
}

.category-count {
    font-size: 0.8rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.texts-category-items {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Item Card */
.translation-item-card {
    background: #141520;
    border: 1px solid #252837;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.translation-item-card:hover {
    border-color: #3b3e55;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.translation-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.translation-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.translation-key-badge {
    background: #090a0f;
    border: 1px solid #2b2e3e;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Dual Column Inputs */
.translation-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 820px) {
    .translation-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.translation-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lang-flag-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.customized-badge {
    margin-left: auto;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.translation-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.45;
}

/* Sticky Bottom Action Bar */
.admin-texts-save-bar {
    position: sticky;
    bottom: 1.5rem;
    z-index: 100;
    background: rgba(16, 17, 24, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid #333647;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(197, 172, 150, 0.15);
    margin-top: 2rem;
    flex-wrap: wrap;
}

.save-bar-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.4;
}

.save-bar-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.save-bar-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.btn-large {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(197, 172, 150, 0.25);
}

