@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


.profile-page {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
    background: #0f0f11;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px; 
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px; 
    align-items: start;
}

.profile-main {
    min-width: 0;
}



.profile-auth-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.profile-auth-card {
    text-align: center;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
}

.profile-auth-card i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.profile-auth-card h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.profile-auth-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 24px;
}


.profile-sidebar {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    background: #141416;
    border: none;
    border-radius: 12px;
    padding: 24px;
}

.profile-sidebar::-webkit-scrollbar {
    width: 4px;
}
.profile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    transform: translateX(4px);
}

.profile-menu-item.active {
    background: #232326;
    color: #ffffff;
    border-left: none;
    border-radius: 8px;
}

.profile-menu-item i {
    font-size: 18px;
    width: 24px;
    display: flex;
    justify-content: center;
}

.profile-menu-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 16px 0;
}

.profile-menu-item.profile-logout {
    color: rgba(255, 100, 100, 0.9);
}

.profile-menu-item.profile-logout:hover {
    background: rgba(255, 100, 100, 0.08);
    color: rgba(255, 100, 100, 1);
}

.profile-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.profile-sidebar-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    position: relative;
}

.profile-sidebar-avatar img,
.profile-sidebar-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-sidebar-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ed0712 0%, #8b0000 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.profile-sidebar-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-sidebar-rank {
    font-size: 12px;
    color: #7a7a7a;
    margin-top: 2px;
}

.profile-cover-card {
    position: relative;
    background: #141416;
    border: none;
    border-radius: 12px;
    padding: 32px 40px;
    margin-bottom: 32px;
    overflow: hidden;
}



.profile-cover-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 2;
}

.profile-avatar-box {
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-box::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(237, 7, 18, 0.5);
    pointer-events: none;
}

.profile-avatar,
.profile-avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #141416;
    object-fit: cover;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.profile-avatar-box:hover .profile-avatar,
.profile-avatar-box:hover .profile-avatar-fallback {
    transform: scale(1.02);
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ed0712 0%, #8b0000 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}



.profile-cover-text {
    flex: 1;
}

.profile-cover-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.profile-cover-text p {
    font-size: 13px;
    color: #7a7a7a;
    font-weight: 400;
    margin: 0;
}

.badge-member {
    display: inline-flex;
    align-items: center;
    background: rgba(237, 7, 18, 0.15);
    color: #ed0712;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.profile-cover-stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-cover-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.profile-cover-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.profile-cover-stat-label {
    font-size: 12px;
    color: #7a7a7a;
    margin-top: 2px;
}

.profile-cover-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}


.profile-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .profile-card-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.profile-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: #141416;
    border: none;
    border-radius: 12px;
    padding: 28px;
}

.profile-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-card-title i {
    font-size: 18px;
    color: #ed0712;
}

.profile-card-title h2 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}


.profile-inline-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .profile-inline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.profile-edit-full {
    grid-column: 1 / -1;
}

.profile-form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #8d96a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-editable-control {
    position: relative;
    width: 100%;
}

.profile-form-group input,
.profile-form-group select,
.profile-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.profile-form-group input[type="date"] {
    color-scheme: dark;
}

.profile-editable-control select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
}

.profile-form-group input::placeholder,
.profile-form-group textarea::placeholder {
    color: #71717a !important;
    -webkit-text-fill-color: #71717a !important;
}

.profile-form-group input:hover:not(:disabled),
.profile-form-group select:hover:not(:disabled),
.profile-form-group textarea:hover:not(:disabled) {
    background: #18181c !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.profile-form-group input:focus,
.profile-form-group select:focus,
.profile-form-group textarea:focus {
    background: #18181c !important;
    border-color: #ed0712 !important;
    box-shadow: 0 0 0 2px rgba(237, 7, 18, 0.25) !important;
    outline: none;
}

.profile-form-group input:disabled,
.profile-form-group select:disabled,
.profile-form-group textarea:disabled {
    opacity: 1 !important;
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e4e4e7 !important;
    -webkit-text-fill-color: #e4e4e7 !important;
    cursor: default;
    box-shadow: none;
}

.profile-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.profile-page .btn-outline-secondary {
    border-color: #2d2d2d !important;
    color: #8d96a3 !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.profile-page .btn-outline-secondary:hover,
.profile-page .btn-outline-secondary.active {
    background: #ed0712 !important;
    border-color: #ed0712 !important;
    color: #ffffff !important;
}

.profile-page .btn-danger {
    background: #ed0712 !important;
    border-color: #ed0712 !important;
    font-weight: 700;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.profile-page .btn-danger:hover {
    background: #c5060e !important;
    border-color: #c5060e !important;
}

.profile-page .badge {
    background: #111111 !important;
    border: 1px solid #2d2d2d !important;
    color: #ed0712 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.profile-page .badge.bg-secondary {
    color: #8d96a3 !important;
}

.profile-page .text-muted {
    color: #a0aab8 !important;
}

.profile-field-edit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: #8d96a3;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}

.profile-field-edit-btn i {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.profile-field-edit-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-field-edit-btn.is-active {
    background: #ed0712;
    border-color: #ed0712;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(237, 7, 18, 0.4);
    top: 50%;
    transform: translateY(-50%);
}

.profile-editable-control textarea ~ .profile-field-edit-btn {
    top: 10px;
    transform: none;
    right: 10px;
}

.profile-editable-control textarea ~ .profile-field-edit-btn.is-active {
    top: 10px;
    transform: none;
}

.invalid-feedback {
    display: none;
    font-size: 13px;
    color: #ff4757;
    margin-top: 4px;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-invalid {
    border-color: #ff4757 !important;
}


.profile-edit-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.profile-primary-btn,
.profile-password-submit {
    font-family: 'Inter', sans-serif;
    background: #ed0712;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.profile-primary-btn::after,
.profile-password-submit::after {
    display: none;
}

.profile-primary-btn:hover:not(:disabled),
.profile-password-submit:hover:not(:disabled) {
    background: #c5060e;
    transform: none;
    box-shadow: none;
}

.profile-primary-btn:hover:not(:disabled)::after,
.profile-password-submit:hover:not(:disabled)::after {
    display: none;
}

.profile-primary-btn:active:not(:disabled),
.profile-password-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.profile-primary-btn:disabled,
.profile-password-submit:disabled {
    background: #2a2a2a;
    color: #5a5a5a;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.profile-secondary-btn {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.profile-secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.profile-secondary-btn:active:not(:disabled) {
    transform: scale(0.98);
}


.profile-xp-card {
    background: #141416;
    border: none;
    border-left: 3px solid #ed0712;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.profile-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-xp-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-xp-header strong {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ed0712;
}

.profile-xp-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-xp-progress {
    width: var(--profile-progress, 0);
    height: 100%;
    background: #ed0712;
    border-radius: 999px;
    transition: width 0.6s ease;
}

.ticket-card-clickable {
    cursor: pointer;
}

.ticket-status-dot.is-success { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.ticket-status-dot.is-warning { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.ticket-status-dot.is-danger { background: #ed0712; box-shadow: 0 0 6px rgba(237, 7, 18, 0.4); }
.ticket-status-dot.is-neutral { background: #6b7280; box-shadow: 0 0 6px rgba(107, 114, 128, 0.4); }
.ticket-status-label.is-success { color: #22c55e; }
.ticket-status-label.is-warning { color: #f59e0b; }
.ticket-status-label.is-danger { color: #ed0712; }
.ticket-status-label.is-neutral { color: #6b7280; }

#odModalStatus.is-success { background-color: rgba(25, 135, 84, 0.15); color: #198754; }
#odModalStatus.is-warning { background-color: rgba(255, 193, 7, 0.15); color: #ffc107; }
#odModalStatus.is-danger { background-color: rgba(220, 53, 69, 0.15); color: #dc3545; }

.profile-xp-card p {
    font-size: 12px;
    color: #7a7a7a;
    margin: 0;
}


.profile-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid rgba(0, 200, 81, 0.3);
    color: #00c851;
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}


.tickets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tickets-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.tickets-filter-group {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ticket-filter-btn {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
}

.ticket-filter-btn.active {
    background: #ed0712;
    color: #ffffff;
    font-weight: 600;
}

.ticket-filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

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

.ticket-card {
    display: flex;
    background: #1a1a1c;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.ticket-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: #1e1e20;
}

.ticket-poster-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100px;
}

.ticket-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ticket-cancelled-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    background-image: linear-gradient(135deg, rgba(237,7,18,0.6) 0%, rgba(0,0,0,0.55) 100%);
}

.ticket-cancelled-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 6px,
        rgba(0,0,0,0.15) 6px,
        rgba(0,0,0,0.15) 8px
    );
}

.ticket-cancelled-overlay span,
.ticket-cancelled-overlay {
    position: relative;
    z-index: 1;
}

.ticket-body {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.ticket-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ticket-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.ticket-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-formats {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ticket-format-badge {
    background: #2a2a2d;
    color: #c0c0c0;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.ticket-id {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ed0712;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 14px 0 16px;
}

.ticket-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-info-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ticket-info-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #d0d0d0;
    font-weight: 400;
}

.ticket-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.ticket-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ticket-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.ticket-status-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Xem chi tiết button */
.ticket-detail-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d0d0d0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.ticket-detail-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tickets-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.tickets-empty i {
    font-size: 48px;
    color: #ed0712;
    opacity: 0.6;
    display: block;
    margin-bottom: 16px;
}

.tickets-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.tickets-empty p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}


.profile-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ed0712;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(237, 7, 18, 0.3);
    z-index: 100;
}

.profile-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(237, 7, 18, 0.4);
}


.profile-loading {
    opacity: 1;
    pointer-events: none;
}

.profile-skeleton {
    background: linear-gradient(
        90deg,
        #1b1b1b 25%,
        #2a2a2a 50%,
        #1b1b1b 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border: 1px solid #2a2a2a;
}

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


@media (max-width: 991px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        margin-bottom: 24px;
        max-height: none;
    }

    .profile-sidebar-user {
        display: none;
    }

    .profile-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }

    .profile-menu::-webkit-scrollbar {
        display: none;
    }

    .profile-menu-item {
        white-space: nowrap;
        padding: 10px 16px;
    }

    .profile-menu-divider {
        display: none;
    }

    .profile-right-column {
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    .profile-container {
        padding: 0 16px;
    }

    .profile-cover-card {
        padding: 24px;
    }

    .profile-cover-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-cover-stats {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .profile-cover-stat {
        padding: 0 20px;
    }

    .profile-cover-text h1 {
        font-size: 22px;
    }

    .profile-edit-actions {
        flex-direction: column;
    }

    .profile-edit-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-page {
        padding-top: 16px;
    }

    .profile-cover-card {
        padding: 20px;
    }

    .profile-avatar,
    .profile-avatar-fallback {
        width: 80px;
        height: 80px;
    }

    .profile-menu {
        gap: 8px;
    }

    .profile-menu-item {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
        padding: 8px;
    }

    .profile-menu-item span {
        font-size: var(--text-xs);
    }
    
    .tickets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .ticket-card {
        flex-direction: column;
    }
    
    .ticket-poster-wrap {
        width: 100%;
        height: 180px;
    }
    
    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
}

.point-history-table th, .point-history-table td {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: transparent !important;
}
.point-history-table tr:last-child td {
    border-bottom: none;
}
.order-detail-modal-dialog {
    max-width: 900px;
}
.e-ticket-card {
    background: #141416;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.e-ticket-top {
    position: relative;
    height: 180px;
}
.e-ticket-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.e-ticket-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #141416 0%, transparent 100%);
    padding: 30px 20px 15px;
}
.e-ticket-title {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}
.e-ticket-body {
    padding: 20px;
    flex-grow: 1;
}
.e-ticket-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.e-ticket-info-item {
    width: calc(50% - 10px);
}
.e-ticket-info-item.full-width {
    width: 100%;
}
.e-ticket-label {
    display: block;
    color: #8d96a3;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.e-ticket-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.e-ticket-seats-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
}
.e-ticket-seats-val {
    color: #ed0712 !important;
    font-weight: 700;
    margin: 0;
    font-size: 22px;
}
.e-ticket-seat-type-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.e-ticket-barcode-section {
    padding: 0 20px 20px;
    text-align: center;
}
.e-ticket-rip-line {
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 0 -20px 20px;
    position: relative;
}
.e-ticket-rip-line::before, .e-ticket-rip-line::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: #0f0f11;
    border-radius: 50%;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.e-ticket-rip-line::before {
    left: -10px;
}
.e-ticket-rip-line::after {
    right: -10px;
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.e-ticket-barcode-container {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}
.e-ticket-barcode-hint {
    color: #8d96a3;
    font-size: 11px;
}

.invoice-detail-card {
    background: transparent;
}
.invoice-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 24px;
}
.invoice-section-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 15px;
}
.invoice-label {
    color: #8d96a3;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}
.invoice-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.invoice-discount-val {
    color: #22c55e;
    font-weight: 600;
}
.invoice-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.invoice-grand-total span:first-child {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}
.invoice-grand-total span:last-child {
    color: #ed0712;
    font-size: 24px;
    font-weight: 700;
}
.invoice-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    transition: all 0.2s;
}
.invoice-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.invoice-download-btn {
    background: transparent;
    border: none;
    color: #8d96a3;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}
.invoice-download-btn:hover {
    color: #fff;
}

#orderDetailModal .text-muted {
    color: #a5b1c2 !important;
}
#orderDetailModal {
    color: #ffffff !important;
}
#orderDetailModal .btn-close-white {
    filter: invert(1) grayscale(1) brightness(2);
}

.order-detail-action-btn {
    background-color: #1a1a1c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
}
.order-detail-action-btn:hover {
    background-color: #26262b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.order-detail-download-btn {
    color: #ffffff !important;
    transition: color 0.2s ease;
}
.order-detail-download-btn:hover {
    color: #ed0712 !important;
}
.order-detail-outline-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}
.order-detail-outline-btn:hover {
    border-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-1px);
}
.ticket-info strong {
    color: #9ea8b6 !important;
    font-weight: 600;
}
.ticket-info span {
    color: #ffffff !important;
    font-weight: 500;
}


.profile-editable-control {
    position: relative;
}

.profile-editable-control input,
.profile-editable-control select,
.profile-editable-control textarea {
    padding-right: 48px !important;
}

.profile-menu-item:hover i {
    color: #ffffff;
}

.profile-menu-item.active i {
    color: #ed0712;
}

.profile-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}



@media (max-width: 480px) {
    .profile-avatar-box::after {
        display: none;
    }
    .profile-avatar,
    .profile-avatar-fallback {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

.profile-sidebar::-webkit-scrollbar {
    width: 3px;
}
.profile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.profile-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#orderDetailModal .modal-content {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.08);
}


.skel-avatar { width: 56px; height: 56px; flex-shrink: 0; }
.skel-cover-avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.05); }
.skel-title { height: 24px; }
.skel-subtitle { height: 16px; }
.skel-input { height: 48px; width: 100%; }
.skel-label { height: 14px; }
.skel-btn { height: 48px; width: 140px; }
.skel-icon { width: 20px; height: 20px; }
.skel-card-stats { width: 200px; height: 50px; }


.skel-textarea { height: 100px; width: 100%; }
.skel-box { height: 40px; width: 100%; }

.profile-sidebar-user--compact { margin-bottom: 0; }
.profile-menu-divider--section { margin: 16px 0 12px; }
.profile-menu-divider--compact { margin: 8px 0; }
.profile-rank-heading { align-items: center; display: flex; gap: 12px; }
.profile-member-rank { color: #a0a0a0; font-size: 13px; margin: 8px 0 0; }
.profile-card-title--split { align-items: center; display: flex; justify-content: space-between; width: 100%; }
.profile-edit-all-btn { background: none; border: 0; color: #ed0712; cursor: pointer; font-size: 12px; font-weight: 600; padding: 0; }
.profile-password-submit--full { margin-top: 20px; width: 100%; }
.profile-points-total, .profile-points-unit, .profile-points-rank { font-family: 'Inter', sans-serif; }
.profile-points-progress-meta { color: #7a7a7a; display: flex; font-size: 13px; font-weight: 500; justify-content: space-between; margin-bottom: 8px; }
.profile-points-progress { background-color: #2a2a2d; border-radius: 4px; height: 6px; }
.profile-points-progress-bar { border-radius: 4px; width: var(--profile-progress, 0); }
.profile-points-benefits { font-size: 13px; font-weight: 400; line-height: 1.5; }
.profile-history-link { color: #7a7a7a; font-size: 12px; font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.profile-history-link:hover, .profile-history-link:focus-visible { color: #fff; }
.profile-table-scroll { overflow-x: auto; }
.profile-history-heading { border-bottom: 1px solid rgba(255,255,255,0.06); color: #7a7a7a; font-size: 10px; font-weight: 600; letter-spacing: 0.6px; padding: 12px 0; text-transform: uppercase; }
.profile-history-heading--date { width: 30%; }
.profile-history-heading--points { width: 25%; }
.profile-history-empty-icon { color: #444; font-size: 2.5rem; }
.profile-history-empty-copy { font-size: 13px; }
.profile-ticket-empty-icon { color: var(--cinema-danger); font-size: 4rem; }
.profile-order-modal-content { background-color: #0f0f11; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 16px; }
.profile-order-code-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.profile-order-code { font-family: 'Inter', sans-serif; }
.profile-order-status { font-size: 12px; font-weight: 600; }
.profile-order-close { opacity: 0.5; }
.profile-order-close:hover, .profile-order-close:focus-visible { opacity: 1; }
.profile-invoice-grand-total { border-color: rgba(255,255,255,0.06) !important; }
.profile-ticket-skeleton-card { padding: 16px; }
.profile-ticket-skeleton-footer { align-items: center; border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between; margin-top: 8px; padding-top: 16px; }
.profile-skeleton--ticket-poster { height: 130px; width: 90px; }
.profile-skeleton--badge { height: 20px; width: 50px; }
.profile-skeleton--title { height: 24px; width: 40%; }
.profile-skeleton--price { height: 24px; width: 80px; }
.profile-skeleton--line-lg { height: 16px; width: 70%; }
.profile-skeleton--line-md { height: 16px; width: 60%; }
.profile-skeleton--line-sm { height: 16px; width: 50%; }
.profile-skeleton--meta { height: 20px; width: 100px; }
.profile-skeleton--action { height: 32px; width: 110px; }
.profile-skeleton--history-date { height: 16px; width: 80px; }
.profile-skeleton--history-copy { height: 16px; width: 150px; }
.profile-skeleton--history-points { height: 16px; width: 50px; }
.profile-voucher-card { background: linear-gradient(135deg, #1a1a1a 0%, #222 100%); border: 1px solid #2a2a2a; border-left: 4px solid var(--cinema-danger, #e50914); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.profile-voucher-card--skeleton { border-left-color: #2a2a2a; }
.profile-voucher-card__header { align-items: center; display: flex; justify-content: space-between; }
.profile-voucher-card__badge { background: #e50914; border-radius: 20px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 4px 10px; }
.profile-voucher-card__code { color: #e50914; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.profile-voucher-card__title { color: #fff; font-size: 15px; font-weight: 600; }
.profile-voucher-card__description { color: #ccc; font-size: 13px; }
.profile-voucher-card__meta { color: #8d96a3; display: flex; flex-wrap: wrap; font-size: 12px; gap: 16px; }
.profile-voucher-card__actions { margin-top: 4px; }
.voucher-copy-btn { background: transparent; border: 1px solid #333; border-radius: 8px; color: #ccc; cursor: pointer; font-size: 13px; padding: 6px 14px; transition: border-color .2s ease, color .2s ease; }
.voucher-copy-btn:hover, .voucher-copy-btn:focus-visible { border-color: #666; color: #fff; }
.profile-skeleton--voucher-badge { height: 22px; width: 70px; }
.profile-skeleton--voucher-code { height: 22px; width: 90px; }
.profile-skeleton--voucher-title { height: 20px; width: 60%; }
.profile-skeleton--voucher-copy { height: 16px; width: 80%; }
.profile-skeleton--voucher-meta-sm { height: 14px; width: 100px; }
.profile-skeleton--voucher-meta-lg { height: 14px; width: 120px; }
.profile-history-date { font-size: .9rem; }
.profile-history-kind, .profile-invoice-item-meta { font-size: .8rem; }
