:root {
    --hftf-brand:    #E8562A;
    --hftf-brand-dk: #c44420;
    --hftf-radius:   30px;
    --hftf-trans:    0.2s ease;
}

/* -- CHECK-IN BUTTON ---------------------------------------------------- */
.hftf-checkin-wrap { position: relative; display: inline-block; margin: 8px 0; }

.hftf-checkin-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 22px; border: 2px solid #555; border-radius: var(--hftf-radius);
    background: transparent; color: #555;
    font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: all var(--hftf-trans);
}
.hftf-checkin-btn:hover { border-color: #222; color: #222; background: #f5f5f5; }
.hftf-checkin-btn.hftf-checked { background: #222; color: #fff; border-color: #222; }
.hftf-checkin-btn.hftf-saving  { opacity: 0.6; pointer-events: none; }

@keyframes hftf-pulse { 0%{transform:scale(1)} 40%{transform:scale(1.07)} 100%{transform:scale(1)} }
.hftf-checkin-btn.hftf-pulse { animation: hftf-pulse 0.5s ease; }

/* -- TICKET BUTTON ------------------------------------------------------- */
.hftf-ticket-wrap { margin: 8px 0; }
.hftf-ticket-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border: 2px solid var(--hftf-brand); border-radius: var(--hftf-radius);
    background: transparent; color: var(--hftf-brand);
    font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: all var(--hftf-trans);
}
.hftf-ticket-btn:hover, .hftf-ticket-btn.hftf-has-ticket { background: var(--hftf-brand); color: #fff; }
.hftf-ticket-btn.hftf-saving { opacity: 0.6; pointer-events: none; }

/* -- GATE (shared with saves plugin) ------------------------------------- */
.hftf-save-gate, .hftf-checkin-gate {
    display: none; position: absolute; top: calc(100% + 10px); left: 0;
    min-width: 260px; background: #fff; border: 1px solid #eee; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.13); padding: 20px; z-index: 999;
}
.hftf-save-gate.hftf-gate-open, .hftf-checkin-gate.hftf-gate-open { display: block; }
.hftf-gate-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: none; font-size: 20px; cursor: pointer; color: #aaa;
}
.hftf-gate-close:hover { color: #333; }
.hftf-save-gate p, .hftf-checkin-gate p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.hftf-gate-actions { display: flex; flex-direction: column; gap: 8px; }
.hftf-gate-btn {
    display: block; text-align: center; padding: 10px 16px; border-radius: 8px;
    font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: inherit;
    transition: all var(--hftf-trans);
}
.hftf-gate-btn--primary  { background: var(--hftf-brand); color: #fff; }
.hftf-gate-btn--primary:hover  { background: var(--hftf-brand-dk); color: #fff; }
.hftf-gate-btn--secondary { background: transparent; color: var(--hftf-brand); border: 2px solid var(--hftf-brand); }
.hftf-gate-btn--secondary:hover { background: var(--hftf-brand); color: #fff; }

/* -- PROFILE PAGE -------------------------------------------------------- */
.hftf-profile-page { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.hftf-gate-page { text-align: center; padding: 80px 24px; }
.hftf-gate-page .hftf-gate-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hftf-gate-page .hftf-gate-btn { display: inline-block; min-width: 160px; }

/* Profile header */
.hftf-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.hftf-profile-avatar img { border-radius: 50%; width: 80px; height: 80px; }
.hftf-profile-info h2 { margin: 0 0 4px; font-size: 24px; }
.hftf-profile-meta { color: #888; font-size: 14px; margin: 0; }

/* Stats bar */
.hftf-stats-bar {
    display: flex; gap: 0; border: 1px solid #eee; border-radius: 12px; overflow: hidden;
    margin-bottom: 36px;
}
.hftf-stat {
    flex: 1; text-align: center; padding: 20px 12px;
    border-right: 1px solid #eee;
}
.hftf-stat:last-child { border-right: none; }
.hftf-stat-number { display: block; font-size: 28px; font-weight: 800; color: var(--hftf-brand); }
.hftf-stat-label  { display: block; font-size: 12px; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Sections */
.hftf-profile-section { margin-bottom: 40px; }
.hftf-profile-section h3 { font-size: 18px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.hftf-see-all { font-size: 14px; font-weight: 500; color: var(--hftf-brand); text-decoration: none; }

/* Cuisine pills */
.hftf-cuisine-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hftf-cuisine-pill {
    padding: 8px 16px; border: 2px solid #ddd; border-radius: 20px;
    font-size: 14px; cursor: pointer; transition: all var(--hftf-trans); user-select: none;
}
.hftf-cuisine-pill input { display: none; }
.hftf-cuisine-pill.selected { border-color: var(--hftf-brand); background: var(--hftf-brand); color: #fff; }
.hftf-cuisine-pill:hover { border-color: var(--hftf-brand); }
.hftf-btn-save-cuisines {
    padding: 8px 20px; background: #222; color: #fff; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background var(--hftf-trans);
}
.hftf-btn-save-cuisines:hover { background: #000; }
.hftf-cuisine-saved { margin-left: 12px; color: #555; font-size: 14px; }

/* List items (tickets, visited) */
.hftf-profile-list { display: flex; flex-direction: column; gap: 12px; }
.hftf-list-item {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff;
}
.hftf-list-img { flex-shrink: 0; width: 72px; height: 56px; overflow: hidden; }
.hftf-list-img img { width: 100%; height: 100%; object-fit: cover; }
.hftf-list-body { flex: 1; padding: 4px 0; }
.hftf-list-body strong a { text-decoration: none; color: inherit; font-size: 15px; }
.hftf-list-body p { color: #888; font-size: 13px; margin: 3px 0 0; }
.hftf-remove-ticket {
    background: none; border: none; color: #ccc; font-size: 13px; cursor: pointer;
    padding: 8px 14px; text-decoration: underline; font-family: inherit;
    flex-shrink: 0;
}
.hftf-remove-ticket:hover { color: var(--hftf-brand); }

/* Mini saves grid */
.hftf-saves-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hftf-mini-card {
    display: block; border-radius: 10px; overflow: hidden;
    text-decoration: none; color: inherit; border: 1px solid #eee;
    transition: box-shadow var(--hftf-trans);
}
.hftf-mini-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.hftf-mini-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hftf-mini-card span { display: block; padding: 8px 10px; font-size: 13px; font-weight: 600; }

.hftf-empty-note { color: #888; font-size: 14px; }

/* Mobile */
@media (max-width: 600px) {
    .hftf-stats-bar { flex-direction: row; }
    .hftf-stat { padding: 14px 8px; }
    .hftf-stat-number { font-size: 22px; }
    .hftf-saves-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .hftf-save-gate, .hftf-checkin-gate {
        position: fixed; bottom: 0; left: 0; right: 0; top: auto; min-width: 0;
        border-radius: 16px 16px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,.15);
    }
}
