/* assets/tinder.css – High-end Tinder-style design for Prime Bullets */
:root {
    --bg-dark: #0c0f17;
    --bg-card: #151926;
    --bg-card-sub: #1e2436;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #8e9bb0;
    --primary-gradient: linear-gradient(135deg, #fd267a 0%, #ff6036 100%);
    --like-green: #00e676;
    --like-glow: rgba(0, 230, 118, 0.35);
    --nope-red: #ff3366;
    --nope-glow: rgba(255, 51, 102, 0.35);
    --undo-amber: #ffb300;
    --undo-glow: rgba(255, 179, 0, 0.35);
    --star-blue: #2979ff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.45);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(253, 38, 122, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(41, 121, 255, 0.08) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Navigation */
.app-header {
    background: rgba(21, 25, 38, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.85rem 1.5rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(253, 38, 122, 0.5));
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(253, 38, 122, 0.35);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-card-sub);
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fd267a;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.logout-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.logout-link:hover {
    color: var(--nope-red);
}

/* Main Swipe Container */
.swipe-app-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Sub-header Tracker for Top 5 / Counter */
.tracker-bar {
    width: 100%;
    background: rgba(21, 25, 38, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.tracker-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.tracker-title .count-badge {
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Top 5 Slots Display */
.top5-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.slot-card {
    background: var(--bg-card);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slot-card.filled {
    border-style: solid;
    border-color: #fd267a;
    box-shadow: 0 4px 12px rgba(253, 38, 122, 0.35);
}

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

.slot-number {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.slot-name {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    padding: 1px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Stack Arena */
.card-stack-arena {
    position: relative;
    width: 100%;
    height: 520px;
    max-height: 72vh;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tinder Card */
.tinder-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transform-origin: 50% 100%;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    will-change: transform, opacity;
}

.tinder-card:active {
    cursor: grabbing;
}

/* Stack Stacking visual layers */
.tinder-card:nth-last-child(1) {
    z-index: 10;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.tinder-card:nth-last-child(2) {
    z-index: 9;
    transform: translate3d(0, 14px, -10px) scale(0.96);
    opacity: 0.85;
    pointer-events: none;
}

.tinder-card:nth-last-child(3) {
    z-index: 8;
    transform: translate3d(0, 26px, -20px) scale(0.92);
    opacity: 0.6;
    pointer-events: none;
}

.tinder-card:nth-last-child(n+4) {
    display: none;
}

/* Moving/dragging state */
.tinder-card.moving {
    transition: none !important;
}

/* Card Photo / Media Container */
.card-media {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111420;
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none;
}

/* Fallback avatar if no photo */
.card-fallback-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #182035 0%, #0d1220 100%);
    position: relative;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 12px 30px rgba(253, 38, 122, 0.4);
    margin-bottom: 3.5rem;
}

/* Dark Gradient Vignette for text readability */
.card-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(12, 15, 23, 0.98) 0%, rgba(12, 15, 23, 0.85) 40%, transparent 100%);
    pointer-events: none;
}

/* Card Information Box */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 5;
    pointer-events: none;
}

.card-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.card-username {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #00d2d3;
    color: #0b0d13;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-tag.clan {
    background: rgba(253, 38, 122, 0.2);
    color: #ff6584;
    border: 1px solid rgba(253, 38, 122, 0.3);
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Tinder Stamps (LIKE / NOPE) */
.stamp {
    position: absolute;
    top: 40px;
    padding: 0.4rem 1.25rem;
    border-radius: 8px;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 4px solid;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.stamp.like {
    left: 40px;
    color: var(--like-green);
    border-color: var(--like-green);
    transform: rotate(-20deg) scale(0.9);
    box-shadow: 0 0 20px var(--like-glow);
    text-shadow: 0 0 10px var(--like-glow);
}

.stamp.nope {
    right: 40px;
    color: var(--nope-red);
    border-color: var(--nope-red);
    transform: rotate(20deg) scale(0.9);
    box-shadow: 0 0 20px var(--nope-glow);
    text-shadow: 0 0 10px var(--nope-glow);
}

/* Action Bar Buttons */
.tinder-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.btn-circle:hover {
    transform: scale(1.12);
}

.btn-circle:active {
    transform: scale(0.92);
}

.btn-undo {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-color: rgba(255, 179, 0, 0.4);
    color: var(--undo-amber);
}

.btn-undo:hover {
    background: rgba(255, 179, 0, 0.15);
    box-shadow: 0 0 20px var(--undo-glow);
}

.btn-nope {
    width: 66px;
    height: 66px;
    font-size: 1.7rem;
    border-color: rgba(255, 51, 102, 0.4);
    color: var(--nope-red);
}

.btn-nope:hover {
    background: rgba(255, 51, 102, 0.15);
    box-shadow: 0 0 25px var(--nope-glow);
}

.btn-like {
    width: 66px;
    height: 66px;
    font-size: 1.7rem;
    border-color: rgba(0, 230, 118, 0.4);
    color: var(--like-green);
}

.btn-like:hover {
    background: rgba(0, 230, 118, 0.15);
    box-shadow: 0 0 25px var(--like-glow);
}

.btn-info {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-color: rgba(41, 121, 255, 0.4);
    color: var(--star-blue);
}

.btn-info:hover {
    background: rgba(41, 121, 255, 0.15);
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.35);
}

/* Keyboard hint */
.keyboard-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
    opacity: 0.6;
}

/* Empty State / All Caught Up Screen */
.empty-state {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.4s ease forwards;
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 15px rgba(253, 38, 122, 0.4));
}

.empty-state h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.empty-summary {
    background: var(--bg-card-sub);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.empty-summary h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.summary-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-chip.ranked {
    border-color: #fd267a;
    background: rgba(253, 38, 122, 0.15);
}

.empty-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-gradient);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(253, 38, 122, 0.4);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 38, 122, 0.55);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-card-sub);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Dashboard Grid on index.php */
.dashboard-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem 3rem;
    width: 100%;
}

.hero-card {
    background: linear-gradient(135deg, rgba(253, 38, 122, 0.18) 0%, rgba(21, 25, 38, 0.9) 100%);
    border: 1px solid rgba(253, 38, 122, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "🔥";
    position: absolute;
    right: 20px;
    bottom: -20px;
    font-size: 10rem;
    opacity: 0.08;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.85rem;
}

.hero-card h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.65rem;
    line-height: 1.2;
}

.hero-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    line-height: 1.6;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dash-card:hover {
    transform: translateY(-6px);
    border-color: rgba(253, 38, 122, 0.4);
    box-shadow: 0 18px 40px rgba(253, 38, 122, 0.2);
}

.dash-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.dash-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.dash-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.dash-status {
    background: var(--bg-card-sub);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--like-green);
    box-shadow: 0 0 8px var(--like-green);
}

.dash-status-dot.empty {
    background: var(--undo-amber);
    box-shadow: 0 0 8px var(--undo-amber);
}

/* Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(21, 25, 38, 0.95);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .nav-links span {
        display: none;
    }
    .hero-card h2 {
        font-size: 1.6rem;
    }
    .card-stack-arena {
        height: 480px;
    }
    .btn-circle {
        width: 52px;
        height: 52px;
    }
    .btn-nope, .btn-like {
        width: 60px;
        height: 60px;
    }
}
