.fyucha-birthday {
    --fyucha-green: #12CC64;
    --fyucha-blue: #40B5F5;
    --fyucha-navy: #15273C;
    --fyucha-white: #FFFFFF;
    --fyucha-muted: #526477;
    --fyucha-border: #dce5eb;
    max-width: 1100px;
    margin: 24px auto;
    padding: clamp(18px, 4vw, 40px);
    color: var(--fyucha-navy);
    background: var(--fyucha-white);
    border: 1px solid var(--fyucha-border);
    border-radius: 18px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.fyucha-birthday__header,
.fyucha-birthday__message,
.fyucha-birthday__profile,
.fyucha-birthday__results,
.fyucha-birthday__pagination {
    grid-column: 1 / -1;
}

.fyucha-birthday *,
.fyucha-birthday *::before,
.fyucha-birthday *::after {
    box-sizing: border-box;
}

.fyucha-birthday [hidden] {
    display: none !important;
}

.fyucha-birthday__header {
    padding: 0 0 22px;
    border-bottom: 3px solid var(--fyucha-green);
}

.fyucha-birthday__eyebrow {
    margin: 0 0 8px;
    color: #087d3b;
    font-weight: 800;
    letter-spacing: .12em;
    font-size: .8rem;
}

.fyucha-birthday__header h2 {
    margin: 0 0 12px;
    color: var(--fyucha-navy);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.fyucha-birthday__header p:last-child {
    margin-bottom: 0;
}

.fyucha-birthday__panel {
    margin: 22px 0;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--fyucha-border);
    border-radius: 14px;
    background: #f8fbfd;
}

.fyucha-birthday__search label,
.fyucha-birthday__date-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--fyucha-navy);
    font-weight: 700;
}

.fyucha-birthday__search-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.fyucha-birthday__search input,
.fyucha-birthday__date-form input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #b8c7d2;
    border-radius: 8px;
    background: #fff;
    color: var(--fyucha-navy);
    font: inherit;
}

.fyucha-birthday__search input:focus,
.fyucha-birthday__date-form input:focus {
    border-color: var(--fyucha-blue);
    outline: 3px solid rgb(64 181 245 / 24%);
    outline-offset: 1px;
}

.fyucha-birthday__search input:disabled,
.fyucha-birthday__date-form input:disabled {
    background: #f3f6f8;
    cursor: not-allowed;
}

.fyucha-birthday button {
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid var(--fyucha-navy);
    border-radius: 8px;
    background: var(--fyucha-navy);
    color: var(--fyucha-white);
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease,
        transform .15s ease;
}

.fyucha-birthday button:hover:not(:disabled) {
    border-color: #087d3b;
    background: #087d3b;
}

.fyucha-birthday button:focus-visible {
    outline: 3px solid var(--fyucha-blue);
    outline-offset: 3px;
}

.fyucha-birthday button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.fyucha-birthday__hint {
    margin: 9px 0 0;
    color: var(--fyucha-muted);
    font-size: .9rem;
}

.fyucha-birthday__message {
    margin: 20px 0;
    padding: 13px 16px;
    border-left: 4px solid var(--fyucha-blue);
    border-radius: 7px;
    background: #f0f9ff;
    color: var(--fyucha-navy);
    overflow-wrap: anywhere;
}

.fyucha-birthday__message.is-error {
    border-left-color: #c62828;
    background: #fff4f4;
    color: #8b1d1d;
}

.fyucha-birthday__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.fyucha-birthday-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--fyucha-border);
    border-top: 4px solid var(--fyucha-green);
    border-radius: 12px;
    background: var(--fyucha-white);
    box-shadow: 0 3px 12px rgb(21 39 60 / 5%);
}

.fyucha-birthday-player-name {
    margin: 0;
    color: var(--fyucha-navy);
    font-size: 1.1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.fyucha-birthday-player-dob {
    margin: 0;
    color: var(--fyucha-navy);
    font-weight: 700;
}

.fyucha-birthday-player-status {
    margin: 0;
    color: var(--fyucha-muted);
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.fyucha-birthday-view-profile {
    margin-top: auto;
    background: var(--fyucha-green) !important;
    border-color: var(--fyucha-green) !important;
    color: #102b1c !important;
}

.fyucha-birthday-view-profile:hover:not(:disabled) {
    background: #a0f2c1 !important;
    border-color: #087d3b !important;
}

.fyucha-birthday-empty,
.fyucha-birthday-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background: #f5f8fa;
    overflow-wrap: anywhere;
}

.fyucha-birthday-error {
    background: #fff4f4;
    color: #8b1d1d;
}

.fyucha-birthday__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 26px 0;
}

#fyucha-birthday-page-label {
    color: var(--fyucha-navy);
    font-weight: 700;
    text-align: center;
}


/* Profile modal preparation */
.fyucha-birthday__profile[hidden] {
    display: none !important;
}

.fyucha-birthday__profile:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: rgba(13, 27, 42, 0.76);
}

.fyucha-birthday__profile:not([hidden]) > * {
    box-sizing: border-box;
}

.fyucha-birthday__profile:not([hidden]) #fyucha-birthday-profile-content {
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--fyucha-border);
    border-top: 5px solid var(--fyucha-blue);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.fyucha-birthday__profile:not([hidden]) .fyucha-birthday__back {
    position: absolute;
    top: 18px;
    right: 18px;
    margin: 0;
    background: #fff !important;
    color: var(--fyucha-navy) !important;
}

@media (max-width: 560px) {
    .fyucha-birthday__profile:not([hidden]) {
        align-items: flex-start;
        padding: 64px 12px 12px;
    }

    .fyucha-birthday__profile:not([hidden]) #fyucha-birthday-profile-content {
        max-height: calc(100vh - 84px);
        padding: 20px 16px;
    }

    .fyucha-birthday__profile:not([hidden]) .fyucha-birthday__back {
        top: 12px;
        right: 12px;
    }
}

.fyucha-birthday__profile {
    margin: 24px 0;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid var(--fyucha-border);
    border-top: 5px solid var(--fyucha-blue);
    border-radius: 14px;
    background: #f8fbfd;
}

.fyucha-birthday__back {
    margin-bottom: 20px;
    background: transparent !important;
    border-color: var(--fyucha-navy) !important;
    color: var(--fyucha-navy) !important;
}

.fyucha-birthday__back:hover:not(:disabled) {
    background: #e8f5fc !important;
}

.fyucha-birthday-profile-name {
    margin: 0 0 22px;
    color: var(--fyucha-navy);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.fyucha-birthday-profile-field {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--fyucha-border);
    overflow-wrap: anywhere;
}

.fyucha-birthday-profile-field:last-child {
    border-bottom: 0;
}

.fyucha-birthday-profile-field strong {
    color: var(--fyucha-navy);
}

.fyucha-birthday__footer {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--fyucha-border);
    color: var(--fyucha-muted);
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 850px) {
    .fyucha-birthday__results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .fyucha-birthday {
        margin: 14px auto;
        padding: 16px;
        border-radius: 12px;
    }

    .fyucha-birthday__panel {
        margin: 16px 0;
        padding: 15px;
    }

    .fyucha-birthday__search-row {
        flex-direction: column;
    }

    .fyucha-birthday__search-row button {
        width: 100%;
    }

    .fyucha-birthday__results {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .fyucha-birthday-card {
        padding: 17px;
    }

    .fyucha-birthday__pagination {
        gap: 9px;
    }

    .fyucha-birthday__pagination button {
        padding: 10px 13px;
    }
}

@media (max-width: 700px) {
    .fyucha-birthday {
        display: block;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fyucha-birthday button {
        transition: none;
    }
}

/* FYUCHA BIRTHDAY PROFILE PORTRAIT AND SHARING */
.fyucha-birthday-profile-portrait {
    display: block;
    width: 180px;
    height: 180px;
    max-width: 65%;
    object-fit: cover;
    object-position: center top;
    margin: 8px auto 20px;
    border-radius: 50%;
    border: 4px solid #12CC64;
    background: #f2f5f7;
    box-shadow: 0 4px 16px rgba(21, 39, 60, 0.16);
}

.fyucha-birthday-share {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8ee;
}

.fyucha-birthday-share-title {
    margin: 0 0 12px;
    color: #15273C;
    font-size: 1.05rem;
    font-weight: 700;
}

.fyucha-birthday-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fyucha-birthday-share-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #15273C;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fyucha-birthday-share-buttons button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.fyucha-birthday-share-buttons button:focus-visible {
    outline: 3px solid #40B5F5;
    outline-offset: 3px;
}

.fyucha-birthday-share-buttons .fyucha-share-whatsapp {
    background: #128C4A;
}

.fyucha-birthday-share-buttons .fyucha-share-facebook {
    background: #1877F2;
}

.fyucha-birthday-share-buttons .fyucha-share-x {
    background: #000000;
}

.fyucha-birthday-share-buttons .fyucha-share-copy {
    background: #15273C;
}

.fyucha-birthday-share-buttons .fyucha-share-more {
    background: #40B5F5;
    color: #15273C;
}

@media (max-width: 480px) {
    .fyucha-birthday-profile-portrait {
        width: 145px;
        height: 145px;
    }

    .fyucha-birthday-share-buttons {
        gap: 8px;
    }

    .fyucha-birthday-share-buttons button {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.88rem;
    }
}
