:root {
    --bg-color: #000000;
    --primary: #c3ff73;
    --text-primary: #ffffff;
    --text-secondary: #8b98a5;
    
    --nope-color: #f4212e;
    --like-color: #00ba7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    position: fixed;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

/* Header Section */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin-bottom: 40px;
    z-index: 10;
}

/* Waitlist Section */
.waitlist-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    margin: auto;
    text-align: center;
    flex: 1;
}

.waitlist-pre-title {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.waitlist-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #ffffff;
    letter-spacing: -1px;
}

.x-logo-svg {
    height: 44px;
    width: auto;
    fill: currentColor;
}

.swipe-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: var(--primary);
    font-weight: normal;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i,
.input-wrapper .x-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.waitlist-form input {
    width: 100%;
    background: #0f0f11;
    border: 1px solid #222;
    border-radius: 8px;
    color: #fff;
    padding: 16px 44px 16px 44px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.waitlist-form input:focus {
    border-color: #555;
}

.waitlist-form input::placeholder {
    color: #555;
}

.trailing-avatar {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
    border: 1px solid #333;
}

.waitlist-btn {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.waitlist-btn:hover {
    background: #e0e0e0;
}

.waitlist-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

#waitlist-message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.success-message {
    background: rgba(0, 186, 124, 0.1);
    color: #00ba7c;
    border: 1px solid rgba(0, 186, 124, 0.2);
}

.error-message {
    background: rgba(244, 33, 46, 0.1);
    color: #f4212e;
    border: 1px solid rgba(244, 33, 46, 0.2);
}

.founders-text {
    margin-top: 40px;
    font-size: 13px;
    color: #666;
}

.founders-text a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.founders-text a:hover {
    color: #fff;
}

.subtitle {
    color: #a0a0a0;
    font-size: 15px;
    margin-bottom: 24px;
    text-align: center;
}

.input-container {
    display: flex;
    align-items: center;
    background: #151515;
    border: 1px solid #333;
    border-radius: 99px;
    padding: 6px;
    width: 100%;
    max-width: 500px;
    transition: border-color 0.3s;
}

.input-container:focus-within {
    border-color: var(--primary);
}

#handle-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
}

#handle-input::placeholder {
    color: #666;
}

.primary-btn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 99px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, opacity 0.2s;
}

.primary-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Swiper Cards */
.deck-wrapper {
    flex: 1;
    width: 100%;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.deck-container {
    flex: 1;
    position: relative;
    perspective: 1000px;
    width: 100%;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 32px;
    background: var(--card-theme, #1a1b4b);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    overflow: hidden;
    transform-origin: 50% 100%;
    will-change: transform;
    display: flex;
    flex-direction: column;
    border: none;
    color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.card-top {
    flex: 7;
    position: relative;
    background: #111;
    overflow: hidden;
}

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

.card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    /* Fade image into the dynamic background color */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--card-theme) 100%);
    pointer-events: none;
}

.card-link-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    backdrop-filter: blur(8px);
    font-size: 18px;
    transition: background 0.2s;
}

.card-link-btn:hover {
    background: rgba(0,0,0,0.6);
}

.card-bottom {
    padding: 0 16px 16px 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: var(--card-theme);
}

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

.card-title-group {
    display: flex;
    flex-direction: column;
}

.card-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card-handle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.card-bio {
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 20px;
    
    /* Ensure it exactly takes 2 lines of space */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* Restored Public Metrics */
.public-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-weight: 700;
    font-size: 16px;
}

.metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
    width: 100%;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 60%;
}

.tags-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.tags-list {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-stats-bottom {
    text-align: right;
}

.stat-ratio-large {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-swipes-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-weight: 500;
}

.stamp {
    position: absolute;
    top: 60px;
    padding: 12px 32px;
    border: 5px solid;
    border-radius: 16px;
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0;
    z-index: 10;
    transform: scale(0.5) rotate(-15deg);
    transition: opacity 0.2s, transform 0.2s;
}

.stamp.like {
    border-color: var(--like-color);
    color: var(--like-color);
    right: 40px;
    transform: scale(1) rotate(15deg);
}

.stamp.nope {
    border-color: var(--nope-color);
    color: var(--nope-color);
    left: 40px;
    transform: scale(1) rotate(-15deg);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 0 40px;
    z-index: 20;
}

.action-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #151515;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.2s, background 0.2s;
}

.action-btn:hover {
    background: #222;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn.nope {
    color: var(--nope-color);
}

.action-btn.like {
    color: var(--like-color);
}
