/* Shop Button Styling */
.btn-shop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #b8960c 0%, #8a6f09 100%);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 150, 12, 0.2);
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 150, 12, 0.4);
    background: linear-gradient(135deg, #c9a617 0%, #9b7d0a 100%);
}

.btn-shop i {
    font-size: 16px;
}

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

:root {
    --active-ratio: 2.5fr;
    --inactive-ratio: 1fr;
}

/* ===== DYNAMIC GRID SYSTEM ===== */
.members-grid-container {
    height: calc(100vh - 140px);
    /* Increased offset to prevent bottom cutoff */
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    /* Ensure strict containment */
    grid-template-rows: 1fr 1fr;
    gap: 12px;

    transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: grid-template-columns, grid-template-rows;
}

/* Header Date Pill */
.header-date {
    padding: 8px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-date i {
    color: var(--gold);
}

/* Grid Cell Base */
.grid-cell {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    /* Removed transition: all to prevent expensive layout animations on children */
    display: flex;
    flex-direction: column;
}

.grid-cell:hover {
    border-color: rgba(184, 150, 12, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Cell Header */
.cell-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cell-header .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cell-header .icon.gold {
    background: rgba(184, 150, 12, 0.15);
    color: var(--gold);
}

.cell-header .icon.green {
    background: rgba(5, 150, 105, 0.15);
    color: var(--success);
}

.cell-header .icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.cell-header .icon.orange {
    background: rgba(217, 119, 6, 0.15);
    color: var(--warning);
}

.cell-header .title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.cell-header .badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.15);
    color: var(--success);
}

/* ===== CELL CONTENT & PREVIEW SYSTEM ===== */

/* Cell Content - Hidden by default, shown when active */
.cell-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: none;
}

/* Cell Preview - Shown by default, hidden when active */
.cell-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(184, 150, 12, 0.1);
    border: 2px solid rgba(184, 150, 12, 0.3);
    color: var(--gold);
    transition: all 0.3s;
}

.preview-icon.scan {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.preview-icon.member {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.preview-icon.directory {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.preview-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Special override for Who's In - Always shows content */
[data-pos="top-left"] .cell-content {
    display: flex;
    flex-direction: column;
    padding: 0 12px 12px;
}


/* Inactive Overlay for Scan Entry */
/* Inactive Overlay Shared Styles */
[data-pos="top-right"]:not(.active)::after,
[data-pos="bottom-left"]:not(.active)::after,
[data-pos="bottom-right"]:not(.active)::after {
    position: absolute;
    top: 50px;
    /* Below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.2s;
    pointer-events: none;
    /* Let click pass to grid-cell to activate */
}

/* Specific Content Strings */
[data-pos="top-right"]:not(.active)::after {
    content: "Click to Scan";
}

[data-pos="bottom-left"]:not(.active)::after {
    content: "Click to Register";
}

[data-pos="bottom-right"]:not(.active)::after {
    content: "Click to Search";
}

/* Hide scan buttons when inactive to keep it clean */
[data-pos="top-right"]:not(.active) .scan-buttons {
    display: none;
}

/* Disable interaction on bottom panels when inactive */
[data-pos="bottom-left"]:not(.active) .cell-content,
[data-pos="bottom-right"]:not(.active) .cell-content {
    pointer-events: none;
}

[data-pos="top-right"]:not(.active) .camera-status {
    display: none;
}

/* Show content when active for others */
.grid-cell.active .cell-content {
    display: block;
}

/* Active cell: hide preview, show content */
.grid-cell.active .cell-preview {
    display: none;
}

.grid-cell.active .cell-content {
    display: flex;
    flex-direction: column;
}

/* Inactive cells: show preview, hide content */
.grid-cell:not(.active) .cell-preview {
    display: flex;
}

.grid-cell:not(.active) .cell-content {
    display: none;
}

/* Inactive State for Who's In */
/* Keep original layout, just clip with overflow */
[data-pos="top-left"]:not(.active) .minimize-btn,
[data-pos="bottom-left"]:not(.active) .minimize-btn,
[data-pos="bottom-right"]:not(.active) .minimize-btn,
[data-pos="top-right"]:not(.active) .minimize-btn {
    display: none;
}

/* ===== PREVIEW WIDGETS ===== */
.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.preview-item .av {
    width: 24px;
    height: 24px;
    background: rgba(184, 150, 12, 0.12);
    color: var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.preview-item .nm {
    color: var(--text-primary);
    font-weight: 500;
}

.preview-item .mt {
    color: var(--text-muted);
    margin-left: auto;
    font-size: 10px;
}

.preview-hint {
    margin-top: auto;
    text-align: center;
    font-size: 10px;
    color: var(--text-dim);
    padding: 8px;
}

.preview-hint i {
    margin-right: 4px;
}

/* QR Preview */
.qr-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    min-height: 80px;
}

.qr-preview i {
    font-size: 32px;
    color: var(--gold);
    opacity: 0.6;
}

/* Plan Preview - Larger for New Member */
[data-pos="bottom-left"] .plan-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
}

[data-pos="bottom-left"] .plan-mini {
    padding: 16px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

[data-pos="bottom-left"] .plan-mini .pn {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

[data-pos="bottom-left"] .plan-mini .pp {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

/* ===== EXPANDED LAYOUT STATES ===== */
/* When top-left is active */
/* When top-left is active */
/* When top-left is active */
.members-grid-container[data-active="top-left"] {
    grid-template-columns: var(--active-ratio) var(--inactive-ratio);
    grid-template-rows: var(--active-ratio) var(--inactive-ratio);
}

.members-grid-container[data-active="top-left"] [data-pos="top-left"] {
    grid-area: 1 / 1 / 2 / 2;
}

.members-grid-container[data-active="top-left"] [data-pos="top-right"] {
    grid-area: 1 / 2 / 2 / 3;
}

.members-grid-container[data-active="top-left"] [data-pos="bottom-left"] {
    grid-area: 2 / 1 / 3 / 2;
}

.members-grid-container[data-active="top-left"] [data-pos="bottom-right"] {
    grid-area: 2 / 2 / 3 / 3;
}

/* When top-right is active */
.members-grid-container[data-active="top-right"] {
    grid-template-columns: var(--inactive-ratio) var(--active-ratio);
    grid-template-rows: var(--active-ratio) var(--inactive-ratio);
}

.members-grid-container[data-active="top-right"] [data-pos="top-left"] {
    grid-area: 1 / 1 / 2 / 2;
}

.members-grid-container[data-active="top-right"] [data-pos="top-right"] {
    grid-area: 1 / 2 / 2 / 3;
}

.members-grid-container[data-active="top-right"] [data-pos="bottom-left"] {
    grid-area: 2 / 1 / 3 / 2;
}

.members-grid-container[data-active="top-right"] [data-pos="bottom-right"] {
    grid-area: 2 / 2 / 3 / 3;
}

/* When bottom-left is active */
.members-grid-container[data-active="bottom-left"] {
    grid-template-columns: var(--active-ratio) var(--inactive-ratio);
    grid-template-rows: var(--inactive-ratio) var(--active-ratio);
}

.members-grid-container[data-active="bottom-left"] [data-pos="top-left"] {
    grid-area: 1 / 1 / 2 / 2;
}

.members-grid-container[data-active="bottom-left"] [data-pos="top-right"] {
    grid-area: 1 / 2 / 2 / 3;
}

.members-grid-container[data-active="bottom-left"] [data-pos="bottom-left"] {
    grid-area: 2 / 1 / 3 / 2;
}

.members-grid-container[data-active="bottom-left"] [data-pos="bottom-right"] {
    grid-area: 2 / 2 / 3 / 3;
}

/* When bottom-right is active */
.members-grid-container[data-active="bottom-right"] {
    grid-template-columns: var(--inactive-ratio) var(--active-ratio);
    grid-template-rows: var(--inactive-ratio) var(--active-ratio);
}

.members-grid-container[data-active="bottom-right"] [data-pos="top-left"] {
    grid-area: 1 / 1 / 2 / 2;
}

.members-grid-container[data-active="bottom-right"] [data-pos="top-right"] {
    grid-area: 1 / 2 / 2 / 3;
}

.members-grid-container[data-active="bottom-right"] [data-pos="bottom-left"] {
    grid-area: 2 / 1 / 3 / 2;
}



.members-grid-container[data-active="bottom-right"] [data-pos="bottom-right"] {
    grid-area: 2 / 2 / 3 / 3;
}

/* Active cell shows full content */
.grid-cell.active .cell-preview {
    display: none;
}

.grid-cell.active .cell-content {
    display: flex;
    flex-direction: column;
}

.grid-cell.active {
    border-color: var(--gold);
}




/* ===== FULL CONTENT STYLES ===== */
.search-box {
    position: relative;
    margin-bottom: 12px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 12px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

/* Who's In List - Columnar Layout */
#whosInContent .member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    /* Space for scrollbar */
}

#whosInContent .member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 12px;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    /* Limit height */
}

.whos-in-search {
    padding: 0 12px 12px;
}

.whos-in-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    /* Reduced vertical padding */
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    box-sizing: border-box;
    /* Fix width overflow */
}

.whos-in-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.whos-in-search .search-wrapper i {
    position: absolute;
    left: 14px;
    /* Closer to edge */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    margin: 0;
    /* Reset margins */
}

/* Relative wrapper for search icon */
.whos-in-search .search-wrapper {
    position: relative;
}

/* Remove specific overrides if generic selector serves */

.member-list-header {
    display: grid;
    grid-template-columns: 48px 2fr 1.2fr 1.2fr 120px;
    /* Balanced proportions */
    padding: 0 16px 8px 16px;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-list-header div:nth-child(4) {
    /* padding-left removal for alignment */
}

.member-list-header div:last-child {
    display: none;
}

#whosInContent .member-item {
    display: grid;
    grid-template-columns: 48px 2fr 1.2fr 1.2fr 120px;
    /* Match balanced */
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

/* Smooth transition for content appearance */
.cell-content {
    transition: opacity 0.3s ease;
}

/* Hover Effect: Highlight entire row instead of button */
/* Hover Effect: Highlight entire row */
#whosInContent .member-item:hover {
    transform: scale(1.01);
    /* Reduced scale */
    border-color: var(--gold);
    background: var(--bg-secondary);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* transform-origin handled in base class */
}

/* Inactive Overlay for Who's In */
[data-pos="top-left"]:not(.active)::after {
    content: "Click to Manage";
    position: absolute;
    top: 60px;
    /* Below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 10;
    opacity: 0;
    /* Initially hidden or always visible? User said "semi-visible dark div that covers" */
    transition: opacity 0.2s;
}

[data-pos="top-left"]:not(.active):hover::after {
    opacity: 1;
    /* Show text on hover, always darken? */
}

/* Make dark overlay always visible but text on hover? 
           User: "semi-visible dark div that covers... not header"
           Let's make bg always visible, text on hover.
        */
[data-pos="top-left"]:not(.active)::after {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

#whosInContent .member-item .avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
    background: rgba(184, 150, 12, 0.12);
    color: var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

#whosInContent .member-item .col-info {
    display: flex;
    flex-direction: column;
}

#whosInContent .member-item .col-info .main-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#whosInContent .member-item .col-info .sub-text {
    color: var(--text-muted);
    font-size: 11px;
}

#whosInContent .action-btn-left {
    width: 100%;
    padding: 8px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#whosInContent .action-btn-left:hover {
    background: var(--danger);
    color: white;
    /* Disabled default scale/translate transform on hover as row handles it */
    transform: none;
}

/* Increase Header Font and Size only for Who's In Panel Content */
.grid-cell[data-pos="top-left"] .cell-header .title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.grid-cell[data-pos="top-left"] .cell-header {
    padding-bottom: 12px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Updated Modal Styles */
.custom-modal {
    background: #18191a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
    font-size: 14px;
}

.modal-btn.confirm:hover {
    background: #000;
    color: #fff;
    border: 1px solid var(--gold);
}

/* Active Indicator */
.active-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 150, 12, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    margin-left: 20px;
    /* Added spacing from title */
}

.active-indicator i {
    font-size: 14px;
}

/* Minimize Button */
.minimize-btn {
    position: absolute;
    top: 16px;
    /* Aligned with header padding */
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 10;
}

.minimize-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.grid-cell.active .minimize-btn {
    opacity: 1;
    visibility: visible;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    /* More rounded */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    /* Prevent layout shift */
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.modal-btn.cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.modal-btn.cancel:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.modal-btn.confirm {
    background: #fff;
    color: #000;
}

.modal-btn.confirm:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-btn.cancel {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.modal-btn.cancel:hover {
    background: var(--border);
    color: var(--text-primary);
}

.modal-btn.confirm {
    background: var(--gold);
    color: black;
}

.modal-btn.confirm:hover {
    background: #000;
    /* Black background on hover */
    color: #fff;
    /* White text on hover */
    border: 1px solid var(--gold);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.plan-card {
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.plan-card:hover {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.08);
}

.plan-card.selected {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.2);
    /* Stronger background */
    box-shadow: 0 0 0 2px rgba(184, 150, 12, 0.3);
    /* Ring effect */
}

.plan-card .plan-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-card .plan-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 4px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    margin-top: auto;
    margin-top: auto;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    transform: none;
}

.btn-primary:hover {
    transform: none;
}

.camera-view {
    height: 180px;
    background: #0a0a0a;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.camera-view .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% {
        top: 0;
    }

    50% {
        top: calc(100% - 2px);
    }

    100% {
        top: 0;
    }
}

.camera-view .hint {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 20px;
    margin-bottom: 6px;
    opacity: 0.4;
    display: block;
}

.empty-state p {
    font-size: 11px;
}

/* ===== SCAN ENTRY MODERN LAYOUT ===== */
.scan-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

.scan-camera-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.camera-container {
    flex: 1;
    background: #0a0a0a;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-container .scan-overlay {
    position: absolute;
    inset: 20px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    opacity: 0.6;
}

.camera-container .scan-overlay::before,
.camera-container .scan-overlay::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.camera-container .scan-overlay::before {
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
}

.camera-container .scan-overlay::after {
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
}

.camera-container .scan-beam {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: beamScan 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold);
}

@keyframes beamScan {

    0%,
    100% {
        top: 25px;
        opacity: 0.8;
    }

    50% {
        top: calc(100% - 25px);
        opacity: 1;
    }
}

.camera-container .camera-status {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.camera-container .camera-status .dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.scan-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.scan-btn {
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.scan-btn.success {
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.scan-btn.success:hover {
    background: rgba(5, 150, 105, 0.25);
}

.scan-btn.fail {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.scan-btn.fail:hover {
    background: rgba(220, 38, 38, 0.25);
}

/* Result Panel */
.scan-result-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-panel {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.result-panel.waiting {
    color: var(--text-muted);
}

.result-panel.waiting i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.result-panel.waiting p {
    font-size: 12px;
}

.result-panel.success {
    border-color: var(--success);
    background: rgba(5, 150, 105, 0.08);
}

.result-panel.error {
    border-color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
}

.result-member {
    width: 100%;
}

/* Scan Card Styles */
.scan-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid var(--border);
    width: 100%;
}

.scan-card.inactive {
    border-color: var(--danger);
}

.sc-status {
    text-align: center;
    background: var(--bg-tertiary);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    align-self: center;
    width: fit-content;
    margin-bottom: 4px;
}

.sc-status.active {
    background: rgba(5, 150, 105, 0.2);
    color: var(--success);
}

.sc-status.inactive {
    background: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

.sc-image {
    width: 250px;
    height: 250px;
    /* Fixed square */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-shrink: 0;
}

.sc-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show whole photo */
}

.sc-details {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.sc-box {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sc-box .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-box .val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.sc-box .expired-text {
    color: var(--danger);
}

.result-error {
    width: 100%;
}

.result-error i {
    font-size: 40px;
    color: var(--danger);
    margin-bottom: 12px;
}

.result-error .error-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 4px;
}

.result-error .error-msg {
    font-size: 11px;
    color: var(--text-muted);
}

/* Action Buttons */
.scan-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.allow-entry-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.2s;
}

.allow-entry-btn:not([disabled]).success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.allow-entry-btn:not([disabled]).warning {
    background: #f59e0b;
    /* Orange */
    color: #fff;
    border-color: #f59e0b;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.allow-entry-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    border-color: var(--text-muted);
}

.allow-entry-btn.secondary:hover {
    background: var(--border);
}



.allow-entry-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== NEW MEMBER MULTI-STATE UI ===== */
.new-member-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nm-state {
    display: none;
    flex-direction: column;
    height: 100%;
}

.nm-state.active {
    display: flex;
}

/* Choice Cards */
.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.choice-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.choice-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.choice-card .choice-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.choice-card .choice-icon.daily {
    background: rgba(217, 119, 6, 0.15);
    color: var(--warning);
}

.choice-card .choice-icon.membership {
    background: rgba(5, 150, 105, 0.15);
    color: var(--success);
}

.choice-card .choice-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.choice-card .choice-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.choice-card .choice-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Form Styles */
.nm-form-split-layout {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 16px;
    margin-bottom: 12px;
    align-items: stretch;
}

.nm-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.nm-form-group {
    margin-bottom: 0;
    width: 100%;
}

.nm-form-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nm-form-group input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    box-sizing: border-box;
}

.nm-form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.nm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    cursor: pointer;
}

.nm-back-link:hover {
    color: var(--gold);
}

/* QR Display */
.qr-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.qr-box {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.qr-box i {
    font-size: 80px;
    color: #222;
}

.qr-member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.qr-member-type {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

.qr-expires {
    font-size: 10px;
    color: var(--text-muted);
}

/* Modern Daily Pass UI */
.nm-modern-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    /* Reduced padding */
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Reduced gap */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    max-height: 100%;
    /* Prevent overflow */
    overflow-y: auto;
    /* Allow scrolling if needed */
}

.nm-card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nm-card-header .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
}

.nm-card-header .icon-circle.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.nm-card-header .icon-circle.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.nm-card-header h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.nm-card-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.nm-form-group .input-wrapper {
    position: relative;
}

.nm-form-group .input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.nm-form-group .input-wrapper input {
    padding-left: 40px;
    /* Space for icon */
    height: 48px;
    /* Taller input */
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    font-size: 14px;
}

.nm-form-group .input-wrapper input:focus {
    background: var(--bg-primary);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 12, 0.15);
}

.nm-form-group .input-wrapper input.input-error {
    border-color: var(--danger);
    background: rgba(220, 38, 38, 0.05);
}

.error-message {
    color: var(--danger);
    font-size: 10px;
    margin-top: 4px;
    margin-left: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Photo Upload */
.photo-upload-container {
    position: relative;
    height: 100%;
}

.photo-upload-mini {
    width: 100%;
    height: 180px;
    /* Increased height by ~15% */
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    flex-direction: column;
    text-align: center;
}

.photo-upload-mini:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.photo-upload-mini i {
    font-size: 24px;
    margin-bottom: 4px;
}

.photo-upload-mini.has-photo {
    border-style: solid;
    padding: 0;
    height: 180px;
    min-height: unset;
}

.remove-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: 2px solid var(--bg-primary);
    /* Border to separate from image */
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.remove-photo-btn:hover {
    transform: scale(1.1);
}

.photo-upload-mini .photo-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    margin: 0;
}

.photo-upload-mini input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

/* Status Dropdown */
.status-dropdown {
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
}

.status-dropdown:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===== PENDING MEMBERSHIPS ===== */
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.pending-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.pending-modal.active {
    display: flex;
}

.pending-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pending-modal-header {
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pending-modal-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

.pending-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.pending-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.pending-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
}

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

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

.pending-card-photo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 24px;
    overflow: hidden;
}

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

.pending-card-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.pending-card-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0;
}

.pending-card-actions {
    display: flex;
    gap: 8px;
}

.pending-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pending-btn.approve {
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.pending-btn.reject {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.pending-btn:hover {
    opacity: 0.8;
}

.pending-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.pending-empty i {
    font-size: 32px;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
}

/* ===== MEMBER DIRECTORY PANEL STYLES ===== */

/* Container for each state */
.dir-search-container,
.dir-result-container,
.dir-not-found-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
}

/* Card base */
.dir-search-card,
.dir-result-card,
.dir-not-found-card {
    background: rgba(18, 18, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Titles */
.dir-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.dir-title.error {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Form */
.dir-form-group {
    margin-bottom: 24px;
}

.dir-search-card .input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.dir-search-card .input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 150, 12, 0.1);
}

.dir-search-card .input-wrapper i {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s;
}

.dir-search-card .input-wrapper:focus-within i {
    color: var(--gold);
}

.dir-search-card .input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.dir-search-card .input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Member Result Layout - Compact Horizontal (Scaled Up & Unified) */
.dir-result-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: auto;
    min-width: 550px;
    /* Stretch card */
    background: rgba(18, 18, 20, 0.8);
    /* Unified card background */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px 32px;
    /* Inner spacing */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dir-member-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
    flex: 1;
}

.dir-member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
}

/* Status ring around photo */
.dir-member-photo::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.dir-member-photo i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.2);
}

.dir-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dir-member-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.dir-info-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.dir-value.name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.dir-meta-grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: auto;
    background: none;
    border-radius: 0;
    padding: 0;
    border: none;
}

.dir-info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    /* Prevent wrapping */
}

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

.dir-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.dir-status-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    line-height: 1;
}

.dir-status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dir-status-badge.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Action Buttons */
.dir-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    min-width: 120px;
}

.dir-btn {
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    height: 42px;
    white-space: nowrap;

}

.dir-btn.secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dir-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.dir-btn.primary {
    background: var(--gradient-gold);
    color: #000;
}

.dir-btn.primary:hover {
    opacity: 0.9;
}

.dir-btn.renew {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.dir-btn.renew:hover {
    opacity: 0.9;
}

/* Not Found Message */
.dir-not-found-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dir-not-found-message span {
    font-weight: 700;
    color: var(--text-primary);
}

.dir-not-found-card .dir-btn {
    width: 100%;
}

/* QR Code Modal for Directory */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.qr-modal.active {
    display: flex;
}

.qr-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
}

.qr-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.qr-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.qr-modal-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.qr-code-display {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-member-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.sidebar-toggle.collapsed .sidebar-chevron {
    transform: rotate(-90deg);
}

/* ========================================
   GLASSMORPHIC REGISTRATION REDESIGN
   Modern, Premium Dark & Minimalist
   ======================================== */

/* ===== STEP FLOW CONTAINER ===== */
.step-flow-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: 0.7;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.2), rgba(184, 150, 12, 0.1));
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(184, 150, 12, 0.3);
}

.step-item.completed .step-circle {
    background: rgba(5, 150, 105, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-item.active .step-label {
    color: var(--gold);
}

.step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    min-width: 40px;
    max-width: 80px;
}

/* Back to Cards Button */
.step-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.step-back-btn:hover {
    background: rgba(184, 150, 12, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.1);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ===== PLAN SELECTION GRID ===== */
.plan-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.plan-card-modern {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.plan-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 150, 12, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.plan-card-modern:hover::before {
    opacity: 1;
}

.plan-card-modern.active {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.1);
    box-shadow: 0 0 30px rgba(184, 150, 12, 0.2);
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(184, 150, 12, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 12px;
}

.plan-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.plan-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.plan-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
}

.plan-period {
    font-size: 12px;
    color: var(--text-muted);
}

.plan-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.plan-card-modern.active .plan-check {
    opacity: 1;
    transform: scale(1);
}

/* ===== DURATION STEPPER ===== */
.duration-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.duration-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.duration-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(184, 150, 12, 0.1);
    border: 1px solid rgba(184, 150, 12, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.stepper-btn:hover {
    background: rgba(184, 150, 12, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(184, 150, 12, 0.3);
}

.stepper-btn:active {
    transform: scale(0.95);
}

.duration-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.duration-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.duration-unit {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.expiration-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.expiration-info i {
    color: var(--gold);
}

.expiration-info strong {
    color: var(--text-primary);
}

/* ===== INSTRUCTOR ADD-ON ===== */
.instructor-section {
    margin-top: 20px;
}

.addon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.addon-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(184, 150, 12, 0.3);
}

.addon-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.addon-info i {
    font-size: 24px;
    color: var(--gold);
}

.addon-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.addon-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.addon-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    margin-right: 16px;
}

.addon-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.addon-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked+.toggle-slider {
    background: var(--gold);
    border-color: var(--gold);
}

input[type="checkbox"]:checked+.toggle-slider::before {
    transform: translateX(24px);
}

.instructor-quantity {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instructor-quantity label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.quantity-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(184, 150, 12, 0.1);
    border: 1px solid rgba(184, 150, 12, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-stepper button:hover {
    background: rgba(184, 150, 12, 0.2);
    transform: scale(1.1);
}

.quantity-stepper span {
    min-width: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== STEP 2: CUSTOMER INFORMATION ===== */
.form-group-modern {
    margin-bottom: 16px;
}

.form-group-modern label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-glass {
    position: relative;
    display: flex;
    align-items: center;
}

.input-glass i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.input-glass input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-glass input::placeholder {
    color: var(--text-dim);
}

.input-glass input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 150, 12, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.input-error {
    font-size: 11px;
    color: var(--danger);
    margin-top: 4px;
    display: block;
}

/* Form Grid for Photo + Fields */
.form-grid-modern {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
}

.photo-upload-modern {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 20px;
}

.photo-preview-glass {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-preview-glass:hover {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.05);
}

.photo-preview-glass i {
    font-size: 28px;
    color: var(--text-muted);
}

.photo-preview-glass span {
    font-size: 11px;
    color: var(--text-muted);
}

.photo-preview-glass.has-photo {
    border-style: solid;
    padding: 0;
}

.photo-preview-glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-modern input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.remove-photo-modern {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: 2px solid var(--bg-primary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    transition: all 0.2s ease;
}

.remove-photo-modern:hover {
    transform: scale(1.1);
}

.form-fields-modern {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== STEP 3: PAYMENT & CONFIRMATION ===== */
.order-summary-glass {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.order-summary-glass h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-row span {
    color: var(--text-muted);
}

.summary-row strong {
    color: var(--text-primary);
}

.summary-row.total {
    padding-top: 16px;
    font-size: 16px;
}

.summary-row.total strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 12px 0;
}

.payment-method-section {
    margin-bottom: 24px;
}

.payment-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

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

.payment-option-glass {
    position: relative;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option-glass:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(184, 150, 12, 0.3);
    transform: translateY(-2px);
}

.payment-option-glass.active {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.1);
}

.payment-option-glass i {
    font-size: 24px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.payment-option-glass.active i {
    color: var(--gold);
}

.payment-option-glass span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.payment-option-glass.active span {
    color: var(--gold);
}

.payment-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 5;
}

/* Explicitly style the icon inside */
.payment-check i {
    color: #ffffff !important;
    font-size: 10px !important;
    display: block !important;
}

.payment-option-glass.active .payment-check {
    opacity: 1;
    transform: scale(1);
}

/* ===== STEP NAVIGATION BUTTONS ===== */
.step-nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-step-back,
.btn-step-next,
.btn-step-complete {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-step-back {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-step-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-step-next,
.btn-step-complete {
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.9), rgba(184, 150, 12, 0.7));
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 16px rgba(184, 150, 12, 0.3);
}

.btn-step-next:hover,
.btn-step-complete:hover {
    background: linear-gradient(135deg, var(--gold), rgba(184, 150, 12, 0.8));
    box-shadow: 0 6px 24px rgba(184, 150, 12, 0.4);
    transform: translateY(-2px);
}

.btn-step-complete {
    width: 100%;
}

/* ===== SUCCESS SCREENS ===== */
.success-screen-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    animation: fadeIn 0.5s ease;
}

.success-header-glass {
    text-align: center;
    margin-bottom: 28px;
}

.success-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(5, 150, 105, 0.1));
    border: 3px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--success);
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-header-glass h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.success-header-glass p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Day Pass Receipt - Horizontal Grid */
.receipt-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.receipt-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.receipt-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.receipt-value.gold {
    color: var(--gold);
    font-size: 18px;
}

/* Membership Receipt - Two Column Layout */
.membership-success-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.receipt-details-side {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-row-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.receipt-row-compact .receipt-label {
    color: var(--text-muted);
    font-size: 11px;
}

.receipt-row-compact strong {
    color: var(--text-primary);
    font-weight: 700;
}

.receipt-row-compact.total {
    padding-top: 12px;
    font-size: 14px;
}

.receipt-row-compact.total strong {
    font-size: 18px;
    font-weight: 800;
}

.receipt-row-compact .gold {
    color: var(--gold);
}

.receipt-divider-compact {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 8px 0;
}

.qr-side-glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.qr-placeholder-modern {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--gold);
}

.qr-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.btn-done-modern {
    width: 100%;
    max-width: 300px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(5, 150, 105, 0.7));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.btn-done-modern:hover {
    background: linear-gradient(135deg, var(--success), rgba(5, 150, 105, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .plan-selection-grid {
        grid-template-columns: 1fr;
    }

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

    .photo-preview-glass {
        width: 100%;
        height: 160px;
    }

    .payment-options-glass {
        grid-template-columns: 1fr;
    }

    .receipt-grid-horizontal {
        grid-template-columns: 1fr;
    }

    .membership-success-layout {
        grid-template-columns: 1fr;
    }

    .step-progress {
        flex-wrap: wrap;
        gap: 12px;
    }

    .step-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 16px;
    }

    .step-title {
        font-size: 16px;
    }

    .step-flow-container {
        padding: 12px;
    }
}

/* ========================================
   MISSING STYLES: STATES & FLIP CARDS
   ======================================== */

/* ===== REGISTRATION STATES ===== */
.reg-state {
    display: none;
    height: 100%;
    width: 100%;
}

.reg-state.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FLIP CARDS ===== */
.flip-cards-container {
    display: flex;
    /* Changed from grid to flex for better centering */
    justify-content: center;
    gap: 40px;
    /* Increased gap to prevent overlay */
    padding: 40px;
    height: 100%;
    align-items: center;
}

.flip-card {
    background: transparent;
    width: 260px;
    /* Slightly wider */
    height: 340px;
    /* Slightly taller */
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Deeper shadow */
}

/* Front Design Update */
.flip-card-front {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
    /* Richer gradient */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* Glow effect on hover */
.flip-card:hover .flip-card-front {
    border-color: rgba(184, 150, 12, 0.5);
    box-shadow: 0 0 30px rgba(184, 150, 12, 0.15);
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), #000);
    border: 1px solid var(--gold);
    transform: rotateY(180deg);
}

/* ... (keep existing flip-icon, title, etc) ... */

/* ===== HORIZONTAL FORM LAYOUT (No Scroll) ===== */
.form-horizontal-container {
    display: grid;
    grid-template-columns: 140px 1fr 240px;
    /* Photo | Fields | Summary/Plan */
    gap: 24px;
    align-items: start;
    height: 100%;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Photo Section Fixed Height */
.photo-upload-modern {
    height: 100%;
}

.photo-preview-glass {
    width: 140px;
    height: 140px;
    /* ... existing styles ... */
}

.flip-card.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.flip-card.disabled:hover .flip-card-inner {
    transform: none;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-front {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.1), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(10px);
    transform: rotateY(180deg);
    border-color: var(--gold);
}

.flip-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(184, 150, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 150, 12, 0.3);
}

.flip-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.flip-back-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-price-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.flip-price-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.flip-price-item strong {
    color: var(--text-primary);
}

.flip-cta {
    margin-top: auto;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    opacity: 0.8;
}

.coming-soon {
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== MISSING FLIP ANIMATION & CONTENT ===== */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(184, 150, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 150, 12, 0.3);
}

.flip-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.flip-back-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-price-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.flip-price-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.flip-price-item strong {
    color: var(--text-primary);
}

.flip-cta {
    margin-top: auto;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    opacity: 0.8;
}

.coming-soon {
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== LAYOUT FIXES (Cleaned) ===== */
.flip-cards-container {
    display: flex;
    /* Removed !important to allow hiding */
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.flip-card {
    margin: 0 !important;
    /* Remove any external margins */
    flex-shrink: 0 !important;
    /* Prevent shrinking */
    width: 260px !important;
}

/* Ensure horizontal form is correct too */
.form-horizontal-container {
    display: grid !important;
    grid-template-columns: 140px 1fr 240px !important;
    gap: 24px !important;
    height: 100%;
}

/* ===== RENEWAL & ADDITIONS STYLES ===== */

.centered-card {
    margin: auto;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.renewal-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-photo-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    box-shadow: 0 0 15px rgba(184, 150, 12, 0.2);
}

.profile-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.meta-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.profile-expiry {
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.profile-expiry .label {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-expiry strong {
    color: var(--text-primary);
}

.divider-glass {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.section-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

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

.renewal-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.renewal-option-card:hover,
.renewal-option-card.active {
    background: rgba(184, 150, 12, 0.1);
    border-color: var(--gold);
}

.opt-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.opt-details h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.opt-details p {
    font-size: 11px;
    color: var(--text-muted);
}

.opt-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
}

.new-expiry-preview {
    margin-top: 12px;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.renewal-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 16px;
    font-size: 16px;
}

/* ===== RESTORED STATE MANAGEMENT CSS ===== */
.reg-state {
    display: none !important;
    /* Force hide when not active */
    height: 100%;
    width: 100%;
}

.reg-state.active {
    display: flex !important;
    /* Force show when active */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== UI REFINEMENTS (Step Bar & Form) ===== */
.step-flow-container {
    padding-top: 20px;
    /* Space for back button */
    position: relative;
}

.step-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    /* Ensure clickable */
    background: rgba(0, 0, 0, 0.5);
    /* Background for visibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-horizontal-container {
    max-width: 700px;
    /* Constrain width */
    margin: 0 auto;
    /* Center it */
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 16px;
}

/* Photo Upload Fix: Ensure input stays clickable */
.photo-upload-modern {
    z-index: 50;
    position: relative;
}

/* ===== FORM & BACK BUTTON FIXES ===== */
/* Reduce form width significantly */
.form-horizontal-container {
    max-width: 500px !important;
    margin: 0 auto !important;
    gap: 16px;
}

/* Adjust step progress to avoid back button */
.step-progress {
    margin-left: 60px;
    /* Push away from back button */
    margin-right: auto;
    width: calc(100% - 80px);
}

/* Ensure back button is positioned correctly */
.step-back-btn {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 150 !important;
}

/* Check-In Prompt Modal */
.checkin-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkin-prompt-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.checkin-prompt-container {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.prompt-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.2), rgba(184, 150, 12, 0.1));
    border: 2px solid rgba(184, 150, 12, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--gold);
}

.checkin-prompt-container h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.checkin-prompt-container p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.checkin-prompt-container p strong {
    color: var(--gold);
}

.prompt-buttons {
    display: flex;
    gap: 12px;
}

.btn-skip,
.btn-checkin {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-skip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-checkin {
    background: linear-gradient(135deg, #b8960c, #d4af37);
    color: white;
}

.btn-checkin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 150, 12, 0.4);
}

/* =========================================
   DIRECTORY PANEL STYLES (REFACTORED)
   ========================================= */
.dir-result-card {
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Header */
.dir-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.dir-avatar-circle {
    width: 64px;
    height: 64px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dir-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dir-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dir-header-info h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.dir-id {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Divider */
.dir-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin: 0 0 24px 0;
}

/* Details Grid */
.dir-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}

.dir-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.dir-detail-item label {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
}

.dir-detail-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.dir-detail-item .value.status-active {
    color: #10b981;
}

.dir-detail-item .value.gold-text {
    color: var(--gold);
}

/* Status Text Colors */
.dir-status-text {
    font-size: 16px;
    font-weight: 600;
}

.dir-status-text.active {
    color: #10b981;
}

.dir-status-text.expired {
    color: #ef4444;
}

/* Buttons */
.dir-btn {
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* Continue Button (Yellow) */
.continue-btn {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: #000 !important;
    font-weight: 700;
    margin-bottom: 16px;
}

.continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 150, 12, 0.4);
    opacity: 0.95;
}

/* Footer Buttons (Secondary) */
.dir-actions-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.secondary-btn {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.secondary-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}


/* Override checkin-btn inside directory to look like secondary */
.dir-actions-footer .checkin-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 12px 16px;
    border: none !important;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dir-actions-footer .checkin-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

/* =========================================
   DIRECTORY CARD - COMPACT & HIGHLIGHTED
   ========================================= */
/* Compact Card Container */
.dir-result-card {
    padding: 24px !important;
    /* Reduced from 32 */
    max-width: 440px !important;
    /* Slightly narrower */
}

/* Compact Header Layout */
.dir-card-header {
    margin-bottom: 20px !important;
    /* Reduced from 32 */
    gap: 16px !important;
}

/* Big Avatar (Slightly optimized) */
.dir-avatar-circle {
    width: 80px !important;
    /* 64 -> 100 -> 80 */
    height: 80px !important;
    font-size: 32px !important;
    box-shadow: 0 0 15px rgba(184, 150, 12, 0.2);
}

/* Big Name (Slightly optimized) */
.dir-header-info h3 {
    font-size: 26px !important;
    /* 24 -> 32 -> 26 */
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    margin-bottom: 2px !important;
    line-height: 1.1 !important;
}

/* Compact ID */
.dir-id {
    font-size: 14px !important;
    opacity: 0.7;
}

/* Compact Details Grid */
.dir-details-grid {
    gap: 16px !important;
    /* Reduced from 24 */
    margin-bottom: 20px !important;
    /* Reduced from 32 */
}

.dir-detail-item {
    gap: 4px !important;
}

.dir-detail-item label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

.dir-detail-item .value {
    font-size: 15px !important;
}

/* Compact Buttons */
.continue-btn {
    padding: 12px !important;
    /* Reduced from 16 */
    margin-bottom: 12px !important;
    font-size: 14px !important;
    background: var(--gold) !important;
    color: #000 !important;
}

.dir-actions-footer {
    gap: 10px !important;
}

.dir-actions-footer .dir-btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
}

/* =========================================
   PLAN SELECTION UI (STEP 1)
   ========================================= */

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

.plan-card-modern {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-card-modern:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.plan-card-modern.active {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.1);
    box-shadow: 0 0 0 1px var(--gold);
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.plan-card-modern.active .plan-icon {
    background: rgba(184, 150, 12, 0.2);
    color: var(--gold);
}

.plan-info {
    flex: 1;
}

.plan-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-info .plan-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
}

.plan-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.plan-period {
    font-size: 11px;
    color: var(--text-tertiary);
}

.plan-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.plan-card-modern.active .plan-check {
    opacity: 1;
    transform: scale(1);
}

/* Duration Section Styles */
.duration-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.duration-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.duration-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stepper-btn:hover {
    background: var(--gold);
    color: #000;
}

.duration-display {
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.duration-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.duration-unit {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* =========================================
   QR ASSIGNMENT UI (NEW)
   ========================================= */

/* ===== QR ASSIGNMENT STEP (STEP 3) ===== */
.qr-assignment-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.qr-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
}

/* Field Hint */
.field-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    margin-left: 4px;
}

/* Style Selection Cards */
.style-options {
    display: flex;
    gap: 12px;
}

.style-option {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.style-option:hover {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.05);
}

.style-option.active {
    border-color: var(--gold);
    background: rgba(184, 150, 12, 0.1);
    color: var(--gold);
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.color-dot.gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
}

.color-dot.black {
    background: #1f2937;
    border: 1px solid #374151;
}

/* Membership Card Preview */
.membership-card-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1.586;
    /* Credit card ratio */
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Dark Style (formerly Gold) */
.membership-card-preview.dark {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid #333;
}

.membership-card-preview.dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(184, 134, 11, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(184, 134, 11, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.membership-card-preview.dark .card-member-name,
.membership-card-preview.dark .card-logo,
.membership-card-preview.dark .card-qr-id-display {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Light Style (NEW) */
.membership-card-preview.light {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
}

.membership-card-preview.light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.membership-card-preview.light .card-member-name,
.membership-card-preview.light .card-logo {
    color: #1f2937;
    text-shadow: none;
}

.membership-card-preview.light .card-qr-id-display {
    color: #4b5563;
}

/* Card Elements */
.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e0aa3e, #b8860b);
    border-radius: 4px;
    margin-bottom: 5px;
}

.card-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #fff;
    position: absolute;
    top: 20px;
    right: 20px;
}

.card-member-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    margin-top: auto;
}

.card-qr-id-display {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    letter-spacing: 1px;
}

.card-type-display {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 10px;
    font-weight: bold;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Print Styles */
/* Print Styles */
@media print {

    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the print overlay and its children */
    .print-card-overlay,
    .print-card-overlay * {
        visibility: visible;
    }

    .print-card-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        /* Print background matches paper */
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;

        /* Force Printing of Backgrounds */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .print-card-overlay .membership-card-preview {
        /* CR80 Card Dimensions: 85.6mm x 53.98mm */
        /* Using inches for print accuracy: 3.375in x 2.125in */
        width: 3.375in;
        height: 2.125in;

        /* Scale for better resolution if needed, or keeping 1:1 for actual size */
        /* transform: scale(1); Use actual size for ID cards */

        box-shadow: none !important;
        /* No shadow on print */
        border: 1px solid #ddd;
        /* Light border for cutting guide */

        margin: 0;
        padding: 0;
        page-break-inside: avoid;

        /* Ensure background gradients print */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* ===== QR SELECTION MODAL ===== */
.qr-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.qr-selection-modal {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.qr-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding: 4px;
    margin-top: 16px;
    max-height: 400px;
}

.qr-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.qr-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qr-item i {
    font-size: 24px;
    color: var(--text-secondary);
}

.qr-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-mini-action {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
}

.btn-mini-action:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== RECEIPT QR ID DISPLAY ===== */
.qr-id-display-receipt {
    border: 2px dashed var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
}

.qr-id-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}

.qr-id-value {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.qr-id-hint {
    font-size: 10px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* =========================================
   REGISTRATION DESK FLIP CARDS
   ========================================= */

.new-member-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.flip-cards-container {
    display: flex;
    gap: 40px;
    perspective: 1000px;
}

.flip-card {
    background-color: transparent;
    width: 260px;
    height: 360px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-front {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.1), transparent 70%);
}

.flip-card-back {
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.flip-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(184, 150, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(184, 150, 12, 0.1);
}

.flip-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.flip-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -5px;
}

.flip-back-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.flip-price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.flip-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flip-price-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.flip-price-item strong {
    font-size: 14px;
    color: #fff;
}

.flip-cta {
    margin-top: auto;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    text-align: center;
    padding-top: 15px;
}

/* =========================================
   REGISTRATION DESK FLIP CARDS
   ========================================= */

.new-member-container {
    width: 100%;
    /* Remove fixed height to allow content to dictate, or keep 100% if container is fixed */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    /* Force hide horizontal scroll */
}

.flip-cards-container {
    display: flex;
    gap: 40px;
    perspective: 1000px;
}

.flip-card {
    background-color: transparent;
    width: 260px;
    height: 360px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-front {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.1), transparent 70%);
}

.flip-card-back {
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.flip-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(184, 150, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(184, 150, 12, 0.1);
}

.flip-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.flip-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -5px;
}

.flip-back-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.flip-price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.flip-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flip-price-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.flip-price-item strong {
    font-size: 14px;
    color: #fff;
}

.flip-cta {
    margin-top: auto;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    text-align: center;
    padding-top: 15px;
}
