﻿.gymspin-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #fefcf9, #f6ece3);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    align-items: stretch;
    flex-wrap: wrap;
}

.gymspin-left,
.gymspin-right {
    flex: 1 1 320px;
    min-width: 280px;
}

.gymspin-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.6rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.gymspin-ig-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border: 1px solid rgba(57,37,45,0.08);
}

.gymspin-ig-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gymspin-ig-avatar {
    min-width: 54px;
    min-height: 54px;
    border-radius: 50%;
    background-color: #f9b422;
    background-image: url('../logo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    box-shadow: inset 0 0 0 2px rgba(57,37,45,0.15);
}

.gymspin-ig-handle {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #221521;
}

.gymspin-ig-bio {
    margin: 0;
    color: #6f5a55;
    font-size: 0.9rem;
}

.gymspin-ig-follow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #f9b422;
    color: #221521;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    width: fit-content;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gymspin-ig-follow:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(249,180,34,0.4);
}

.gymspin-form-card .gymspin-card-title {
    margin-bottom: 0.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #221521;
}

.gymspin-form-card .gymspin-card-subtitle {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #6f5a55;
    font-size: 0.95rem;
}

.gymspin-form-card .gymspin-field {
    margin-bottom: 0.9rem;
}

.gymspin-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.gymspin-field input[type="text"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(57,37,45,0.15);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    background: #fcfbfa;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.gymspin-field input[type="text"]:focus {
    outline: none;
    border-color: #f9b422;
    box-shadow: 0 0 0 3px rgba(249,180,34,0.25);
}

.gymspin-hidden {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

.gymspin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gymspin-btn-verify {
    background: #221521;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(34,21,33,0.35);
}

.gymspin-btn-verify:hover:enabled {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(34,21,33,0.4);
}

.gymspin-btn-spin {
    background: linear-gradient(135deg, #f9b422, #f6a500);
    color: #221521;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    box-shadow: 0 12px 30px rgba(249,180,34,0.45);
}

.gymspin-btn-spin:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.gymspin-message {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    min-height: 1.3rem;
}

.gymspin-message.gymspin-success {
    color: #1d8b5b;
}

.gymspin-message.gymspin-error {
    color: #d43b3b;
}

.gymspin-wheel-card {
    background: #fff;
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(34,21,33,0.05), 0 20px 40px rgba(34,21,33,0.18);
}

.gymspin-wheel-wrapper {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

#gymspin-wheel {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}

.gymspin-pointer {
    background: #ffffff00;
    border-radius: 40px;
    position: absolute;
    top: 5%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 35px solid #ffffff;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 8px 18px rgb(223 255 7 / 30%);
}

.gymspin-spin-badge {
    position: absolute;
    bottom: -30px;
    right: 50%;
    transform: translateX(50%);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    color: #221521;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.gymspin-result-card {
    border-radius: 24px;
    background: #fefefe;
    padding: 1.6rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.09);
    margin-top: 1.5rem;
}

.gymspin-result-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #221521;
}

.gymspin-result-card-subtitle {
    margin: 0.3rem 0 1.2rem;
    color: #6f5a55;
}

.gymspin-coupon-box {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px;
}

.gymspin-coupon-hero {
    margin: 0;
    font-weight: 700;
    color: #221521;
    font-size: 1.1rem;
}

.gymspin-coupon-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0.7rem 0;
    flex-wrap: wrap;
}

.gymspin-coupon-code-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gymspin-coupon-label {
    font-size: 0.9rem;
    color: #6f5a55;
}

.gymspin-coupon-code {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: #221521;
}

.gymspin-copy-btn {
    border-radius: 999px;
    border: none;
    background: #f9b422;
    color: #221521;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gymspin-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(249,180,34,0.4);
}

.gymspin-coupon-info {
    margin: 0;
    color: #6f5a55;
    font-size: 0.9rem;
}

.gymspin-remaining {
    margin-top: 0.75rem;
    font-weight: 600;
    color: #221521;
}

.gymspin-leaderboard-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #221521;
}

#gymspin-leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

#gymspin-leaderboard-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6f5a55;
    border-bottom: 1px dashed rgba(34,21,33,0.2);
    padding-bottom: 0.4rem;
}

#gymspin-leaderboard-list li:last-child {
    border-bottom: none;
}

.gymspin-lb-user {
    font-weight: 600;
    color: #221521;
}

.gymspin-lb-prize {
    color: #f9b422;
    font-weight: 700;
}

@media (max-width: 992px) {
    .gymspin-wrapper {
        flex-direction: column;
        padding: 5px;
    }
}

@media (max-width: 768px) {
    .gymspin-card {
        padding: 1.3rem;
    }
    .gymspin-wheel-card {
        padding: 1rem;
    }
    .gymspin-wheel-wrapper {
        width: 100%;
    }
    .gymspin-spin-badge {
        position: static;
        transform: none;
        margin-top: 0.6rem;
    }
}
