@import url('https://fonts.googleapis.com/css2?family=Pattaya&display=swap');

* {
    font-family: 'Pattaya', sans-serif;
}

input,
button,
textarea,
select,
a {
    font-family: 'Pattaya', sans-serif;
}

body {
    margin: 0;
    background: #1c2428;
    color: #00c8b8;
    font-family: 'Pattaya', sans-serif;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Layout */
.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Topbar */
.topbar {
    background: #2b3a40;
    border-radius: 40px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Card */
.card {
    background: #263238;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Buttons */

/* COMMON BUTTON STYLE */
.btn,
button,
.search button {
    border: 2px solid #00c8b8;
    color: #00c8b8;
    background: transparent;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Pattaya', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER */
.btn:hover,
button:hover,
.search button:hover {
    background: #00c8b8;
    color: #1c2428;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 200, 184, 0.4);
}

/* CLICK */
.btn:active,
button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Profile */
.profile {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #00c8b8;
}

/* Text */
h1 {
    margin: 0;
    font-size: 32px;
}

.meta {
    color: #ffd21a;
}

/* Events */
.events {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.event {
    background: #1c2428;
    border: 2px solid #00c8b8;
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd21a;
}

.event img {
    width: 30px;
}

/* Input */
input {
    font-family: 'Pattaya', sans-serif;
    font-size: 18px;
    background: #1c2428;
    border: 2px solid #00c8b8;
    color: #ffd21a;
    padding: 12px;
    border-radius: 20px;
    width: 100%;
}

/* Search */
.search {
    display: flex;
    gap: 10px;
}

.search button {
    font-family: 'Pattaya', sans-serif;
    font-size: 18px;
    border: 2px solid #00c8b8;
    background: none;
    color: #00c8b8;
    padding: 12px 20px;
    border-radius: 20px;
}

/* Mobile */
@media (max-width: 600px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }
}

.tg-link {
    color: #00c8b8 !important;
    text-decoration: none;
    transition: 0.2s;
}

.tg-link:hover {
    color: #ffd21a;
    text-shadow: 0 0 8px rgba(255, 210, 26, 0.6);
}

.social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.social:hover .icon {
    transform: scale(1.15);
}

.icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: 0.2s;
}

.social-link {
    color: #00c8b8;
    text-decoration: none;
    border-bottom: 1px #00c8b8;
    transition: 0.2s;
}

.social-link:hover {
    color: #ffd21a;
    text-shadow: 0 0 8px rgba(255, 210, 26, 0.5);
}

@media (max-width: 700px) {
    .page {
        padding: 14px;
        max-width: 100%;
    }

    .topbar {
        border-radius: 24px;
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .topbar span,
    .topbar strong {
        font-size: 20px;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .card {
        border-radius: 22px;
        padding: 20px;
        margin-bottom: 18px;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
        text-align: center;
    }

    .meta {
        font-size: 18px;
    }

    .social {
        justify-content: center;
    }

    .search {
        flex-direction: column;
    }

    .search input,
    .search button,
    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .events {
        flex-direction: column;
    }

    .event {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
}

.filter-form {
    margin: 18px 0 24px;
}

.filter-form select {
    width: 100%;
    background: #1c2428;
    border: 2px solid #00c8b8;
    color: #ffd21a;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 18px;
    outline: none;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.member-card {
    background: #1c2428;
    border: 2px solid rgba(0, 200, 184, .55);
    border-radius: 22px;
    padding: 14px;
    text-align: center;
    color: #00c8b8;
    text-decoration: none;
    transition: all .2s ease;
}

.member-card:hover {
    border-color: #00c8b8;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 200, 184, .28);
}

.member-card .fursuit-badge {
    position: absolute !important;
    bottom: -8px !important;
    right: -8px !important;

    width: 34px !important;
    height: 34px !important;

    max-width: 34px !important;
    max-height: 34px !important;

    object-fit: contain !important;
    background: #1c2428 !important;
    border: 2px solid #00c8b8 !important;
    border-radius: 50% !important;
    padding: 5px !important;
    margin: 0 !important;

    box-shadow: 0 0 10px rgba(0, 200, 184, 0.6);
}

.member-card strong {
    display: block;
    font-size: 20px;
}

.member-card span {
    color: #ffd21a;
    font-size: 15px;
}

@media (max-width: 600px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .member-card img,
    .member-placeholder {
        width: 90px;
        height: 90px;
    }
}

.member-card.organizer {
    border-color: #ffd21a;
    box-shadow: 0 0 18px rgba(255, 210, 26, 0.35);
}

.member-card.organizer strong {
    color: #ffd21a;
}

.organizer-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ffd21a;
    color: #ffd21a;
    font-size: 14px;
}

.fursuit-icon {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    border: none !important;
    margin: 8px auto 0 !important;
    display: block;
}

.member-image-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
}

.member-photo,
.member-image-wrapper .member-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid #00c8b8;
}


/* fursuit ikon */
.fursuit-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;

    width: 32px;
    height: 32px;

    background: #1c2428;
    border: 2px solid #00c8b8;
    border-radius: 50%;

    padding: 4px;
    object-fit: contain;

    box-shadow: 0 0 10px rgba(0, 200, 184, 0.6);
}

.fursuit-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd21a;
    font-size: 18px;
    margin-top: 10px;
    text-shadow: 0 0 6px rgba(255, 210, 26, 0.5);
}

.fursuit-line img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.event-link {
    color: #ffd21a;
    text-decoration: none;
    border-bottom: 1px #ffd21a;
}

.event-link:hover {
    color: #00c8b8;
    border-bottom-color: #00c8b8;
}

.event.clickable {
    color: #ffd21a;
    border: 2px solid #ffd21a;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.event.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 210, 26, 0.5);
    border-color: #ffd21a;
}


.past-event {
    opacity: 0.75;
}

.member-grid {
    align-items: start;
}

.member-card {
    overflow: hidden;
}

.member-card > img {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    object-fit: cover !important;
    border-radius: 18px;
    border: 2px solid #00c8b8;
    display: block;
    margin: 0 auto 12px;
}

.member-card .member-placeholder {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
}

.room-label {
    display: block;
    margin-top: 8px;
    color: #ffd21a;
    font-size: 14px;
    opacity: 0.95;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 1000px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
}

.room-card {
    background: #263238;
    border: 2px solid rgba(0, 200, 184, .55);
    border-radius: 24px;
    padding: 18px;
}

.room-card h2 {
    color: #ffd21a;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.25;
}

.room-card.full {
    border-color: #ff5a5a;
}

.room-card.available {
    border-color: #00c8b8;
}

.room-capacity {
    color: #ffd21a;
}

.room-member-list {
    display: grid;
    gap: 10px;
}

.room-member {
    background: #1c2428;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0,200,184,.35);
    text-decoration: none;
}

.room-member img,
.room-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #00c8b8;
    flex-shrink: 0;
}

.room-member strong {
    color: #00c8b8;
}

.room-member span {
    color: #ffd21a;
}

.room-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.summary-box {
    background: #1c2428;
    border: 2px solid rgba(0, 200, 184, .55);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
}

.summary-box strong {
    display: block;
    color: #ffd21a;
    margin-bottom: 8px;
}

.summary-box span {
    color: #00c8b8;
    font-size: 32px;
    font-weight: bold;
}

@media (max-width: 850px) {
    .room-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .room-summary {
        grid-template-columns: 1fr;
    }
}

.room-member {
    transition: all 0.2s ease;
    cursor: pointer;
}

.room-member:hover {
    border-color: #ffd21a;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(255, 210, 26, 0.35);
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 0px;
}

.program-list {
    display: grid;
    gap: 16px;
}

.program-card {
    background: #1c2428;
    border: 2px solid rgba(0, 200, 184, .55);
    border-radius: 22px;
    padding: 18px;
}

.program-card strong {
    color: #ffd21a;
    font-size: 24px;
}

.program-card p {
    color: #00c8b8;
    margin: 8px 0;
}

.program-card small {
    color: #ffd21a;
    opacity: 0.9;
}

.program-organizers {
    color: #ffd21a !important;
    margin: 6px 0;
    font-size: 16px;
}
.program-organizer-link {
    color: #ffd21a;
    text-decoration: none;
    transition: 0.2s;
}

.program-organizer-link:hover {
    color: #00c8b8;
    text-shadow: 0 0 8px rgba(0, 200, 184, 0.5);
}

/* Saját profil / login form finomítás */
.card form label {
    display: block;
    color: #00c8b8;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 18px;
}

.card form input,
.card form textarea,
.card form select {
    width: 100%;
    box-sizing: border-box;
    background: #1c2428;
    border: 2px solid #00c8b8;
    border-radius: 18px;
    color: #ffd21a;
    padding: 13px 16px;
    font-family: 'Pattaya', sans-serif;
    font-size: 18px;
    outline: none;
}

.card form input:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.card form input[type="file"] {
    padding: 10px 14px;
}

.card form input:focus,
.card form textarea:focus,
.card form select:focus {
    border-color: #ffd21a;
    box-shadow: 0 0 12px rgba(255, 210, 26, 0.2);
}

/* Checkbox sor */
.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #ffd21a !important;
    margin-top: 16px !important;
    margin-bottom: 14px !important;
}

.checkbox-line input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    padding: 0;
    accent-color: #00c8b8;
}

/* Jelenlegi profilkép */
.current-profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid #00c8b8;
    display: block;
    margin: 10px 0 18px;
}

.room-status {
    margin-top: 14px;
    font-size: 16px;
}

.room-status.locked,
.room-status.full-text {
    color: #ffd21a;
    border: 1px solid #ffd21a;
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-block;
}

.reservation-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
}

.reservation-badge.pending {
    color: #ffd21a;
    border: 1px solid #ffd21a;
}

.reservation-badge.confirmed {
    color: #00c8b8;
    border: 1px solid #00c8b8;
}

.reservation-badge.leader {
    color: #1c2428;
    background: #ffd21a;
}

.room-status.open {
    color: #00c8b8;
    border: 1px solid #00c8b8;
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-block;
}

.member-session-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0px;
}

.member-session-menu {
    position: relative;
}

.member-session-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid #00c8b8;
    border-radius: 999px;
    color: #ffd21a;
    padding: 8px 14px 8px 8px;
    cursor: pointer;
    font-family: 'Pattaya', sans-serif;
    font-size: 17px;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    transition: 0.2s ease;
}

.member-session-toggle:hover {
    background: transparent !important;
    border-color: #ffd21a;
    box-shadow: 0 0 14px rgb(255, 204, 0);
    color: #ffd21a;
}

.member-session-toggle img,
.member-session-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #00c8b8;
    object-fit: cover;
    flex-shrink: 0;
}

.member-session-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #263238;
    color: #ffd21a;
}

.member-session-toggle span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.member-session-toggle small {
    color: #00c8b8;
    font-size: 13px;
    margin-top: 3px;
}

.member-session-arrow {
    color: #ffd21a;
    font-size: 16px;
    margin-left: 4px;
}

.member-session-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    background: #1c2428;
    border: 2px solid #00c8b8;
    border-radius: 22px;
    padding: 10px;
    z-index: 50;
    box-shadow: 0 18px 38px rgba(0,0,0,.45);
}

.member-session-dropdown.open {
    display: grid;
    gap: 6px;
}

.member-session-dropdown a {
    color: #ffd21a;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.member-session-dropdown a:hover {
    background: rgba(0, 200, 184, .14);
    color: #00c8b8;
}

.member-session-dropdown hr {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(0,200,184,.35);
    margin: 6px 0;
}

.member-session-dropdown .logout-link {
    color: #ff7b7b;
}

.member-session-guest {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffd21a;
}

@media (max-width: 650px) {
    .member-session-bar {
        justify-content: center;
    }

    .member-session-toggle {
        width: 100%;
        max-width: 100%;
    }

    .member-session-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 40px);
    }
}

.reservation-list {
    display: grid;
    gap: 22px;
}

.reservation-user-card {
    border: 2px solid #00c8b8;
    border-radius: 26px;
    padding: 24px;
    background: rgba(28, 36, 40, 0.7);
}

.reservation-user-card.pending {
    border-color: #ffd21a;
}

.reservation-user-card.confirmed {
    border-color: #00c8b8;
}

.reservation-user-card.expired,
.reservation-user-card.cancelled {
    border-color: #ff5a5a;
    opacity: 0.75;
}

.reservation-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}

.ticket-box {
    margin-top: 22px;
    border: 2px solid #ffd21a;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
}

.ticket-box h3 {
    color: #ffd21a;
    margin-top: 0;
}

.ticket-qr {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    margin: 12px auto;
    display: block;
}

.ticket-token-note {
    color: #00c8b8;
    font-size: 14px;
}

@media (max-width: 700px) {
    .reservation-user-header {
        flex-direction: column;
    }

    .ticket-qr {
        width: 190px;
        height: 190px;
    }
}

.ticket-checked-box {
    border: 2px solid #00c8b8;
    border-radius: 18px;
    padding: 14px;
    margin: 14px 0;
    color: #00c8b8;
    background: rgba(0, 200, 184, 0.08);
}

.ticket-checked-box strong {
    color: #ffd21a;
    display: block;
    margin-bottom: 8px;
}

.ticket-checked-box p {
    margin: 4px 0;
}

/* Mobil dropdown igazítás */
@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .topbar-right {
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .member-session-bar {
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
    }

    .member-session-menu {
        position: static;
        width: 100%;
    }

    .member-session-toggle {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .member-session-dropdown {
        position: absolute;
        left: 0px;
        right: 0px;
        top: auto;
        width: 100%;
        min-width: 0;
        transform: none;
        margin-top: 10px;
        z-index: 9999;
    }
}

.payment-info-box {
    margin-top: 18px;
    border: 2px solid #ffd21a;
    border-radius: 24px;
    padding: 20px;
    background: rgba(255, 210, 26, 0.08);
}

.payment-info-box h3 {
    color: #ffd21a;
    margin-top: 0;
}

.payment-info-box p {
    margin: 8px 0;
}

.payment-info-box strong {
    color: #00c8b8;
}

.room-name-form {
    margin: 12px 0 18px;
}

.room-name-form label {
    display: block;
    color: #00c8b8;
    margin-bottom: 6px;
}

.room-name-edit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.room-name-edit-row input {
    width: 100%;
    box-sizing: border-box;
    background: #1c2428;
    border: 2px solid #00c8b8;
    border-radius: 18px;
    color: #ffd21a;
    padding: 12px 14px;
    font-family: 'Pattaya', sans-serif;
    font-size: 17px;
    outline: none;
}

.room-name-edit-row input:focus {
    border-color: #ffd21a;
    box-shadow: 0 0 12px rgba(255, 210, 26, 0.25);
}

@media (max-width: 650px) {
    .room-name-edit-row {
        grid-template-columns: 1fr;
    }
}

.reservation-user-card.past-event {
    border-color: #ff5a5a;
    opacity: 0.78;
}

.reservation-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.reservation-badge.expired {
    color: #ff7b7b;
    border: 1px solid #ff7b7b;
    background: rgba(255, 90, 90, 0.12);
}

@media (max-width: 700px) {
    .reservation-status-stack {
        justify-content: flex-start;
    }
}