/* Landing Page */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.landing-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.landing-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pin-form {
    width: 100%;
    max-width: 320px;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

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

.or-divider span {
    padding: 0 1rem;
}

/* Timer Component */
.timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.timer-display {
    font-size: 5rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary);
    line-height: 1;
}

.timer-display.warning {
    color: var(--warning);
}

.timer-display.danger {
    color: var(--danger);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Photo Status List */
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.photo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--dark);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.photo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.photo-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--dark-lighter);
}

.photo-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photo-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
}

/* Manager Dashboard */
.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.manager-event-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-lighter);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.customer-input {
    flex: 1;
}

/* Talent Signing Interface */
.signing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
}

.signing-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

/* ===========================================
   POLISHED SIGNER UI V2
   =========================================== */

.signer-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.75rem;
    padding: 0.75rem;
    position: relative;
}

/* Enhanced Canvas Container */
.photo-canvas-container-v2 {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d1a 100%);
    border-radius: 16px;
    overflow: hidden;
    touch-action: none;
    box-shadow:
        inset 0 2px 20px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.photo-canvas-container-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.photo-canvas {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
}

.signature-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    touch-action: none;
}

.sticker-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sticker-canvas.sticker-mode {
    pointer-events: none;
}

.ui-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.ui-canvas.sticker-mode {
    pointer-events: auto;
    cursor: crosshair;
}

/* Brush Cursor Preview */
.brush-cursor {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease, width 0.1s ease, height 0.1s ease;
    z-index: 100;
}

.brush-cursor.visible {
    opacity: 0.8;
}

/* Modern Toolbar V2 */
.signer-toolbar-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toolbar-section-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toolbar-label-v2 {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 600;
}

.toolbar-divider-v2 {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
    align-self: flex-end;
    margin-bottom: 4px;
}

/* Pen Presets V2 */
/* Color Presets */
.color-presets-v2 {
    display: flex;
    gap: 0.4rem;
}

.color-preset-v2 {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.color-preset-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.color-preset-v2:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.color-preset-v2.active {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--preset-color);
}

/* Glow Presets */
.glow-presets-v2 {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.glow-toggle-v2 {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
}

.glow-toggle-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.glow-toggle-v2:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.glow-toggle-v2.active {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(108, 92, 231, 0.3);
}

.glow-toggle-v2.active .glow-toggle-indicator {
    background: #6c5ce7;
    box-shadow: 0 0 8px #6c5ce7;
}

.glow-preset-v2 {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glow-preset-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.glow-preset-v2:hover:not(.disabled) {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.glow-preset-v2:hover:not(.disabled) .glow-preset-inner {
    box-shadow: 0 0 12px var(--glow-color);
}

.glow-preset-v2.active:not(.disabled) {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--glow-color);
}

.glow-preset-v2.active:not(.disabled) .glow-preset-inner {
    box-shadow: 0 0 12px var(--glow-color);
}

.glow-preset-v2.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* No glow button */
.glow-preset-v2.no-glow {
    background: rgba(60, 60, 60, 0.6);
    border-color: rgba(100, 100, 100, 0.5);
}

.glow-preset-v2.no-glow .no-glow-inner {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    font-weight: 600;
    width: auto;
    height: auto;
}

.glow-preset-v2.no-glow:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.glow-preset-v2.no-glow.active {
    border-color: white;
    transform: scale(1.1);
    background: rgba(80, 80, 80, 0.8);
    box-shadow: none;
}

.glow-preset-v2.no-glow.active .no-glow-inner {
    color: white;
}

/* Legacy pen presets (for backwards compatibility) */
.pen-presets-v2 {
    display: flex;
    gap: 0.5rem;
}

.pen-preset-v2 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pen-preset-inner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pen-preset-v2:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pen-preset-v2:hover .pen-preset-inner {
    box-shadow: 0 0 12px var(--glow-color);
}

.pen-preset-v2.active {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--glow-color);
}

.pen-preset-v2.active .pen-preset-inner {
    box-shadow: 0 0 16px var(--glow-color);
}

/* Size Slider V2 */
.size-slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.size-slider-v2 {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.size-slider-v2::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
    transition: all 0.15s ease;
}

.size-slider-v2::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.6);
}

.size-slider-v2::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

.size-preview-v2 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.size-dot {
    background: white;
    border-radius: 50%;
    transition: all 0.15s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Tool Buttons V2 */
.tool-group-v2 {
    display: flex;
    gap: 0.375rem;
}

.tool-btn-v2 {
    width: 40px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-btn-v2 svg {
    transition: all 0.2s ease;
}

.tool-btn-v2:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.15);
    color: var(--text);
}

.tool-btn-v2:hover svg {
    transform: scale(1.1);
}

.tool-btn-v2.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.25);
    color: white;
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.3);
}

.tool-btn-v2.action-btn {
    background: transparent;
}

.tool-btn-v2.action-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.tool-btn-v2.action-btn.danger:hover {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

/* Slide-out Sticker Panel V2 */
.sticker-panel-v2 {
    position: absolute;
    right: 0.75rem;
    top: 60px;
    width: 260px;
    max-height: calc(100% - 140px);
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sticker-panel-v2.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

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

.sticker-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.panel-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Sticker Upload Zone */
.sticker-upload-zone {
    margin: 0.75rem;
    padding: 1.25rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sticker-upload-zone input {
    display: none;
}

.sticker-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.sticker-upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.2);
    transform: scale(1.02);
}

.sticker-upload-zone .upload-icon {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sticker-upload-zone p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text);
}

.sticker-upload-zone span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sticker Grid V2 */
.sticker-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 100px;
}

.sticker-item-v2 {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticker-item-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.sticker-item-v2:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.sticker-item-v2.selected {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(108, 92, 231, 0.5);
    background: rgba(108, 92, 231, 0.15);
}

.sticker-delete-v2 {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.15s ease;
}

.sticker-item-v2:hover .sticker-delete-v2 {
    opacity: 1;
    transform: scale(1);
}

.sticker-empty-v2 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.sticker-empty-v2 span {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.sticker-panel-hint {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sticker-panel-hint p {
    margin: 0;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Action Buttons V2 */
.signing-actions-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.secondary-actions-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.action-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.action-link svg {
    opacity: 0.7;
}

.upload-link {
    position: relative;
}

.upload-link input {
    display: none;
}

/* Done Button V2 */
.btn-done-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), #8b7cf7);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(108, 92, 231, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-done-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-done-v2:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 6px 24px rgba(108, 92, 231, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-done-v2:hover:not(:disabled)::before {
    left: 100%;
}

.btn-done-v2:active:not(:disabled) {
    transform: translateY(0);
}

.btn-done-v2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-done-v2 .btn-icon {
    display: flex;
    transition: transform 0.2s ease;
}

.btn-done-v2:hover .btn-icon {
    transform: translateX(4px);
}

.btn-done-v2 .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-done-v2.processing .btn-text,
.btn-done-v2.processing .btn-icon {
    display: none;
}

.btn-done-v2.processing .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Legacy styles kept for backward compatibility */
.photo-canvas-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    touch-action: none;
}

.signer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--dark-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.toolbar-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.toolbar-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.pen-presets {
    display: flex;
    gap: 0.375rem;
}

.pen-preset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pen-preset:hover {
    transform: scale(1.15);
}

.pen-preset.active {
    border-color: white;
    transform: scale(1.1);
}

.size-options {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.size-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.size-btn span {
    background: white;
    border-radius: 50%;
    display: block;
}

.size-btn:hover {
    border-color: var(--primary);
}

.size-btn.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.2);
}

.tool-options,
.sticker-options {
    display: flex;
    gap: 0.375rem;
}

.tool-btn {
    width: 36px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.tool-btn:hover {
    border-color: var(--primary);
}

.tool-btn.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.2);
}

.upload-sticker-btn {
    cursor: pointer;
}

/* Sticker Tray */
.sticker-tray {
    background: var(--dark-light);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.sticker-tray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.sticker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
}

.sticker-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease;
}

.sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sticker-item:hover {
    border-color: var(--primary);
}

.sticker-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.sticker-delete {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sticker-item:hover .sticker-delete {
    opacity: 1;
}

.sticker-empty {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

.signing-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.signing-actions .btn {
    flex: 1;
}

.alternative-workflow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--dark-light);
    border-radius: 8px;
    margin-top: 1rem;
}

.alternative-workflow-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.alternative-workflow-buttons {
    display: flex;
    gap: 0.5rem;
}

.alternative-workflow-buttons .btn {
    flex: 1;
}

/* Responsive for Signer V2 */
@media (max-width: 640px) {
    .signer-toolbar-v2 {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .toolbar-divider-v2 {
        display: none;
    }

    .pen-preset-v2 {
        width: 28px;
        height: 28px;
    }

    .pen-preset-inner {
        width: 14px;
        height: 14px;
    }

    .size-slider-v2 {
        width: 60px;
    }

    .size-preview-v2 {
        width: 32px;
        height: 32px;
    }

    .tool-btn-v2 {
        width: 36px;
        height: 32px;
    }

    .sticker-panel-v2 {
        width: calc(100% - 1.5rem);
        right: 0.75rem;
        max-height: 50%;
    }

    .btn-done-v2 {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .action-link span {
        display: none;
    }
}

/* All Done State */
.all-done {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.all-done-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.all-done h2 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

/* PIN Display */
.pin-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--dark);
    border-radius: 12px;
    margin-top: 1rem;
}

.pin-display-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pin-display-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.25rem;
    color: var(--primary);
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
}

.connection-dot.connected {
    background: var(--success);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.modal {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.3s ease;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--dark-light);
    border-radius: 8px;
    border: 1px solid var(--border);
    animation: slideUp 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

/* File Input */
.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 480px) {
    .landing-title {
        font-size: 2rem;
    }

    .timer-display {
        font-size: 4rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
    }
}

/* Landscape mode for signing */
@media (orientation: landscape) and (max-height: 500px) {
    .signing-container {
        flex-direction: row;
    }

    .signing-actions {
        flex-direction: column;
        padding: 0 0 0 1rem;
    }

    .alternative-workflow {
        display: none;
    }
}

/* ===========================================
   VIDEO CALL MEET & GREET INTERFACE
   =========================================== */

/* Video Container */
.video-container {
    position: relative;
    flex: 1 1 auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 50vh;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Video Overlay (for countdown and flash) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Countdown Display */
.countdown-display {
    font-size: 15rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(108, 92, 231, 0.6);
    animation: countdownPulse 1s ease-in-out;
    z-index: 10;
}

@keyframes countdownPulse {
    0% {
        transform: scale(1.5);
        opacity: 0;
    }
    20% {
        transform: scale(1);
        opacity: 1;
    }
    80% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.countdown-display.countdown-urgent {
    color: var(--warning);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(253, 203, 110, 0.8);
    animation: countdownUrgent 1s ease-in-out;
}

@keyframes countdownUrgent {
    0% {
        transform: scale(1.6);
        opacity: 0;
    }
    20% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Flash Effect */
.flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    animation: flashEffect 0.15s ease-out;
    z-index: 20;
}

@keyframes flashEffect {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Video Timer Overlay */
.video-timer {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    z-index: 5;
}

.video-timer span {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary);
}

.video-timer span.warning {
    color: var(--warning);
}

.video-timer span.danger {
    color: var(--danger);
    animation: pulse 1s infinite;
}

/* Video Status Overlay */
.video-status {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 5;
}

.video-status span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Camera Select Dropdown */
.camera-select-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.camera-select {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    max-width: 200px;
}

.camera-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Controls Panel */
.controls-panel {
    background: var(--dark-light);
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.session-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.control-buttons .btn {
    flex: 1;
}

/* Sessions Section */
.sessions-section {
    border-radius: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 0.5rem;
}

.sessions-header h3 {
    margin: 0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Card container */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual session card */
.session-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.session-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 3px 0 0 3px;
    transition: background 0.15s ease;
}

.session-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(22, 33, 62, 0.9);
}

/* Active session: accent border + tinted bg */
.session-card.active {
    border-color: rgba(108, 92, 231, 0.4);
    background: rgba(108, 92, 231, 0.08);
}

.session-card.active::before {
    background: var(--primary);
}

/* Left: text info */
.session-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.session-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.session-card-talent {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Right: time + status badge stacked */
.session-card-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
    flex-shrink: 0;
}

.session-card-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Status badge pill */
.session-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.175rem 0.5rem;
    border-radius: 99px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.session-status-badge.status-signed {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.session-status-badge.status-partial {
    background: rgba(253, 203, 110, 0.12);
    color: var(--warning);
}

.session-status-badge.status-none {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* Dot indicator inside badge */
.session-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-signed .session-status-dot {
    background: var(--success);
}

.status-partial .session-status-dot {
    background: var(--warning);
}

.status-none .session-status-dot {
    background: var(--text-muted);
    opacity: 0.5;
}

/* Empty state */
.sessions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.sessions-empty-icon {
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.sessions-empty-text {
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 600px) {
    .session-card {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .session-card-name {
        font-size: 0.8125rem;
    }
}

/* Responsive adjustments for video interface */
@media (max-width: 600px) {
    .video-timer span {
        font-size: 2rem;
    }

    .countdown-display {
        font-size: 10rem;
    }

    .control-buttons {
        flex-direction: column;
    }

    .session-row {
        flex-direction: column;
    }

    .session-row .form-input {
        width: 100%;
    }
}

@media (max-height: 600px) {
    .video-container {
        min-height: 200px;
        max-height: 50vh;
    }

    .countdown-display {
        font-size: 8rem;
    }
}

/* ===========================================
   TALENT ATTENDEE MENU INTERFACE
   =========================================== */

/* Attendee Menu - Horizontal scrolling list at top */
.attendee-menu {
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.attendee-menu-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.attendee-menu-header h3 {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attendee-list {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.attendee-list::-webkit-scrollbar {
    height: 4px;
}

.attendee-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.attendee-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--dark);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    min-width: 140px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.attendee-item:hover {
    border-color: var(--primary);
    background: var(--dark-lighter);
}

.attendee-item.selected {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.15);
}

.attendee-item.has-pending {
    border-color: var(--warning);
}

.attendee-item.has-pending.selected {
    border-color: var(--primary);
}

.attendee-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.attendee-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendee-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.attendee-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.attendee-badges .badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
}

/* Talent Content Area */
.talent-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--dark);
}

/* Select Attendee Prompt */
.select-attendee-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.select-attendee-prompt h2 {
    color: var(--text);
    margin: 1rem 0 0.5rem;
}

/* Session Photos View */
.session-photos-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.session-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-photos-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.photos-section-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.photos-section-group h4 {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Photo Card */
.photo-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.15s ease;
}

.photo-card.pending {
    border-color: var(--warning);
    cursor: pointer;
}

.photo-card.pending:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-card.signed {
    border-color: var(--success);
}

.photo-card.signed.clickable {
    cursor: pointer;
}

.photo-card.signed.clickable:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-card-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--dark);
    overflow: hidden;
}

.photo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.photo-card.clickable:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card.signed .photo-card-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
}

.photo-card-icon {
    font-size: 2rem;
}

.photo-card-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photo-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.photo-card.pending .photo-card-status {
    color: var(--warning);
}

.photo-card.signed .photo-card-status {
    color: var(--success);
}

.photo-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Signing Modal */
.signing-modal {
    z-index: 1000;
}

.signing-modal-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.signing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.signing-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.signer-modal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Responsive adjustments for talent interface */
@media (min-width: 768px) {
    .signing-modal-content {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 16px;
        margin: auto;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .attendee-item {
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .photo-card-info {
        padding: 0.5rem;
    }
}

/* ===========================================
   ADMIN DASHBOARD
   =========================================== */

.admin-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--dark-light);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.15);
}

.tab-content {
    display: none;
}

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

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* Admin Table */
.table-container {
    overflow-x: auto;
    background: var(--dark-light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--dark);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

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

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table code {
    background: var(--dark);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8125rem;
}

.admin-table .loading,
.admin-table .empty,
.admin-table .error {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}

.admin-table .error {
    color: var(--danger);
}

/* Small buttons for table actions */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Form row (two columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Badge colors */
.badge-primary {
    background: var(--primary);
}

.badge-danger {
    background: var(--danger);
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table {
        font-size: 0.8125rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   MANAGER DASHBOARD (Event Selection)
   =========================================== */

.manager-dashboard {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.dashboard-actions {
    margin-bottom: 1.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.event-card-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-card-pins {
    display: flex;
    gap: 1rem;
}

.pin-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pin-small .pin-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.pin-small code {
    font-family: monospace;
    font-size: 0.875rem;
    background: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive event cards */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-card-meta {
        justify-content: center;
    }

    .event-card-pins {
        justify-content: center;
    }

    .event-card-actions {
        justify-content: center;
    }
}

/* ===========================================
   MANAGER ATTENDEES MODAL
   =========================================== */

.attendees-modal-content {
    width: 95vw;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.attendees-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.attendees-modal-header h2 {
    margin: 0;
}

.attendees-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.attendees-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-shrink: 0;
    background: var(--dark);
}

.attendee-sidebar-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.attendee-sidebar-item:hover {
    background: var(--dark-lighter);
}

.attendee-sidebar-item.selected {
    background: rgba(108, 92, 231, 0.15);
    border-left: 3px solid var(--primary);
}

.attendee-sidebar-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.attendee-sidebar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.attendees-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.session-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.session-photos-header h3 {
    margin: 0;
}

.photos-grid-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-card-manager {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.photo-card-manager .photo-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--dark-light);
}

.photo-card-manager .photo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card-manager .photo-card-info {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.photo-card-manager .photo-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.photo-card-manager .photo-card-actions {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.photo-card-manager .photo-card-actions .btn {
    flex: 1;
}

/* Responsive attendees modal */
@media (max-width: 768px) {
    .attendees-modal-content {
        width: 100vw;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .attendees-modal-body {
        flex-direction: column;
    }

    .attendees-sidebar {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .attendees-content {
        height: 60%;
    }

    .photos-grid-manager {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Talent Row */
.talent-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.talent-row .form-select {
    flex: 1;
}

/* Talent Management Modal */
.talent-add-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.talent-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.talent-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.talent-list-item:last-child {
    border-bottom: none;
}

.talent-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.talent-list-name {
    font-weight: 500;
}

.talent-list-pin {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.talent-list-actions {
    display: flex;
    gap: 0.5rem;
}

/* Talent Pins Section in PINs Modal */
.talents-pins-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.talent-pin-display {
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.talent-pin-display .pin-display-label {
    font-size: 0.85rem;
}

.talent-pin-display .pin-display-value {
    font-size: 1rem;
}

/* Attendee sidebar talent name */
.attendee-sidebar-talent {
    font-size: 0.8rem;
    color: var(--primary);
    font-style: italic;
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.fullscreen-btn:hover {
    background: #eee;
}

/* Fullscreen video container styles */
.video-container:fullscreen {
    background: black;
    width: 100vw;
    height: 100vh;
    max-height: none;
}

.video-container:fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-container:fullscreen .video-timer {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: none;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    opacity: 1;
}

.video-container:fullscreen .video-timer #timer-display,
.video-container:fullscreen .video-timer span {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-container:fullscreen .video-timer span.warning {
    color: var(--warning);
}

.video-container:fullscreen .video-timer span.danger {
    color: var(--danger);
}

.video-container:fullscreen .video-status {
    bottom: 2rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    transition: opacity 0.3s;
}

.video-container:fullscreen .video-status.auto-hide {
    opacity: 0;
    pointer-events: none;
}

.video-container:fullscreen .video-status span {
    font-size: 1.5rem;
    color: white;
}

/* Hide elements during photo capture (but keep timer and status visible) */
.video-container.capturing .overlay-action-btn {
    display: none !important;
}

/* Keep status visible and don't auto-hide during capture */
.video-container.capturing .video-status {
    opacity: 1 !important;
}

.video-container.capturing .video-status.auto-hide {
    opacity: 1 !important;
}

/* Fullscreen Name Input Overlay */
.fullscreen-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.fullscreen-input-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;
}

.fullscreen-name-input {
    font-size: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
}

.fullscreen-name-input:focus {
    outline: none;
    border-color: var(--primary);
}

.fullscreen-input-actions {
    display: flex;
    gap: 1rem;
}

.fullscreen-input-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.video-container:fullscreen .countdown-display {
    font-size: 20rem;
}

.video-container:fullscreen .camera-select-wrapper {
    display: none;
}

.video-container:fullscreen .fullscreen-btn {
    display: none;
}

/* Overlay Action Buttons (Start/Capture in fullscreen) */
.overlay-action-btn {
    display: none !important;
}

.video-container:fullscreen .overlay-action-btn,
.video-container.is-fullscreen .overlay-action-btn {
    display: inline-flex !important;
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.video-container:fullscreen .overlay-action-btn.hidden,
.video-container.is-fullscreen .overlay-action-btn.hidden {
    display: none !important;
}

.video-container:fullscreen .overlay-action-btn:hover,
.video-container.is-fullscreen .overlay-action-btn:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Hide overlay buttons when UI is hidden or during capture */
.video-container.ui-hidden .overlay-action-btn,
.video-container.capturing .overlay-action-btn {
    display: none !important;
}

/* Auto-hide overlay after inactivity */
.video-container.overlay-auto-hidden .overlay-action-btn,
.video-container.overlay-auto-hidden .video-status {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-container:fullscreen .overlay-action-btn,
.video-container:fullscreen .video-timer,
.video-container:fullscreen .video-status,
.video-container.is-fullscreen .overlay-action-btn,
.video-container.is-fullscreen .video-timer,
.video-container.is-fullscreen .video-status {
    transition: opacity 0.3s ease;
}

/* Keyboard Hints - shown below video, outside camera view for TV display */
.keyboard-hints {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
}

.keyboard-hints .hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: opacity 0.2s;
}

.keyboard-hints .hint.hint-disabled {
    opacity: 1;
}

.keyboard-hints .hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.15rem 0.4rem;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

/* Fullscreen Talent Warning Box */
.fullscreen-warning-box {
    text-align: center;
    max-width: 400px;
}

.fullscreen-warning-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: black;
}

.fullscreen-warning-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fullscreen-warning-message {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Input Error State */
.input-error {
    border-color: var(--danger) !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* ===========================================
   ADMIN SETTINGS & AUDIT LOGS
   =========================================== */

/* Admin Header with email */
.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-email {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Settings Container */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
}

.settings-section {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.settings-section h3 {
    margin: 0 0 1.5rem;
    font-size: 1.125rem;
    color: var(--text);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Audit Logs Table */
.admin-table .details-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--dark-light);
    border-radius: 0 0 12px 12px;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive settings */
@media (max-width: 768px) {
    .settings-container {
        grid-template-columns: 1fr;
    }

    .admin-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .admin-email {
        font-size: 0.75rem;
    }

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