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

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

.search-box {
    position: relative;
}

.search-box input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.tab-container {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 12px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.action-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.filter-btn.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.tab-indicator {
    position: absolute;
    bottom: 8px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
}

.tab-button {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tab-button:first-child {
    border-radius: 14px 0 0 14px;
}

.tab-button:last-child {
    border-radius: 0 14px 14px 0;
}

.tab-button:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

.tab-button.active {
    color: #4CAF50;
}

.section {
    margin-bottom: 60px;
}

.card-type-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.card-type-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-type-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-type-option.selected {
    background: rgba(79, 209, 199, 0.15);
    border-color: rgba(79, 209, 199, 0.5);
}

.card-type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.card-type-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    min-height: 200px;
    align-items: start;
}

.user-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.user-card-info {
    flex: 1;
}

.user-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.user-card-status {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-card-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.user-card-status.expired {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.user-card-status.banned {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

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

.user-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.user-card-row:last-child {
    margin-bottom: 0;
}

.user-card-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-card-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-card-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.user-card-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    line-height: 1.5;
}

.user-card-detail strong {
    color: rgba(255, 255, 255, 0.9);
}

.user-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 8px;
}

.card-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.card-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.card-card .user-card-detail:last-child {
    margin-bottom: 0;
}

.card-card .user-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 8px;
}

.playing-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 140px;
}

.playing-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.playing-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.playing-card-body {
    display: flex;
    gap: 10px;
}

.playing-card-poster {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.playing-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playing-card-poster.no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.playing-card-poster.no-poster::before {
    content: '🎬';
}

.playing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.playing-card-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playing-card-progress {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

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

.playing-card-progress.paused .progress-fill {
    background: linear-gradient(90deg, #ff9800, #ffa726);
}

.progress-percent {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 32px;
    text-align: right;
}

.admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn-primary {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
    border: 1px solid rgba(79, 209, 199, 0.3);
}

.admin-btn-primary:hover {
    background: rgba(79, 209, 199, 0.3);
    border-color: rgba(79, 209, 199, 0.5);
}

.admin-btn-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.admin-btn-danger:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

.admin-btn-secondary {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.admin-btn-secondary:hover {
    background: rgba(158, 158, 158, 0.3);
    border-color: rgba(158, 158, 158, 0.5);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    grid-column: 1 / -1;
}

.display-none {
    display: none !important;
}

.global-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.global-toast.success {
    background: rgba(16, 185, 129, 0.9);
}

.global-toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.global-toast.info {
    background: rgba(251, 191, 36, 0.9);
}

.global-toast.warning {
    background: rgba(251, 146, 60, 0.9);
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-box {
        flex: 0 1 auto;
        min-width: 120px;
    }

    .search-box input {
        width: 100%;
        min-width: 120px;
    }

    .tab-container {
        max-width: none;
    }

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

    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }

    .user-card-footer {
        flex-wrap: wrap;
    }

    .action-buttons {
        flex: 1;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }
}
