.partner-page {
    max-width: 1240px;
}

.partner-hero {
    max-width: 820px;
    margin: 0 auto 3rem;
    text-align: center;
}

.partner-hero h1 {
    margin-bottom: 1rem;
}

.partner-hero > p:last-child {
    color: var(--color-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.partner-kicker {
    margin-bottom: 0.7rem;
    color: #f9d423;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.discount-grid,
.recommendation-grid {
    display: grid;
    gap: 1.5rem;
}

.discount-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

.recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.discount-card,
.recommendation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(249, 212, 35, 0.09), transparent 38%),
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.discount-card {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.7rem;
}

.discount-card.has-image {
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.discount-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.discount-image-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.discount-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discount-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.partner-name {
    color: var(--color-gold-light);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.discount-value {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f9d423, #a3c98b);
    color: var(--color-bg);
    font-size: 0.76rem;
    font-weight: 600;
}

.discount-card h2,
.recommendation-body h2 {
    margin-bottom: 0.8rem;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.35;
}

.discount-description,
.recommendation-description {
    color: var(--color-muted);
    line-height: 1.65;
}

.discount-description {
    flex: 1;
    margin-bottom: 1.35rem;
}

.discount-code-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 0.8rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px dashed rgba(249, 212, 35, 0.46);
    border-radius: 12px;
    background: rgba(15, 36, 27, 0.65);
}

.discount-code-label {
    color: var(--color-muted);
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.discount-code {
    grid-column: 1;
    color: #f9d423;
    font-size: 1.22rem;
    letter-spacing: 1.5px;
    overflow-wrap: anywhere;
}

.copy-code-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(249, 212, 35, 0.45);
    border-radius: 8px;
    background: rgba(249, 212, 35, 0.09);
    color: #f9d423;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.copy-code-btn:hover,
.copy-code-btn:focus-visible {
    background: #f9d423;
    color: var(--color-bg);
}

.offer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    gap: 0.75rem;
    padding: 0.95rem 1.25rem;
    border: 1px solid rgba(255, 242, 125, 0.75);
    border-radius: 11px;
    background: linear-gradient(135deg, #ffe229 0%, #f9d423 48%, #b8da8e 100%);
    color: var(--color-bg);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(249, 212, 35, 0.28), inset 0 1px 0 rgba(255,255,255,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.offer-link::after {
    content: '→';
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.offer-link:hover,
.offer-link:focus-visible {
    color: var(--color-bg);
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow: 0 15px 34px rgba(249, 212, 35, 0.4), inset 0 1px 0 rgba(255,255,255,0.55);
}

.offer-link:hover::after,
.offer-link:focus-visible::after {
    transform: translateX(4px);
}

.partner-meta {
    margin-top: 0.9rem;
    color: var(--color-muted);
    font-size: 0.72rem;
    text-align: center;
}

.tiktok-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 650px;
    overflow: hidden;
    background: #07150f;
}

.tiktok-player-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.recommendation-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.recommendation-description {
    flex: 1;
    margin-bottom: 1.2rem;
}

.partner-loading,
.partner-empty,
.partner-error {
    grid-column: 1 / -1;
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-muted);
    text-align: center;
}

.partner-error {
    border-color: rgba(217, 83, 79, 0.45);
    color: #f2aaa7;
}

.copy-notice {
    position: fixed;
    z-index: 1200;
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: calc(100% - 2.5rem);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(249, 212, 35, 0.4);
    border-radius: 10px;
    background: #183629;
    color: var(--color-text);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-notice.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1450px) {
    .partner-page {
        padding-top: 9rem;
    }
}

@media (max-width: 900px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 680px;
    }
}

@media (max-width: 780px) {
    .discount-card.has-image {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .discount-image-wrap {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .partner-page {
        padding: 12rem 1rem 2rem;
    }

    .partner-hero {
        margin-bottom: 2rem;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .discount-card {
        padding: 1.25rem;
    }

    .discount-code-box {
        grid-template-columns: 1fr;
    }

    .copy-code-btn {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0.55rem;
    }
}
