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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #E8E8E8;
    color: #35322F;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: 16px;
}

.app-container {
    width: 100%;
    background: #fff;
    min-height: 100vh;
    position: relative;
}

@media (min-width: 769px) {
    body {
        background: #D8D8D8;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px 16px 40px;
    }

    .app-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 24px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
        min-height: calc(100vh - 48px);
        overflow: hidden;
        flex-shrink: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .app-container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .app-container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    body {
        background: #fff;
        padding: 0;
    }

    .app-container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

.app-content {
    padding: 16px 16px 80px;
}

@media (min-width: 769px) {
    .app-content {
        padding: 24px 32px;
    }
}

h1 {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

p {
    margin-bottom: 12px;
}

p:last-child {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #F0F0F0;
    font-size: 13px;
}

th {
    background: #F8F8F8;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

button,
.btn,
a.btn,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    background: #fff;
    color: #35322F;
    font-size: 16px;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FF4800;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.1);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #888;
}

.text-danger {
    color: #c00;
}

.text-success {
    color: #1a7f3c;
}

.text-orange {
    color: #FF4800;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .hide-xs {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-sm {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-md {
        display: none !important;
    }
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-error {
    background: #FFF0F0;
    color: #c00;
    border-left: 3px solid #c00;
}

.alert-success {
    background: #F0FFF4;
    color: #1a7f3c;
    border-left: 3px solid #28a745;
}

.alert-warning {
    background: #FFF8E1;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.alert-info {
    background: #E8F4FD;
    color: #0056b3;
    border-left: 3px solid #007bff;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.5s infinite;
    border-radius: 6px;
    height: 16px;
}

@keyframes skeleton-wave {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
.app-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

@media (min-width: 769px) {
    .app-header {
        border-radius: 20px 20px 0 0;
        padding: 16px 32px;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 769px) {
    .header-content {
        max-width: 1200px;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo-img {
    height: 32px;
    width: auto;
}

.header-logo-text {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .header-logo-img {
        height: 28px;
    }

    .header-logo-text {
        font-size: 16px;
    }
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.app-nav {
    background: #FFFFFF;
    border-bottom: 1px solid #E8E8E8;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

@media (min-width: 769px) {
    .app-nav {
        padding: 12px 32px;
        justify-content: center;
    }
}

.nav-item {
    color: #35322F;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    white-space: nowrap;
    position: relative;
    opacity: 0.7;
}

.nav-item.active {
    color: #FF4800;
    font-weight: 600;
    opacity: 1;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF4800;
}

.balance-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}

.balance-icon {
    font-size: 16px;
}

.notification-badge {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF4800;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #E8E8E8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    width: 100%;
}

@media (min-width: 769px) {
    .bottom-nav {
        position: relative;
        border-radius: 0 0 20px 20px;
        justify-content: center;
        gap: 32px;
        padding: 12px 32px;
    }
}

.bottom-nav-item {
    color: #35322F;
    text-decoration: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 4px 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.bottom-nav-item.active {
    color: #FF4800;
    opacity: 1;
}

.bottom-nav-icon {
    font-size: 20px;
}

.admin-bottom-nav {
    display: flex;
    background: white;
    border-top: 1px solid #E8E8E8;
    padding: 8px 12px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
    border-radius: 0 0 16px 16px;
}

@media (min-width: 769px) {
    .admin-bottom-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        border-radius: 12px;
        border: 1px solid #E8E8E8;
        background: white;
        margin-top: 0;
    }
}

.admin-bottom-nav-item {
    color: #35322F;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.6;
    transition: all 0.3s;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.admin-bottom-nav-item.active {
    color: #FF4800;
    opacity: 1;
    background: #FFF5F0;
}

.admin-bottom-nav-icon {
    font-size: 18px;
}

@media (max-width: 480px) {
    .bottom-nav-item {
        font-size: 10px;
        padding: 4px 4px;
    }

    .bottom-nav-icon {
        font-size: 18px;
    }

    .admin-bottom-nav-item {
        font-size: 10px;
        padding: 4px 6px;
    }

    .admin-bottom-nav-icon {
        font-size: 16px;
    }
}

.chat-unread-badge {
    margin-left: auto;
    background: #FF4800;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.notif-unread-badge {
    margin-left: auto;
    background: #FF4800;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.3);
}

.btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}

.btn-secondary:hover {
    background: #D9D9D9;
}

.btn-danger {
    background: #35322F;
    color: white;
}

.btn-danger:hover {
    background: #2A2724;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 12px 20px;
    font-size: 15px;
}

.btn-small {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #35322F;
    font-weight: 500;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 13px;
    background: #FFFFFF;
    color: #35322F;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
    box-shadow: 0 0 0 2px rgba(255, 72, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 13px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error {
    background: #FFE5E0;
    color: #FF4800;
    border: 1px solid #FFC8B8;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.alert-warning {
    background: #FFF5E0;
    color: #FF4800;
    border: 1px solid #FFE0B8;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E8E8E8;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #35322F;
}

.progress-container {
    margin: 10px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: #35322F;
    opacity: 0.7;
}

.progress-bar {
    height: 6px;
    background: #E8E8E8;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4800, #FF6B33);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFF5E0;
    color: #FF4800;
}

.badge-info {
    background: #E8E8E8;
    color: #35322F;
}

.badge-danger {
    background: #FFE5E0;
    color: #FF4800;
}

.badge-secondary {
    background: #E8E8E8;
    color: #35322F;
    opacity: 0.7;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(53, 50, 47, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 90%;
    width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #35322F;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    right: 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.side-menu-overlay.open {
    display: block;
}

.side-menu-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    padding: 16px 20px;
    color: white;
    position: relative;
    flex-shrink: 0;
}

.side-menu-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.side-menu-header p {
    font-size: 11px;
    opacity: 0.8;
}

.side-menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.side-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.side-menu-content {
    padding: 12px 16px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.side-menu-section {
    margin-bottom: 16px;
}

.side-menu-section-title {
    font-weight: 600;
    font-size: 11px;
    color: #FF4800;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #F5F5F5;
    border-radius: 8px;
    text-decoration: none;
    color: #35322F;
    font-size: 13px;
    transition: all 0.3s;
}

.side-menu-link:hover {
    background: #FFF5F0;
    color: #FF4800;
}

.side-menu-link-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
}

.side-menu-divider {
    height: 1px;
    background: #E8E8E8;
    margin: 10px 0;
}

.side-menu-footer {
    padding: 8px 0 20px 0;
    margin-top: 4px;
    border-top: 1px solid #E8E8E8;
}

.side-menu-footer .side-menu-link {
    background: #FFE5E0;
    color: #FF4800;
}

.side-menu-footer .side-menu-link:hover {
    background: #FFD4CC;
}

@media (max-width: 768px) {
    .side-menu {
        width: 80%;
    }

    .side-menu-header {
        padding: 14px 16px;
    }

    .side-menu-header h3 {
        font-size: 16px;
    }

    .side-menu-content {
        padding: 10px 12px;
        padding-bottom: 30px;
    }

    .side-menu-section {
        margin-bottom: 12px;
    }

    .side-menu-section-title {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .side-menu-link {
        padding: 6px 8px;
        gap: 8px;
        font-size: 12px;
    }

    .side-menu-link-icon {
        font-size: 14px;
        width: 20px;
    }

    .side-menu-divider {
        margin: 8px 0;
    }

    .side-menu-footer {
        padding: 6px 0 25px 0;
    }
}

@media (min-width: 769px) {
    .side-menu {
        max-width: 360px;
    }

    .side-menu-link {
        padding: 10px 12px;
    }
}
.app-content {
    padding: 16px;
    padding-bottom: 80px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 769px) {
    .app-content {
        padding: 24px;
        padding-bottom: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .app-content {
        padding: 16px;
        padding-bottom: 70px;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .grid-2 {
        gap: 10px;
    }
}

.challenge-selector {
    margin-bottom: 16px;
}

.challenge-option {
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.challenge-option:hover {
    border-color: #FF4800;
    background: #FFF5F0;
}

.challenge-option.selected {
    border-color: #FF4800;
    background: #FFF5F0;
}

.challenge-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #35322F;
    font-size: 14px;
}

.challenge-meta {
    font-size: 11px;
    color: #35322F;
    opacity: 0.7;
}

.photo-preview {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 8px;
    display: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #35322F 0%, #2A2724 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-header p {
    font-size: 16px;
    opacity: 0.9;
}

.auth-alert {
    margin: 20px 30px 0 30px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.auth-alert-error {
    background: #FFE5E0;
    border-left: 4px solid #FF4800;
}

.auth-alert-success {
    background: #E8F5E9;
    border-left: 4px solid #2E7D32;
}

.auth-alert-warning {
    background: #FFF5E0;
    border-left: 4px solid #FF9800;
}

.auth-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 15px;
}

.auth-alert-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.auth-alert-error .auth-alert-message {
    color: #FF4800;
}

.auth-alert-success .auth-alert-message {
    color: #2E7D32;
}

.auth-alert-warning .auth-alert-message {
    color: #FF9800;
}

.auth-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.auth-alert-error .auth-alert-close {
    color: #FF4800;
    opacity: 0.7;
}

.auth-alert-success .auth-alert-close {
    color: #2E7D32;
    opacity: 0.7;
}

.auth-alert-warning .auth-alert-close {
    color: #FF9800;
    opacity: 0.7;
}

.auth-alert-close:hover {
    opacity: 1;
}

.auth-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #35322F;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #35322F;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF4800;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #E8E8E8;
}

.auth-footer a {
    color: #FF4800;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-image {
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    background: #F5F5F5;
    height: 50px;
    width: auto;
}

.captcha-refresh {
    background: #E8E8E8;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.captcha-refresh:hover {
    background: #D9D9D9;
    transform: rotate(15deg);
}

.captcha-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #35322F;
}

.captcha-input:focus {
    outline: none;
    border-color: #FF4800;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.1);
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-alert {
        margin: 15px 20px 0 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .captcha-image-wrapper {
        flex-wrap: wrap;
    }
}
/* ================================================================
   maintenance.css — стили страницы технических работ и баннера
   ================================================================ */

/* ── Баннер для администратора ───────────────────────────────── */
.maintenance-banner {
    background: #FF4800;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.maintenance-banner a {
    background: rgba(255,255,255,0.25);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: background .15s;
}
.maintenance-banner a:hover { background: rgba(255,255,255,0.4); }

.maintenance-banner button {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    min-height: auto;
    min-width: auto;
    transition: background .15s;
}
.maintenance-banner button:hover { background: rgba(255,255,255,0.4); }

/* ── Настройки maintenance в admin/settings.php ──────────────── */
.maint-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 15px;
}
.maint-on  { background: #FFF0E0; color: #C05000; border: 2px solid #FF4800; }
.maint-off { background: #F0FFF4; color: #1A7F3C; border: 2px solid #28A745; }

.maint-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    flex-shrink: 0;
    animation: maint-pulse 1.5s infinite;
}
.maint-on  .maint-dot { background: #FF4800; }
.maint-off .maint-dot { background: #28A745; animation: none; }

@keyframes maint-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.maint-meta { font-size: 12px; color: #888; font-weight: 400; margin-top: 2px; }
.maint-form-grid { display: grid; gap: 12px; }
.maint-form-grid textarea { resize: vertical; min-height: 80px; }

.toggle-btn-on  { background: #FF4800 !important; color: #fff !important; }
.toggle-btn-off { background: #28A745 !important; color: #fff !important; }

.trainer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.trainer-stat {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.trainer-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF4800;
}

.trainer-stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.trainer-stats-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.trainer-stat-small {
    background: #E8E8E8;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #35322F;
}

.trainer-stat-small.active {
    background: #FF4800;
    color: white;
}

.trainer-stat-small-value {
    font-size: 20px;
    font-weight: 700;
}

.trainer-stat-small-label {
    font-size: 10px;
    margin-top: 2px;
}

.trainer-section {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}

.trainer-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trainer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #35322F;
}

.trainer-link {
    font-size: 12px;
    color: #FF4800;
    text-decoration: none;
}

.trainer-checkin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

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

.trainer-checkin-info {
    flex: 1;
}

.trainer-checkin-name {
    font-weight: 500;
    font-size: 14px;
}

.trainer-checkin-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.trainer-checkin-actions {
    display: flex;
    gap: 8px;
}

.trainer-btn-approve {
    background: #E8F5E9;
    color: #2E7D32;
}

.trainer-btn-approve:hover {
    background: #C8E6C9;
}

.trainer-btn-reject {
    background: #FFE5E0;
    color: #FF4800;
}

.trainer-btn-reject:hover {
    background: #FFD4CC;
}

.trainer-btn-primary {
    background: #FF4800;
    color: white;
}

.trainer-btn-primary:hover {
    background: #CC3A00;
}

.trainer-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}

.trainer-btn-secondary:hover {
    background: #D9D9D9;
}

.trainer-btn-danger {
    background: #FFE5E0;
    color: #FF4800;
}

.trainer-btn-danger:hover {
    background: #FFD4CC;
}

.trainer-btn-block {
    width: 100%;
}

.trainer-btn-small {
    padding: 4px 8px;
    font-size: 11px;
}

.trainer-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

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

.trainer-event-info {
    flex: 1;
}

.trainer-event-title {
    font-weight: 500;
    font-size: 14px;
}

.trainer-event-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.trainer-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .trainer-actions {
        grid-template-columns: 1fr;
    }
}

.trainer-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: #35322F;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.trainer-action-btn:hover {
    border-color: #FF4800;
    background: #FFF5F0;
}

.trainer-action-icon {
    font-size: 20px;
}

.trainer-empty {
    text-align: center;
    padding: 40px 16px;
    background: #F5F5F5;
    border-radius: 12px;
}

.trainer-empty-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.trainer-empty p {
    color: #666;
    font-size: 13px;
}

.trainer-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.trainer-filter-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    background: #E8E8E8;
    border-radius: 20px;
    color: #35322F;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.trainer-filter-tab.active {
    background: #FF4800;
    color: white;
}

.trainer-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.trainer-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E8E8;
}

.trainer-card-icon {
    width: 48px;
    height: 48px;
    background: #FFF5F0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FF4800;
}

.trainer-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #35322F;
}

.trainer-form-group {
    margin-bottom: 20px;
}

.trainer-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #35322F;
}

.trainer-form-group input,
.trainer-form-group select,
.trainer-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    font-size: 14px;
    background: #FFFFFF;
    transition: all 0.3s;
}

.trainer-form-group input:focus,
.trainer-form-group select:focus,
.trainer-form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.1);
}

.trainer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .trainer-form-row {
        grid-template-columns: 1fr;
    }
}

.trainer-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.trainer-form-actions .trainer-btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

.trainer-event-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
}

.trainer-event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.trainer-event-title {
    font-weight: 600;
    font-size: 15px;
}

.trainer-event-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.trainer-event-badge-training {
    background: #E3F2FD;
    color: #1976D2;
}

.trainer-event-badge-lecture {
    background: #F3E5F5;
    color: #7B1FA2;
}

.trainer-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    font-size: 11px;
    color: #666;
}

.trainer-event-desc {
    color: #666;
    font-size: 12px;
    margin: 8px 0;
}

.trainer-event-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.trainer-event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.trainer-event-stat {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.trainer-event-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF4800;
}

.trainer-event-stat-label {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.trainer-event-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.trainer-event-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.trainer-event-header p {
    font-size: 12px;
    opacity: 0.9;
}

.trainer-event-link {
    margin-top: 16px;
}

.trainer-warning {
    background: #FFF5E0;
    border-left: 3px solid #FF4800;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 12px;
}

.trainer-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.trainer-alert-error {
    background: #FFE5E0;
    color: #FF4800;
    border-left: 3px solid #FF4800;
}

.trainer-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 3px solid #2E7D32;
}

.trainer-checkins-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trainer-checkin-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #E8E8E8;
}

.trainer-checkin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.trainer-checkin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trainer-checkin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.trainer-checkin-name {
    font-weight: 500;
    font-size: 14px;
}

.trainer-checkin-email {
    font-size: 11px;
    color: #666;
}

.trainer-checkin-card-body {
    margin-bottom: 12px;
}

.trainer-checkin-challenge {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
}

.trainer-checkin-value {
    font-size: 12px;
    color: #666;
}

.trainer-checkin-date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.trainer-checkin-comment {
    background: #F5F5F5;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
}

.trainer-checkin-photo {
    background: #FFF5F0;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #FF4800;
    cursor: pointer;
    text-align: center;
}

.trainer-checkin-reason {
    background: #FFE5E0;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #FF4800;
}

.trainer-checkin-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.trainer-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.trainer-status-pending {
    background: #FFF3E0;
    color: #FF9800;
}

.trainer-status-approved,
.trainer-status-attended {
    background: #E8F5E9;
    color: #2E7D32;
}

.trainer-status-rejected,
.trainer-status-cancelled {
    background: #FFE5E0;
    color: #FF4800;
}

.trainer-status-registered {
    background: #E3F2FD;
    color: #1976D2;
}

.trainer-participants-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
    margin-bottom: 16px;
}

.trainer-participant-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #E8E8E8;
    gap: 12px;
    flex-wrap: wrap;
}

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

.trainer-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.trainer-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.trainer-participant-name {
    font-weight: 500;
    font-size: 14px;
}

.trainer-participant-email {
    font-size: 11px;
    color: #666;
}

.trainer-participant-date {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.trainer-participant-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.trainer-participant-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.trainer-search {
    margin-bottom: 16px;
}

.trainer-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    font-size: 13px;
}

.trainer-stats-simple {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.trainer-stat-simple-value {
    font-size: 28px;
    font-weight: 700;
    color: #FF4800;
}

.trainer-stat-simple-label {
    font-size: 12px;
    color: #666;
}

.trainer-participants-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trainer-participant-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #E8E8E8;
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 480px) {
    .trainer-participant-card {
        flex-direction: column;
        text-align: center;
    }
    .trainer-participant-card-stats {
        justify-content: center;
    }
}

.trainer-participant-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.trainer-participant-card-info {
    flex: 1;
    min-width: 0;
}

.trainer-participant-card-name {
    font-weight: 600;
    font-size: 15px;
}

.trainer-participant-card-email {
    font-size: 11px;
    color: #666;
}

.trainer-participant-card-city {
    font-size: 11px;
    color: #FF4800;
    margin-top: 2px;
}

.trainer-participant-card-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 10px;
    color: #666;
}

.trainer-profile-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    margin: -20px -20px 20px -20px;
}

.trainer-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: white;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #FF4800;
}

.trainer-profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.trainer-profile-role {
    font-size: 13px;
    opacity: 0.9;
}

.trainer-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .trainer-profile-stats {
        grid-template-columns: 1fr;
    }
}

.trainer-profile-stat {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.trainer-profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF4800;
}

.trainer-profile-stat-label {
    font-size: 10px;
    color: #666;
}

.trainer-profile-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 20px;
}

.trainer-profile-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.trainer-profile-tab.active {
    color: #FF4800;
    border-bottom: 2px solid #FF4800;
}

.trainer-profile-tab-content {
    display: none;
}

.trainer-profile-tab-content.active {
    display: block;
}

.trainer-profile-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}

.trainer-profile-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #35322F;
}

.trainer-profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E8E8E8;
    font-size: 13px;
}

.trainer-profile-info-row:last-child {
    border-bottom: none;
}

.trainer-profile-checkin {
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

.trainer-profile-checkin:last-child {
    border-bottom: none;
}

.trainer-profile-checkin-title {
    font-weight: 500;
    font-size: 13px;
}

.trainer-profile-checkin-meta {
    font-size: 11px;
    color: #666;
    margin: 2px 0;
}

.trainer-profile-checkin-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.trainer-profile-event {
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

.trainer-profile-event:last-child {
    border-bottom: none;
}

.trainer-profile-event-title {
    font-weight: 500;
    font-size: 13px;
}

.trainer-profile-event-meta {
    font-size: 11px;
    color: #666;
    margin: 2px 0;
}

.trainer-profile-event-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.trainer-profile-info-footer {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    font-size: 12px;
}

.trainer-empty-small {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

.trainer-section-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #E8E8E8;
}

.trainer-section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.trainer-section-title-sm {
    font-weight: 600;
    font-size: 16px;
    color: #35322F;
}

.trainer-section-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    background: #FFF5F0;
    color: #FF4800;
}

.trainer-section-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.trainer-section-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #666;
}

.trainer-section-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .trainer-section-actions {
        flex-direction: column;
    }
}

.trainer-section-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}

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

.trainer-section-info {
    flex: 1;
}

.trainer-section-header-card {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.trainer-section-header-card h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.trainer-section-header-card p {
    font-size: 14px;
    opacity: 0.9;
}

.trainer-section-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.trainer-section-stat {
    text-align: center;
}

.trainer-section-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.trainer-section-stat-label {
    font-size: 10px;
    opacity: 0.8;
}

.trainer-members-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
    margin-bottom: 16px;
}

.trainer-member-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #E8E8E8;
    gap: 12px;
    flex-wrap: wrap;
}

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

.trainer-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

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

.trainer-member-name {
    font-weight: 500;
    font-size: 14px;
}

.trainer-member-email {
    font-size: 11px;
    color: #666;
}

.trainer-member-date {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.trainer-member-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.trainer-status-active {
    background: #E8F5E9;
    color: #2E7D32;
}

.trainer-section-actions-bottom {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .trainer-section-actions-bottom {
        flex-direction: column;
    }
}

.trainer-session-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
}

.trainer-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.trainer-session-title {
    font-weight: 600;
    font-size: 16px;
    color: #35322F;
}

.trainer-session-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    background: #E8F5E9;
    color: #2E7D32;
}

.trainer-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    font-size: 12px;
    color: #666;
}

.trainer-session-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.trainer-session-header-card {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.trainer-session-header-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.trainer-session-header-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.trainer-session-header-card p:last-child {
    margin-bottom: 0;
}

.trainer-session-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.trainer-session-stat {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.trainer-session-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #FF4800;
}

.trainer-session-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .trainer-session-stats {
        flex-direction: column;
        align-items: center;
    }
    .trainer-session-stat {
        max-width: 100%;
        width: 100%;
    }
}

.trainer-participant-row {
    display: flex;
    gap: 10px;
}

.trainer-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #E8E8E8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.trainer-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.trainer-tab.active {
    background: #FF4800;
    color: white;
}

.trainer-tab:hover:not(.active) {
    background: #E8E8E8;
    color: #35322F;
}

.trainer-tab-content {
    display: none;
}

.trainer-tab-content.active {
    display: block;
}

@media (min-width: 769px) {
    body:has(.trainer-page) {
        padding: 24px 16px 40px;
    }
    body:has(.trainer-page) .app-container {
        max-width: 720px;
    }
}

.trainer-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
    }
    .nav-buttons .trainer-btn {
        width: 100%;
        text-align: center;
    }
    .trainer-participant-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .trainer-participant-actions {
        width: 100%;
    }
    .trainer-participant-actions .trainer-btn {
        width: 100%;
        text-align: center;
    }
    .trainer-participant-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .trainer-participant-actions {
        width: 100%;
    }
    .trainer-participant-actions .trainer-btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .trainer-participant-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .trainer-participant-actions {
        flex-shrink: 0;
    }
}
.moderator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.moderator-stat {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.moderator-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF4800;
}

.moderator-stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.moderator-stats-small {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .moderator-stats-small {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .moderator-stats-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

.moderator-stat-small {
    background: #E8E8E8;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #35322F;
}

.moderator-stat-small.active {
    background: #FF4800;
    color: white;
}

.moderator-stat-small-value {
    font-size: 20px;
    font-weight: 700;
}

.moderator-stat-small-label {
    font-size: 10px;
    margin-top: 2px;
}

.moderator-section {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}

.moderator-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.moderator-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #35322F;
}

.moderator-link {
    font-size: 12px;
    color: #FF4800;
    text-decoration: none;
}

.moderator-empty {
    text-align: center;
    padding: 40px 16px;
    background: #F5F5F5;
    border-radius: 12px;
}

.moderator-empty-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.moderator-empty p {
    color: #666;
    font-size: 13px;
}

.moderator-checkins-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.moderator-checkin-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
}

.moderator-checkin-card.processing {
    opacity: 0.6;
    pointer-events: none;
}

.moderator-checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.moderator-checkin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.moderator-checkin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.moderator-checkin-name {
    font-weight: 500;
    font-size: 14px;
}

.moderator-checkin-email {
    font-size: 11px;
    color: #666;
}

.moderator-checkin-date {
    font-size: 11px;
    color: #999;
}

.moderator-checkin-body {
    margin-bottom: 12px;
}

.moderator-checkin-challenge {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
}

.moderator-checkin-value {
    font-size: 12px;
    color: #666;
}

.moderator-checkin-points {
    font-size: 12px;
    color: #FF4800;
    font-weight: 500;
}

.moderator-checkin-comment {
    background: #F5F5F5;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
}

.moderator-checkin-photo {
    background: #FFF5F0;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #FF4800;
    cursor: pointer;
    text-align: center;
}

.moderator-checkin-reason {
    background: #FFE5E0;
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #FF4800;
}

.moderator-checkin-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.moderator-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.moderator-btn-approve {
    background: #E8F5E9;
    color: #2E7D32;
}

.moderator-btn-approve:hover {
    background: #C8E6C9;
}

.moderator-btn-reject {
    background: #FFE5E0;
    color: #FF4800;
}

.moderator-btn-reject:hover {
    background: #FFD4CC;
}

.moderator-btn-primary {
    background: #FF4800;
    color: white;
}

.moderator-btn-primary:hover {
    background: #CC3A00;
}

.moderator-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}

.moderator-btn-secondary:hover {
    background: #D9D9D9;
}

.moderator-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.moderator-status-pending {
    background: #FFF3E0;
    color: #FF9800;
}

.moderator-status-approved {
    background: #E8F5E9;
    color: #2E7D32;
}

.moderator-status-rejected {
    background: #FFE5E0;
    color: #FF4800;
}

.moderator-status-cancelled {
    background: #E8E8E8;
    color: #666;
    text-decoration: line-through;
}

.moderator-profile-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    margin: -20px -20px 20px -20px;
}

.moderator-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: white;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #FF4800;
}

.moderator-profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.moderator-profile-role {
    font-size: 13px;
    opacity: 0.9;
}

.moderator-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .moderator-profile-stats {
        grid-template-columns: 1fr;
    }
}

.moderator-profile-stat {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.moderator-profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF4800;
}

.moderator-profile-stat-label {
    font-size: 10px;
    color: #666;
}

.moderator-profile-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 20px;
}

.moderator-profile-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.moderator-profile-tab.active {
    color: #FF4800;
    border-bottom: 2px solid #FF4800;
}

.moderator-profile-tab-content {
    display: none;
}

.moderator-profile-tab-content.active {
    display: block;
}

.moderator-form-group {
    margin-bottom: 20px;
}

.moderator-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #35322F;
}

.moderator-form-group input,
.moderator-form-group select,
.moderator-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    font-size: 14px;
    background: #FFFFFF;
    transition: all 0.3s;
}

.moderator-form-group input:focus,
.moderator-form-group select:focus,
.moderator-form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
    box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.1);
}

.moderator-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.moderator-profile-info-footer {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    font-size: 12px;
}

.moderator-profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E8E8E8;
    font-size: 13px;
}

.moderator-profile-info-row:last-child {
    border-bottom: none;
}

.mode-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #E8E8E8;
}

.mode-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.mode-btn.active {
    background: #FF4800;
    color: white;
}

.dashboard-event {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-event-icon {
    background: #FFF5F0;
    padding: 8px;
    border-radius: 10px;
    font-size: 28px;
}

.dashboard-event-info {
    flex: 1;
}

.dashboard-event-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #35322F;
    text-decoration: none;
}

.dashboard-event-title:hover {
    color: #FF4800;
    text-decoration: underline;
}

.dashboard-event-meta {
    font-size: 12px;
    color: #666;
}

.dashboard-event-link {
    padding: 6px 12px;
    background: #E8E8E8;
    border-radius: 8px;
    color: #35322F;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.dashboard-event-link:hover {
    background: #D9D9D9;
}

.dashboard-event-link.registered {
    background: #E8F5E9;
    color: #2E7D32;
    cursor: default;
}

.dashboard-section-item {
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

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

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.dashboard-section-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}

.dashboard-section-schedule {
    font-size: 11px;
    color: #666;
}

.dashboard-section-link {
    font-size: 11px;
    color: #FF4800;
    text-decoration: none;
}

@media (max-width: 768px) {
    .moderator-checkin-actions {
        flex-direction: column;
    }
    .moderator-btn {
        width: 100%;
        text-align: center;
    }
    .dashboard-event {
        flex-wrap: wrap;
    }
    .dashboard-event-link {
        width: 100%;
        text-align: center;
    }
}
.activities-tab-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #E8E8E8;
}
.activities-tab-btn {
    flex: 1;
    padding: 10px 4px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.activities-tab-btn span:first-child {
    font-size: 18px;
}
.activities-tab-btn span:last-child {
    font-size: 11px;
}
.activities-tab-btn.active {
    background: #FF4800;
    color: white;
}
@media (min-width: 769px) {
    .activities-tab-btn {
        flex-direction: row;
        gap: 8px;
        padding: 10px 12px;
    }
    .activities-tab-btn span:first-child {
        font-size: 16px;
    }
    .activities-tab-btn span:last-child {
        font-size: 13px;
    }
}
.activities-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E8E8E8;
}
.activities-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.activities-filter-link {
    padding: 5px 10px;
    border-radius: 16px;
    background: #E8E8E8;
    color: #35322F;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.activities-filter-link.active {
    background: #FF4800;
    color: white;
}
.activities-filter-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.activities-filter-selects select {
    padding: 6px 10px;
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    background: white;
    font-size: 11px;
    color: #35322F;
    cursor: pointer;
}
.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.activities-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
    scroll-margin-top: 80px;
}
.activities-card.highlight {
    border-color: #FF4800;
    box-shadow: 0 0 0 2px rgba(255,72,0,0.2);
    animation: highlight-pulse 1s ease-in-out;
}
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,72,0,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,72,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,72,0,0); }
}
.activities-card:hover {
    border-color: #FF4800;
    box-shadow: 0 2px 8px rgba(255,72,0,0.1);
}
.activities-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.activities-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #35322F;
}
.activities-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 500;
    background: #FFF5F0;
    color: #FF4800;
}
.activities-card-desc {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
}
.activities-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #666;
}
.activities-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.activities-card-footer {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}
.activities-btn,
.activities-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    line-height: 1;
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
}
.activities-btn-primary {
    background: #FF4800;
    color: white;
}
.activities-btn-primary:hover {
    background: #CC3A00;
}
.activities-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.activities-btn-secondary:hover {
    background: #D9D9D9;
}
.activities-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}
.activities-btn-outline:hover {
    background: #FFF5F0;
}
.activities-btn-disabled {
    background: #E8E8E8;
    color: #999;
    cursor: not-allowed;
}
.activities-status {
    cursor: default;
}
.activities-status.registered,
.activities-status.joined {
    background: #E8F5E9;
    color: #2E7D32;
}
.activities-status.attended {
    background: #E8F5E9;
    color: #2E7D32;
}
.activities-status.full {
    background: #FFF3E0;
    color: #FF9800;
}
.activities-status.finished {
    background: #E8E8E8;
    color: #666;
}
.activities-progress {
    margin: 8px 0;
}
.activities-progress-bar {
    background: #E8E8E8;
    border-radius: 8px;
    height: 6px;
    overflow: hidden;
}
.activities-progress-fill {
    background: #FF4800;
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s;
}
.activities-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 10px;
    color: #666;
}
.activities-empty {
    text-align: center;
    padding: 40px 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
}
.activities-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.activities-empty h3 {
    margin-bottom: 6px;
    color: #35322F;
    font-size: 15px;
}
.activities-empty p {
    color: #666;
    font-size: 12px;
}
@media (max-width: 768px) {
    .activities-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .activities-btn,
    .activities-status {
        width: 100%;
        white-space: normal;
        text-align: center;
        height: 38px;
    }
}
.challenge-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 20px -20px;
}
.challenge-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.challenge-header p {
    opacity: 0.9;
    font-size: 14px;
}
.challenge-info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
.challenge-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.challenge-info-row:last-child {
    border-bottom: none;
}
.challenge-info-icon {
    width: 40px;
    height: 40px;
    background: #FFF5F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FF4800;
}
.challenge-info-content {
    flex: 1;
}
.challenge-info-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}
.challenge-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #35322F;
}
.challenge-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}
.challenge-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.challenge-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,72,0,0.3);
}
.challenge-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.challenge-btn-secondary:hover {
    background: #D9D9D9;
}
.challenge-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}
.challenge-btn-outline:hover {
    background: #FFF5F0;
}
.challenge-btn-disabled {
    background: #E8E8E8;
    color: #999;
    cursor: not-allowed;
}
.challenge-progress {
    margin: 15px 0;
}
.challenge-progress-bar {
    background: #E8E8E8;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}
.challenge-progress-fill {
    background: #FF4800;
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s;
}
.challenge-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #666;
}
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}
.leaderboard-item:last-child {
    border-bottom: none;
}
.leaderboard-rank {
    width: 36px;
    font-weight: 700;
    font-size: 14px;
    color: #FF4800;
    flex-shrink: 0;
}
.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}
.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.leaderboard-info {
    flex: 1;
}
.leaderboard-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
.leaderboard-value {
    font-size: 11px;
    color: #666;
}
.leaderboard-points {
    font-weight: 700;
    color: #FF4800;
    font-size: 13px;
    flex-shrink: 0;
}
.user-rank-card {
    background: #FFF5F0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.user-rank-label {
    font-size: 12px;
    color: #666;
}
.user-rank-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF4800;
}
.challenge-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.completed-badge {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}
.team-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #E8E8E8;
}
.team-member-item:last-child {
    border-bottom: none;
}
.team-member-rank {
    width: 30px;
    font-weight: 600;
    color: #FF4800;
    font-size: 13px;
    flex-shrink: 0;
}
.team-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    overflow: hidden;
}
.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #35322F;
}
.team-member-points {
    font-size: 12px;
    font-weight: 600;
    color: #FF4800;
}
@media (max-width: 768px) {
    .info-icon-main {
        display: none;
    }
}
.chat-full-height {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #E8E8E8;
    flex-shrink: 0;
}
.chat-back {
    color: #FF4800;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}
.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: #35322F;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F8F8F8;
    -webkit-overflow-scrolling: touch;
}
.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}
.message-own {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}
.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.message-content {
    flex: 1;
}
.message-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    color: #35322F;
}
.message-own .message-bubble {
    background: #FF4800;
    color: white;
}
.message-info {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 10px;
    color: #999;
}
.message-name {
    font-weight: 500;
}
.message-time {
    opacity: 0.7;
}
.message-own .message-info {
    justify-content: flex-end;
}
.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #E8E8E8;
    flex-shrink: 0;
    align-items: flex-end;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #E8E8E8;
    border-radius: 24px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    max-height: 100px;
    line-height: 1.4;
}
.chat-input:focus {
    outline: none;
    border-color: #FF4800;
}
.chat-send {
    padding: 8px 18px;
    background: #FF4800;
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 40px;
    font-size: 14px;
}
.chat-send:disabled {
    background: #E8E8E8;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }
    .chat-input {
        font-size: 15px;
    }
    .chat-send {
        padding: 8px 16px;
        font-size: 13px;
    }
    .message-bubble {
        padding: 8px 12px;
        font-size: 14px;
    }
}
.chats-container {
    max-width: 100%;
}
.chats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.chats-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #35322F;
    margin: 0;
}
.chats-list {
    background: white;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    overflow: hidden;
}
.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #E8E8E8;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.chat-item:last-child {
    border-bottom: none;
}
.chat-item:hover {
    background: #FFF5F0;
}
.chat-item.unread {
    background: #FFF5F0;
}
.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}
.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-info {
    flex: 1;
    min-width: 0;
}
.chat-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #35322F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-last-message {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-meta {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.chat-time {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
}
.chat-unread {
    background: #FF4800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}
.chat-leave-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    color: #999;
    transition: all 0.3s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-leave-btn:hover {
    background: #FFE5E0;
    color: #FF4800;
}
.chat-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
}
.chat-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.chat-empty p {
    color: #666;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .chat-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .chat-name {
        font-size: 14px;
    }
    .chat-last-message {
        font-size: 11px;
    }
    .chat-item {
        padding: 12px;
    }
}
@media (min-width: 769px) {
    .chats-container {
        max-width: 800px;
        margin: 0 auto;
    }
    .chat-item {
        padding: 16px 20px;
    }
    .chat-avatar {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .chat-name {
        font-size: 16px;
    }
    .chat-last-message {
        font-size: 13px;
    }
    .chat-time {
        font-size: 11px;
    }
}
.checkin-challenge-list {
    margin-bottom: 16px;
}
.checkin-challenge-item {
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.checkin-challenge-item:hover {
    border-color: #FF4800;
    background: #FFF5F0;
}
.checkin-challenge-item.selected {
    border-color: #FF4800;
    background: #FFF5F0;
}
.checkin-challenge-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #35322F;
    font-size: 14px;
}
.checkin-challenge-meta {
    font-size: 11px;
    color: #666;
}
.checkin-photo-preview {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 8px;
    display: none;
}
.checkin-photo-required {
    color: #FF4800;
    font-size: 11px;
    margin-top: 4px;
}
.checkin-today-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checkin-today-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
//  background: #F8F8F8;
    border-radius: 12px;
    transition: all 0.3s;
}
.checkin-today-info {
    flex: 1;
}
.checkin-today-time {
    font-weight: 600;
    font-size: 13px;
    color: #35322F;
    margin-bottom: 4px;
}
.checkin-today-value {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}
.checkin-today-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
}
.checkin-today-status.pending {
    background: #FFF3E0;
    color: #FF9800;
}
.checkin-today-status.approved {
    background: #E8F5E9;
    color: #2E7D32;
}
.value-unit {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}
.alert-warning {
    background: #FFF3E0;
    color: #FF9800;
    border: 1px solid #FFE0B8;
}
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-error {
    background: #FFE5E0;
    color: #FF4800;
    border: 1px solid #FFC8B8;
}
.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}
.card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #E8E8E8;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #35322F;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #35322F;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    font-size: 14px;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.3);
}
.btn-block {
    width: 100%;
}
@media (max-width: 768px) {
    .checkin-today-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .checkin-today-status {
        align-self: flex-start;
        margin-left: 0;
    }
    .checkin-today-time {
        font-size: 14px;
    }
    .checkin-today-value {
        font-size: 13px;
    }
}
@media (min-width: 769px) {
    .checkin-today-item {
        flex-direction: row;
        align-items: center;
    }
    .checkin-today-status {
        margin-left: 10px;
    }
}
.dashboard-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
    transition: all 0.3s;
}
.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.3);
}
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #E8E8E8;
}
.dashboard-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #35322F;
}
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.dashboard-grid-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
}
.dashboard-grid-item:hover {
    border-color: #FF4800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.1);
}
.dashboard-grid-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.dashboard-grid-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #35322F;
}
.dashboard-grid-text {
    font-size: 11px;
    color: #666;
}
.dashboard-section-item {
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}
.dashboard-section-item:last-child {
    border-bottom: none;
}
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.dashboard-section-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
.dashboard-section-schedule {
    font-size: 11px;
    color: #666;
}
.dashboard-section-link {
    font-size: 11px;
    color: #FF4800;
    text-decoration: none;
}
.dashboard-event {
    display: flex;
    gap: 12px;
    align-items: center;
}
.dashboard-event-icon {
    background: #FFF5F0;
    padding: 8px;
    border-radius: 10px;
    font-size: 28px;
}
.dashboard-event-info {
    flex: 1;
}
.dashboard-event-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    cursor: pointer;
    color: #35322F;
    text-decoration: none;
}
.dashboard-event-title:hover {
    color: #FF4800;
    text-decoration: underline;
}
.dashboard-event-meta {
    font-size: 12px;
    color: #666;
}
.dashboard-event-link {
    padding: 6px 12px;
    background: #E8E8E8;
    border-radius: 8px;
    color: #35322F;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}
.dashboard-event-link:hover {
    background: #D9D9D9;
}
.dashboard-event-link.registered {
    background: #E8F5E9;
    color: #2E7D32;
    cursor: default;
}
.dashboard-event-link.registered:hover {
    background: #E8F5E9;
}
@media (max-width: 480px) {
    .dashboard-event {
        flex-wrap: wrap;
    }
    .dashboard-event-link {
        width: 100%;
        text-align: center;
    }
}
.event-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 20px;
    margin: -20px -20px 20px -20px;
}
.event-header a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    display: inline-block;
    margin-bottom: 15px;
}
.event-header a:hover {
    opacity: 1;
}
.event-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.event-header p {
    opacity: 0.9;
    font-size: 14px;
}
.event-info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
.event-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.event-info-row:last-child {
    border-bottom: none;
}
.event-info-icon {
    width: 40px;
    height: 40px;
    background: #FFF5F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FF4800;
}
.event-info-content {
    flex: 1;
}
.event-info-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}
.event-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #35322F;
}
.event-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}
.event-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.event-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,72,0,0.3);
}
.event-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.event-btn-secondary:hover {
    background: #D9D9D9;
}
.event-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}
.event-btn-outline:hover {
    background: #FFF5F0;
}
.event-btn-disabled {
    background: #E8E8E8;
    color: #999;
    cursor: not-allowed;
}
.event-participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}
.event-participant-item:last-child {
    border-bottom: none;
}
.event-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.event-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-participant-info {
    flex: 1;
}
.event-participant-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
.event-participant-date {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.event-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.event-warning {
    background: #FFF5E0;
    border-left: 4px solid #FF4800;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    color: #35322F;
}
.event-warning strong {
    color: #FF4800;
}
.event-warning p {
    margin-top: 5px;
}
.history-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #E8E8E8;
}
.history-tab {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.history-tab.active {
    background: #FF4800;
    color: white;
}
.history-tab span:first-child {
    font-size: 18px;
}
.history-tab span:last-child {
    font-size: 11px;
}
@media (min-width: 769px) {
    .history-tab {
        flex-direction: row;
        gap: 8px;
        padding: 10px 16px;
    }
    .history-tab span:first-child {
        font-size: 16px;
    }
    .history-tab span:last-child {
        font-size: 13px;
    }
}
.history-period {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.history-period-btn {
    flex: 1;
    padding: 8px 6px;
    border-radius: 14px;
    background: #E8E8E8;
    color: #35322F;
    text-decoration: none;
    font-size: 11px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.history-period-btn.active {
    background: #FF4800;
    color: white;
}
@media (min-width: 769px) {
    .history-period {
        justify-content: flex-end;
    }
    .history-period-btn {
        flex: none;
        padding: 6px 14px;
        font-size: 12px;
    }
}
.history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.history-stat {
    background: #FFF5F0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.history-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #FF4800;
}
.history-stat-label {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}
.history-empty {
    text-align: center;
    padding: 40px 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
}
.history-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.history-timeline {
    position: relative;
    padding-left: 20px;
}
.history-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E8E8E8;
}
.history-date {
    font-weight: 600;
    margin: 16px 0 10px;
    color: #FF4800;
    font-size: 13px;
}
.history-item {
    position: relative;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #E8E8E8;
}
.history-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF4800;
    border: 2px solid white;
}
.history-item-checkin::before { background: #4caf50; }
.history-item-event::before { background: #ff9800; }
.history-item-purchase::before { background: #f44336; }
.history-item-cancel::before { background: #9e9e9e; }
.history-item-bonus::before { background: #FF4800; }
.history-item-streak::before { background: #FF9800; }
.history-item-section::before { background: #2196F3; }
.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.history-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
}
.history-item-icon {
    width: 28px;
    height: 28px;
    background: #FFF5F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.history-item-time {
    font-size: 11px;
    color: #999;
}
.history-item-content {
    margin-left: 36px;
}
.history-item-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}
.history-item-points {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
}
.points-positive { color: #2E7D32; }
.points-negative { color: #FF4800; }
.history-item-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 14px;
    font-size: 10px;
}
.history-status-approved,
.history-status-attended,
.history-status-completed {
    background: #E8F5E9;
    color: #2E7D32;
}
.history-status-pending {
    background: #FFF3E0;
    color: #FF9800;
}
.history-status-rejected,
.history-status-cancelled {
    background: #FFE5E0;
    color: #FF4800;
}
@media (max-width: 480px) {
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: all;
    animation: toastIn 0.3s ease;
    line-height: 1.4;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.toast-msg { flex: 1; }

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    min-height: auto;
    flex-shrink: 0;
}

.toast-close:hover { opacity: 1; }

.toast-success {
    background: #E8F5E9;
    color: #1B5E20;
    border-left: 4px solid #2E7D32;
}

.toast-error {
    background: #FFF0F0;
    color: #B71C1C;
    border-left: 4px solid #C62828;
}

.toast-warning {
    background: #FFF8E1;
    color: #7B5800;
    border-left: 4px solid #F9A825;
}

.toast-info {
    background: #E3F2FD;
    color: #0D47A1;
    border-left: 4px solid #1565C0;
}

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(53,50,47,0.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.confirm-box {
    background: white;
    border-radius: 16px;
    padding: 24px 20px 20px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.confirm-msg {
    font-size: 15px;
    font-weight: 500;
    color: #35322F;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.confirm-btns {
    display: flex;
    gap: 10px;
}

.confirm-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: auto;
}

.confirm-yes {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}

.confirm-yes:hover { background: linear-gradient(135deg, #CC3A00 0%, #AA3000 100%); }

.confirm-no {
    background: #E8E8E8;
    color: #35322F;
}

.confirm-no:hover { background: #D9D9D9; }

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-badge {
    background: #FFF5F0;
    padding: 8px 15px;
    border-radius: 20px;
    color: #FF4800;
    font-weight: 500;
}

.notifications-header a {
    padding: 6px 12px;
    background: #E8E8E8;
    color: #35322F;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.notifications-header a:hover {
    background: #D9D9D9;
}

@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-badge {
        text-align: center;
        padding: 10px 15px;
    }
    
    .notifications-header a {
        text-align: center;
        padding: 10px 15px;
    }
}

.notification-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
    padding: 15px;
}

.notification-item.unread {
    background: #FFF5F0;
    border-left: 4px solid #FF4800;
}

.notification-item .notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-info {
    background: #E8E8E8;
    color: #35322F;
}

.icon-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.icon-warning {
    background: #FFF5E0;
    color: #FF4800;
}

.icon-danger {
    background: #FFE5E0;
    color: #FF4800;
}

.notification-header-info {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #35322F;
    font-size: 15px;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #E8E8E8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    color: #35322F;
    font-size: 14px;
}

.btn-icon:hover {
    background: #FF4800;
    color: white;
}

@media (max-width: 768px) {
    .notification-actions.display-wide {
        display: none;
    }
}

@media (min-width: 768px) {
    .notification-actions.display-mobile {
        display: none;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 12px;
    border-radius: 8px;
    background: #E8E8E8;
    color: #35322F;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link.active {
    background: #FF4800;
    color: white;
}

.page-link:hover:not(.active) {
    background: #D9D9D9;
}
.profile-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    margin: -16px -16px 20px -16px;
    width: calc(100% + 32px);
    position: relative;
}
@media (min-width: 769px) {
    .profile-header {
        margin: -24px -24px 20px -24px;
        width: calc(100% + 48px);
        border-radius: 20px 20px 0 0;
        padding: 30px 20px;
    }
}
@media (max-width: 480px) {
    .profile-header {
        margin: -16px -16px 20px -16px;
        width: calc(100% + 32px);
    }
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    color: #FF4800;
    border: 4px solid rgba(255,255,255,0.3);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
@media (min-width: 769px) {
    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 48px;
        margin: 0 auto 20px;
    }
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}
.profile-avatar:hover .profile-avatar-overlay {
    opacity: 1;
}
.profile-avatar-overlay span {
    color: white;
    font-size: 24px;
}
.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}
@media (min-width: 769px) {
    .profile-name {
        font-size: 28px;
        margin-bottom: 8px;
    }
}
.profile-role {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
}
@media (min-width: 769px) {
    .profile-role {
        font-size: 15px;
        padding: 6px 20px;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
@media (min-width: 769px) {
    .stats-grid {
        gap: 15px;
        margin-bottom: 25px;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        gap: 8px;
    }
}
.stat-box {
    background: #FFF5F0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}
@media (min-width: 769px) {
    .stat-box {
        border-radius: 12px;
        padding: 18px;
    }
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #FF4800;
}
@media (min-width: 769px) {
    .stat-value {
        font-size: 28px;
    }
}
.stat-label {
    font-size: 12px;
    color: #35322F;
    margin-top: 5px;
    opacity: 0.7;
}
@media (min-width: 769px) {
    .stat-label {
        font-size: 13px;
        margin-top: 6px;
    }
}
.team-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
@media (min-width: 769px) {
    .team-card {
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 25px;
    }
}
.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
@media (min-width: 769px) {
    .team-card-header {
        margin-bottom: 16px;
    }
}
.team-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #35322F;
}
@media (min-width: 769px) {
    .team-card-title {
        font-size: 18px;
    }
}
.team-link {
    font-size: 12px;
    color: #FF4800;
    text-decoration: none;
}
@media (min-width: 769px) {
    .team-link {
        font-size: 13px;
    }
}
.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.team-item:last-child {
    border-bottom: none;
}
.team-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
@media (min-width: 769px) {
    .team-name {
        font-size: 15px;
    }
}
.team-city {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
@media (min-width: 769px) {
    .team-city {
        font-size: 12px;
    }
}
.team-members {
    font-size: 11px;
    color: #FF4800;
}
@media (min-width: 769px) {
    .team-members {
        font-size: 12px;
    }
}
.team-empty {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
}
.profile-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 20px;
}
@media (min-width: 769px) {
    .profile-tabs {
        gap: 12px;
        margin-bottom: 25px;
    }
}
.profile-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}
@media (min-width: 769px) {
    .profile-tab {
        padding: 14px;
        font-size: 15px;
    }
}
.profile-tab.active {
    color: #FF4800;
    border-bottom: 2px solid #FF4800;
}
.profile-tab-content {
    display: none;
}
.profile-tab-content.active {
    display: block;
}
.profile-form-group {
    margin-bottom: 20px;
}
@media (min-width: 769px) {
    .profile-form-group {
        margin-bottom: 24px;
    }
}
.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #35322F;
}
@media (min-width: 769px) {
    .profile-form-group label {
        font-size: 14px;
        margin-bottom: 10px;
    }
}
.profile-form-group input,
.profile-form-group select,
.profile-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
}
@media (min-width: 769px) {
    .profile-form-group input,
    .profile-form-group select,
    .profile-form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
}
.profile-form-group input:focus,
.profile-form-group select:focus,
.profile-form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
}
.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
@media (min-width: 769px) {
    .profile-form-row {
        gap: 20px;
        margin-bottom: 24px;
    }
}
.profile-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
@media (min-width: 769px) {
    .profile-btn {
        padding: 12px 24px;
        font-size: 15px;
        border-radius: 10px;
    }
}
.profile-btn-primary {
    background: #FF4800;
    color: white;
    width: 100%;
}
.profile-btn-primary:hover {
    background: #CC3A00;
}
.profile-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.profile-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
@media (min-width: 769px) {
    .profile-alert {
        padding: 14px 18px;
        border-radius: 10px;
        margin-bottom: 24px;
    }
}
.profile-alert button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.profile-alert button:hover {
    opacity: 1;
}
.profile-alert-error {
    background: #FFE5E0;
    color: #FF4800;
    border-left: 3px solid #FF4800;
}
.profile-alert-error button {
    color: #FF4800;
}
.profile-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 3px solid #2E7D32;
}
.profile-alert-success button {
    color: #2E7D32;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: #FF4800;
}
.rating-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.rating-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #E8E8E8;
    border-radius: 10px;
    color: #35322F;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}
.rating-tab.active {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.rating-tab:hover:not(.active) {
    background: #D9D9D9;
}
.podium {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px 8px;
    background: linear-gradient(135deg, #35322F 0%, #2A2724 100%);
    border-radius: 16px;
    color: white;
    width: 100%;
}
.podium-item {
    flex: 1;
    text-align: center;
}
.podium-1 { order: 2; }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #35322F;
    overflow: hidden;
}
.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.podium-1 .podium-avatar {
    width: 64px;
    height: 64px;
    font-size: 28px;
    border: 2px solid #FFD700;
}
.podium-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}
.podium-points {
    font-size: 10px;
    opacity: 0.9;
}
.rating-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #E8E8E8;
}
.rating-row.highlight {
    background: #FFF5F0;
    border-radius: 8px;
    margin: 6px 0;
}
.rating-rank {
    width: 40px;
    font-weight: 700;
    color: #35322F;
    font-size: 13px;
    flex-shrink: 0;
}
.rating-rank.top-1 { color: #FFD700; }
.rating-rank.top-2 { color: #C0C0C0; }
.rating-rank.top-3 { color: #CD7F32; }
.rating-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: hidden;
}
.rating-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rating-info {
    flex: 1;
    min-width: 0;
}
.rating-name {
    font-weight: 500;
    color: #35322F;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rating-streak {
    font-size: 10px;
    color: #FF4800;
    margin-top: 2px;
}
.rating-points {
    font-weight: 700;
    color: #FF4800;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}
.city-rating-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #E8E8E8;
    gap: 10px;
}
.city-rating-item:last-child {
    border-bottom: none;
}
.city-rank {
    width: 36px;
    font-weight: 700;
    font-size: 15px;
    color: #FF4800;
    flex-shrink: 0;
}
.city-info {
    flex: 1;
    min-width: 0;
}
.city-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #35322F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.city-stats {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.city-stats span {
    white-space: nowrap;
}
.city-points {
    font-weight: 700;
    color: #FF4800;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}
.city-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 13px;
}
.rat-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px 80px;
}
.rat-tabs {
    display: flex;
    gap: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    border: 1px solid #E8E8E8;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rat-tab {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    color: #888;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s;
}
.rat-tab.active {
    background: linear-gradient(135deg, #FF4800, #CC3A00);
    color: #fff;
}
.rat-tab:hover:not(.active) {
    background: #F0F0F0;
    color: #35322F;
}
.my-rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #FFF5F0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.my-rank-label {
    font-size: 12px;
    color: #888;
}
.my-rank-val {
    font-size: 22px;
    font-weight: 800;
    color: #FF4800;
}
.podium-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #35322F, #2A2724);
    border-radius: 16px;
    padding: 16px 8px 20px;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}
.pod-item {
    flex: 1;
    text-align: center;
    max-width: 120px;
}
.pod-1 {
    order: 2;
}
.pod-2 {
    order: 1;
}
.pod-3 {
    order: 3;
}
.pod-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #35322F;
    background: #fff;
    overflow: hidden;
    font-size: 18px;
}
.pod-1 .pod-avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
}
.pod-medal {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 4px;
}
.pod-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}
.pod-pts {
    color: rgba(255,255,255,.75);
    font-size: 11px;
    margin-top: 2px;
}
.rat-scroll {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    margin-top: 4px;
}
.rat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #F0F0F0;
}
.rat-row:last-child {
    border-bottom: none;
}
.rat-row.me {
    background: #FFF5F0;
    border-left: 3px solid #FF4800;
}
.rat-num {
    width: 32px;
    font-weight: 800;
    font-size: 13px;
    color: #35322F;
    flex-shrink: 0;
}
.rat-num.g {
    color: #FFD700;
}
.rat-num.s {
    color: #9E9E9E;
}
.rat-num.b {
    color: #CD7F32;
}
.rat-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4800, #CC3A00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}
.rat-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rat-info {
    flex: 1;
    min-width: 0;
}
.rat-name {
    font-weight: 600;
    font-size: 14px;
    color: #35322F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rat-sub {
    font-size: 11px;
    color: #FF4800;
    margin-top: 2px;
}
.rat-pts {
    font-weight: 800;
    color: #FF4800;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}
.tc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #F0F0F0;
}
.tc-row:last-child {
    border-bottom: none;
}
.tc-row.me {
    background: #FFF5F0;
    border-left: 3px solid #FF4800;
}
.tc-rank {
    width: 36px;
    font-weight: 800;
    font-size: 14px;
    color: #FF4800;
    flex-shrink: 0;
}
.tc-rank.g {
    color: #FFD700;
}
.tc-rank.s {
    color: #9E9E9E;
}
.tc-rank.b {
    color: #CD7F32;
}
.tc-info {
    flex: 1;
    min-width: 0;
}
.tc-name {
    font-weight: 600;
    font-size: 14px;
    color: #35322F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-meta {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tc-pts {
    font-weight: 800;
    color: #FF4800;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}
.rat-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.rat-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E8E8E8;
    color: #35322F;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.rat-page-btn.active {
    background: linear-gradient(135deg, #FF4800, #CC3A00);
    color: #fff;
    border-color: transparent;
}
.rat-page-btn:hover:not(.active) {
    background: #F0F0F0;
}
.empty {
    text-align: center;
    padding: 40px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    color: #888;
}
@media (max-width: 420px) {
    .rat-tabs {
        gap: 3px;
    }
    .rat-tab {
        font-size: 11px;
        padding: 7px 6px;
    }
    .rat-name {
        font-size: 13px;
    }
    .rat-pts {
        font-size: 12px;
    }
}
.rules-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #E8E8E8;
    margin-bottom: 20px;
}
@media (min-width: 769px) {
    .rules-card {
        padding: 24px;
        border-radius: 20px;
    }
}
.rules-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #35322F;
}
@media (min-width: 769px) {
    .rules-title {
        font-size: 24px;
    }
}
.rules-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 13px;
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 16px;
}
@media (min-width: 769px) {
    .rules-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }
}
.rules-section {
    margin-bottom: 28px;
}
@media (min-width: 769px) {
    .rules-section {
        margin-bottom: 32px;
    }
}
.rules-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #FF4800;
    border-left: 3px solid #FF4800;
    padding-left: 12px;
}
@media (min-width: 769px) {
    .rules-section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-left: 16px;
    }
}
.rules-block {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}
@media (min-width: 769px) {
    .rules-block {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 14px;
    }
}
.rules-block-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #35322F;
    font-size: 14px;
}
@media (min-width: 769px) {
    .rules-block-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
}
.rules-block-text {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}
@media (min-width: 769px) {
    .rules-block-text {
        font-size: 14px;
    }
}
.rules-block-text p {
    margin-bottom: 6px;
}
.rules-block-text p:last-child {
    margin-bottom: 0;
}
.rules-block-example {
    background: #FFF5F0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #FF4800;
    border-left: 3px solid #FF4800;
}
@media (min-width: 769px) {
    .rules-block-example {
        padding: 12px;
        font-size: 13px;
    }
}
.rules-block-warning {
    background: #FFE5F0;
    border-left: 3px solid #FF4800;
}
.rules-block-example-warning {
    background: #FFE5F0;
    color: #FF4800;
}
.rules-support {
    text-align: center;
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
}
@media (min-width: 769px) {
    .rules-support {
        margin-top: 28px;
        padding: 24px;
        border-radius: 18px;
    }
}
.rules-support p {
    margin-bottom: 16px;
    color: #35322F;
    font-size: 14px;
}
@media (min-width: 769px) {
    .rules-support p {
        font-size: 15px;
        margin-bottom: 20px;
    }
}
.rules-support-btn {
    display: inline-block;
    background: #FF4800;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.rules-support-btn:hover {
    background: #CC3A00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.3);
}
@media (min-width: 769px) {
    .rules-support-btn {
        padding: 12px 32px;
        font-size: 15px;
    }
}
.section-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 20px -20px;
}
.section-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.section-header p {
    opacity: 0.9;
    font-size: 14px;
}
.section-info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
.section-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.section-info-row:last-child {
    border-bottom: none;
}
.section-info-icon {
    width: 40px;
    height: 40px;
    background: #FFF5F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FF4800;
}
.section-info-content {
    flex: 1;
}
.section-info-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}
.section-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #35322F;
}
.section-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}
.section-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.section-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,72,0,0.3);
}
.section-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.section-btn-secondary:hover {
    background: #D9D9D9;
}
.section-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}
.section-btn-outline:hover {
    background: #FFF5F0;
}
.section-btn-disabled {
    background: #E8E8E8;
    color: #999;
    cursor: not-allowed;
}
.section-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.section-member-item:last-child {
    border-bottom: none;
}
.section-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.section-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-member-info {
    flex: 1;
}
.section-member-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
.section-member-date {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.section-member-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #E8F5E9;
    color: #2E7D32;
}
.section-session-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
}
.section-session-card:hover {
    border-color: #FF4800;
}
.section-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-session-title {
    font-weight: 600;
    font-size: 16px;
    color: #35322F;
}
.section-session-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    background: #E8F5E9;
    color: #2E7D32;
}
.section-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    font-size: 12px;
    color: #666;
}
.section-session-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.section-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.section-rules-link {
    display: inline-block;
    margin-top: 8px;
    color: #FF4800;
    text-decoration: none;
    font-size: 12px;
}
.section-rules-link:hover {
    text-decoration: underline;
}
.notify-toggle {
    background: #FF4800;
    color: white;
}
.notify-toggle.active {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #2E7D32;
}
.session-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 20px -20px;
}
.session-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.session-header p {
    opacity: 0.9;
    font-size: 14px;
}
.session-info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
.session-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.session-info-row:last-child {
    border-bottom: none;
}
.session-info-icon {
    width: 40px;
    height: 40px;
    background: #FFF5F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FF4800;
}
.session-info-content {
    flex: 1;
}
.session-info-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}
.session-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #35322F;
}
.session-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}
.session-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.session-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,72,0,0.3);
}
.session-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.session-btn-secondary:hover {
    background: #D9D9D9;
}
.session-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}
.session-btn-outline:hover {
    background: #FFF5F0;
}
.session-btn-disabled {
    background: #E8E8E8;
    color: #999;
    cursor: not-allowed;
}
.session-participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.session-participant-item:last-child {
    border-bottom: none;
}
.session-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.session-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.session-participant-info {
    flex: 1;
}
.session-participant-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
.session-participant-date {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.session-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.lottery-balance {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.lottery-balance-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.lottery-balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.lottery-balance-hint {
    font-size: 11px;
    opacity: 0.8;
}

.lottery-placeholder {
    background: white;
    border-radius: 16px;
    padding: 40px 16px;
    text-align: center;
    border: 1px solid #E8E8E8;
}

.lottery-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.lottery-placeholder-title {
    font-size: 20px;
    color: #35322F;
    margin-bottom: 12px;
}

.lottery-placeholder-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 13px;
}

.lottery-placeholder-badge {
    display: inline-block;
    background: #FFF5F0;
    border-radius: 24px;
    padding: 8px 20px;
    color: #FF4800;
    font-size: 12px;
}

.lottery-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #E8E8E8;
}

.lottery-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.lottery-tab.active {
    background: #FF4800;
    color: white;
}

.lottery-tab-content {
    display: none;
}

.lottery-tab-content.active {
    display: block;
}

.lottery-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}

.lottery-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #35322F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lottery-prize-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
}

.lottery-prize-item:hover {
    border-color: #FF4800;
}

.lottery-prize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.lottery-prize-name {
    font-weight: 600;
    font-size: 16px;
    color: #35322F;
}

.lottery-prize-quantity {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    background: #FFF5F0;
    color: #FF4800;
}

.lottery-prize-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.lottery-prize-price {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #E8F5E9;
    color: #2E7D32;
    margin-bottom: 10px;
}

.lottery-prize-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}

.lottery-prize-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.lottery-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.lottery-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}

.lottery-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,72,0,0.3);
}

.lottery-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}

.lottery-btn-secondary:hover {
    background: #D9D9D9;
}

.lottery-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}

.lottery-btn-outline:hover {
    background: #FFF5F0;
}

.lottery-buy-section {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E8E8E8;
}

.lottery-quantity-input {
    width: 100px;
    padding: 10px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.lottery-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

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

.lottery-ticket-number {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #FF4800;
}

.lottery-ticket-date {
    font-size: 11px;
    color: #666;
}

.lottery-my-tickets {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E8E8E8;
}

.lottery-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lottery-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.lottery-participation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

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

.lottery-participation-prize {
    font-weight: 500;
    font-size: 14px;
}

.lottery-participation-ticket {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

.lottery-participation-date {
    font-size: 11px;
    color: #999;
}

.lottery-winner-badge {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}

@media (max-width: 480px) {
    .lottery-buy-section {
        flex-direction: column;
        align-items: stretch;
    }
    .lottery-quantity-input {
        width: 100%;
    }
    .lottery-btn {
        text-align: center;
    }
    .lottery-prize-actions {
        flex-direction: column;
    }
}
.support-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
.support-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #35322F;
}
.support-form-group {
    margin-bottom: 16px;
}
.support-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #35322F;
    font-size: 13px;
}
.support-form-group input,
.support-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.support-form-group input:focus,
.support-form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
}
.support-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}
.support-btn-primary {
    background: #FF4800;
    color: white;
    width: 100%;
}
.support-btn-primary:hover {
    background: #CC3A00;
}
.support-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.support-alert-error {
    background: #FFE5E0;
    color: #FF4800;
    border-left: 3px solid #FF4800;
}
.support-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 3px solid #2E7D32;
}
.support-ticket {
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}
.support-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.support-ticket-subject {
    font-weight: 600;
    font-size: 15px;
    color: #35322F;
}
.support-ticket-status {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
}
.support-status-open {
    background: #FFF3E0;
    color: #FF9800;
}
.support-status-in_progress {
    background: #E3F2FD;
    color: #1976D2;
}
.support-status-closed {
    background: #E8F5E9;
    color: #2E7D32;
}
.support-ticket-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.support-ticket-response {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
}
.support-ticket-response-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #35322F;
    font-size: 12px;
}
.support-ticket-response-date {
    font-size: 10px;
    color: #999;
    margin-top: 6px;
}
.support-ticket-date {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}
.support-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 13px;
}
.teams-edit-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.teams-edit-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}
.teams-edit-header p {
    font-size: 14px;
    opacity: 0.9;
}
.teams-edit-form {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #E8E8E8;
}
.teams-form-group {
    margin-bottom: 20px;
}
.teams-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #35322F;
    font-size: 13px;
}
.teams-form-group input,
.teams-form-group select,
.teams-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
}
.teams-form-group input:focus,
.teams-form-group select:focus,
.teams-form-group textarea:focus {
    outline: none;
    border-color: #FF4800;
}
.teams-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.teams-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}
.teams-btn-primary {
    background: #FF4800;
    color: white;
}
.teams-btn-primary:hover {
    background: #CC3A00;
}
.teams-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.teams-btn-secondary:hover {
    background: #D9D9D9;
}
.teams-btn-danger {
    background: #FFD4CC;
    color: #FF4800;
}
.teams-btn-danger:hover {
    background: #FF4800;
    color: white;
}
.teams-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.teams-alert-error {
    background: #FFE5E0;
    color: #FF4800;
    border-left: 3px solid #FF4800;
}
.teams-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 3px solid #2E7D32;
}
.team-info-header {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 20px -20px;
}
.team-info-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.team-info-header p {
    opacity: 0.9;
    font-size: 14px;
}
.team-info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #E8E8E8;
}
.team-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.team-info-row:last-child {
    border-bottom: none;
}
.team-info-icon {
    width: 40px;
    height: 40px;
    background: #FFF5F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FF4800;
}
.team-info-content {
    flex: 1;
}
.team-info-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}
.team-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #35322F;
}
.team-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8E8E8;
}
.team-member-item:last-child {
    border-bottom: none;
}
.team-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member-info {
    flex: 1;
}
.team-member-name {
    font-weight: 500;
    font-size: 14px;
    color: #35322F;
}
.team-member-role {
    font-size: 11px;
    color: #FF4800;
    margin-top: 2px;
}
.team-member-date {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.team-member-email {
    font-size: 11px;
    color: #666;
}
.team-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}
.team-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
}
.team-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,72,0,0.3);
}
.team-btn-secondary {
    background: #E8E8E8;
    color: #35322F;
}
.team-btn-secondary:hover {
    background: #D9D9D9;
}
.team-btn-outline {
    background: transparent;
    color: #FF4800;
    border: 1px solid #FF4800;
}
.team-btn-outline:hover {
    background: #FFF5F0;
}
.team-btn-danger {
    background: #FFE5E0;
    color: #FF4800;
}
.team-btn-danger:hover {
    background: #FFD4CC;
}
.team-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.teams-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #E8E8E8;
}
.teams-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}
.teams-tab.active {
    background: #FF4800;
    color: white;
}
.teams-tab-content {
    display: none;
}
.teams-tab-content.active {
    display: block;
}
.teams-section-header {
    margin-bottom: 16px;
}
.teams-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #35322F;
}
.teams-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
}
.teams-card:hover {
    border-color: #FF4800;
    box-shadow: 0 2px 8px rgba(255,72,0,0.1);
}
.teams-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.teams-card-title {
    font-weight: 600;
    font-size: 16px;
    color: #35322F;
}
.teams-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    background: #FFF5F0;
    color: #FF4800;
}
.teams-badge-joined {
    background: #E8F5E9;
    color: #2E7D32;
}
.teams-card-city {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}
.teams-card-desc {
    color: #666;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.4;
}
.teams-card-meta {
    display: flex;
    gap: 16px;
    margin: 8px 0;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .teams-card-meta {
        flex-direction: column;
        gap: 0px;
    }
    .teams-card-actions{
        flex-direction: column;
    }
}
.teams-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.teams-btn-block {
    width: 100%;
}
.teams-empty {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
}
.teams-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.teams-empty p {
    color: #666;
    margin-bottom: 16px;
}
.teams-create-form {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #E8E8E8;
}
.team-captain {
    font-size: 11px;
    color: #FF4800;
    margin-top: 4px;
}
