/* ==========================================================================
   ROSMOSIS AFFILIATE - Premium Design v2.0
   Matched to Rosmosis theme style (granat #1f5fa8 + kremowe tla)
   ========================================================================== */

:root {
    --rosmo-aff-primary: #1f5fa8;
    --rosmo-aff-primary-dark: #154a85;
    --rosmo-aff-primary-light: #4a8fc7;
    --rosmo-aff-accent: #ff9d4d;
    --rosmo-aff-success: #28a745;
    --rosmo-aff-warning: #f0a020;
    --rosmo-aff-danger: #c23030;
    --rosmo-aff-bg: #f7fafd;
    --rosmo-aff-bg-card: #ffffff;
    --rosmo-aff-text: #0f2540;
    --rosmo-aff-text-light: #6b7c93;
    --rosmo-aff-border: #e3eaf2;
    --rosmo-aff-radius: 12px;
    --rosmo-aff-radius-sm: 8px;
    --rosmo-aff-shadow-sm: 0 1px 3px rgba(15, 37, 64, 0.05);
    --rosmo-aff-shadow: 0 4px 16px rgba(15, 37, 64, 0.06), 0 1px 3px rgba(15, 37, 64, 0.04);
    --rosmo-aff-shadow-lg: 0 12px 32px rgba(15, 37, 64, 0.1), 0 4px 8px rgba(15, 37, 64, 0.04);
    --rosmo-aff-gradient: linear-gradient(135deg, #154a85 0%, #1f5fa8 60%, #154a85 100%);
    --rosmo-aff-gradient-soft: linear-gradient(135deg, #f0f6fb 0%, #e8f0f7 100%);
    --rosmo-aff-gradient-warm: linear-gradient(135deg, #fff8e7 0%, #fff0d4 100%);
}

.rosmo-aff-wrap,
.rosmo-aff-register,
.rosmo-aff-login,
.rosmo-aff-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--rosmo-aff-text);
    box-sizing: border-box;
    line-height: 1.5;
}

.rosmo-aff-wrap *,
.rosmo-aff-register *,
.rosmo-aff-login *,
.rosmo-aff-dashboard * {
    box-sizing: border-box;
}

/* ==========================================================================
   HERO HEADER (rejestracja) - biały tekst, duży, wyraźny baner
   ========================================================================== */
.ros-page .rosmo-aff-hero,
.rosmo-aff-hero {
    background: var(--rosmo-aff-gradient);
    color: #ffffff;
    padding: 18px 16px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--rosmo-aff-shadow-lg);
    text-align: center;
}

.rosmo-aff-hero__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.rosmo-aff-hero__icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.rosmo-aff-hero__text {
    position: relative;
    z-index: 1;
}

.ros-page .rosmo-aff-hero h1,
.rosmo-aff-hero h1 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(8, 20, 40, 0.4);
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.ros-page .rosmo-aff-hero p,
.rosmo-aff-hero p {
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.4;
    max-width: 100%;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(8, 20, 40, 0.35);
    font-weight: 400;
}

.rosmo-aff-hero p strong {
    color: #ffffff !important;
    font-weight: 700;
}

.rosmo-aff-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rosmo-aff-hero::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive mobile */
@media (max-width: 980px) {
    .rosmo-aff-hero {
        padding: 28px 22px 22px;
    }
}

@media (max-width: 600px) {
    .rosmo-aff-hero {
        padding: 18px 16px 16px;
    }

    .rosmo-aff-hero__icon {
        width: 36px;
        height: 36px;
    }

    .rosmo-aff-hero__icon svg {
        width: 18px;
        height: 18px;
    }

    .rosmo-aff-hero h1 {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .rosmo-aff-hero p {
        font-size: 12px;
    }
}

/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */
.rosmo-aff-page {
    max-width: 87.5%;
    width: 100%;
    margin: 48px auto;
    padding: 0 12px;
    padding: 0 20px;
}

/* ==========================================================================
   FORMULARZ REJESTRACJI
   ========================================================================== */
.rosmo-aff-card {
    background: var(--rosmo-aff-bg-card);
    border: 1px solid var(--rosmo-aff-border);
    border-radius: var(--rosmo-aff-radius);
    padding: 36px 36px;
    box-shadow: var(--rosmo-aff-shadow);
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.rosmo-aff-form {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}
}

.rosmo-aff-form .rosmo-aff-row {
    margin-bottom: 20px;
}

.rosmo-aff-form .rosmo-aff-row--inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rosmo-aff-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--rosmo-aff-text);
    letter-spacing: 0.2px;
}

.rosmo-aff-form label .rosmo-aff-required {
    color: var(--rosmo-aff-danger);
    margin-left: 2px;
}

.rosmo-aff-form label .rosmo-aff-optional {
    color: var(--rosmo-aff-text-light);
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.rosmo-aff-form input[type="text"],
.rosmo-aff-form input[type="email"],
.rosmo-aff-form input[type="tel"],
.rosmo-aff-form input[type="password"],
.rosmo-aff-form input[type="number"],
.rosmo-aff-form select,
.rosmo-aff-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--rosmo-aff-border);
    border-radius: var(--rosmo-aff-radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--rosmo-aff-text);
    background: #fff;
    color: var(--rosmo-aff-text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.rosmo-aff-form input::placeholder,
.rosmo-aff-form textarea::placeholder {
    color: #8a96a3;
    font-weight: 400;
}

.rosmo-aff-form input:focus,
.rosmo-aff-form select:focus,
.rosmo-aff-form textarea:focus {
    outline: none;
    border-color: var(--rosmo-aff-primary);
    box-shadow: 0 0 0 4px rgba(31, 95, 168, 0.1);
}

.rosmo-aff-form input:hover:not(:focus),
.rosmo-aff-form select:hover:not(:focus),
.rosmo-aff-form textarea:hover:not(:focus) {
    border-color: #c8d3df;
}

.rosmo-aff-form textarea {
    min-height: 80px;
    resize: vertical;
}

.rosmo-aff-form .rosmo-aff-checkbox label {
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rosmo-aff-text);
    margin-bottom: 0;
}

.rosmo-aff-form .rosmo-aff-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.rosmo-aff-form .rosmo-aff-checkbox a {
    color: var(--rosmo-aff-primary);
    text-decoration: underline;
}

.rosmo-aff-btn {
    background: var(--rosmo-aff-gradient);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: var(--rosmo-aff-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(31, 95, 168, 0.25);
    letter-spacing: 0.2px;
    font-family: inherit;
}

.rosmo-aff-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(31, 95, 168, 0.35);
    color: #fff;
    text-decoration: none;
}

.rosmo-aff-btn:active {
    transform: translateY(0);
}

.rosmo-aff-btn--large {
    padding: 16px 40px;
    font-size: 16px;
}

.rosmo-aff-btn--block {
    width: 100%;
}

.rosmo-aff-btn--secondary {
    background: #fff;
    color: var(--rosmo-aff-primary);
    border: 2px solid var(--rosmo-aff-border);
    box-shadow: none;
}

.rosmo-aff-btn--secondary:hover {
    border-color: var(--rosmo-aff-primary);
    background: var(--rosmo-aff-gradient-soft);
    color: var(--rosmo-aff-primary-dark);
}

.rosmo-aff-btn--ghost {
    background: transparent;
    color: var(--rosmo-aff-primary);
    box-shadow: none;
    padding: 8px 16px;
}

.rosmo-aff-btn--ghost:hover {
    background: var(--rosmo-aff-gradient-soft);
    color: var(--rosmo-aff-primary-dark);
}

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */
.rosmo-aff-notice {
    padding: 14px 18px;
    border-radius: var(--rosmo-aff-radius-sm);
    margin-bottom: 20px;
    background: var(--rosmo-aff-gradient-soft);
    color: var(--rosmo-aff-text);
    border-left: 4px solid var(--rosmo-aff-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.rosmo-aff-notice::before {
    content: "ℹ";
    font-size: 18px;
    color: var(--rosmo-aff-primary);
}

.rosmo-aff-notice--error {
    background: #fef0f0;
    color: #8a2020;
    border-left-color: var(--rosmo-aff-danger);
}
.rosmo-aff-notice--error::before {
    content: "⚠";
    color: var(--rosmo-aff-danger);
}

.rosmo-aff-notice--success {
    background: #f0faf3;
    color: #1a6e2b;
    border-left-color: var(--rosmo-aff-success);
}
.rosmo-aff-notice--success::before {
    content: "✓";
    color: var(--rosmo-aff-success);
}

.rosmo-aff-notice--warning {
    background: var(--rosmo-aff-gradient-warm);
    color: #8a6010;
    border-left-color: var(--rosmo-aff-warning);
}
.rosmo-aff-notice--warning::before {
    content: "⏰";
    color: var(--rosmo-aff-warning);
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.rosmo-aff-dashboard-header {
    background: var(--rosmo-aff-gradient);
    color: #fff;
    padding: 48px 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--rosmo-aff-shadow-lg);
}

.rosmo-aff-dashboard-header::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.rosmo-aff-greeting {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.rosmo-aff-dashboard-header h1 {
    margin: 0 0 12px 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(15, 37, 64, 0.25);
}

.rosmo-aff-dashboard-header p {
    margin: 0;
    font-size: 16px;
    opacity: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.96) !important;
    text-shadow: 0 1px 3px rgba(15, 37, 64, 0.2);
}

.rosmo-aff-quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.rosmo-aff-quick-actions .rosmo-aff-btn {
    background: rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: none;
    padding: 10px 18px;
    font-size: 14px;
}

.rosmo-aff-quick-actions .rosmo-aff-btn:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
}

/* Stats grid */
.rosmo-aff-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.rosmo-aff-stat {
    background: var(--rosmo-aff-bg-card);
    border: 1px solid var(--rosmo-aff-border);
    border-radius: var(--rosmo-aff-radius);
    padding: 24px 20px;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.rosmo-aff-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--rosmo-aff-shadow);
    border-color: var(--rosmo-aff-primary-light);
}

.rosmo-aff-stat__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--rosmo-aff-gradient-soft);
}

.rosmo-aff-stat__icon svg {
    width: 22px;
    height: 22px;
    color: var(--rosmo-aff-primary);
}

.rosmo-aff-stat__label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--rosmo-aff-text-light);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.rosmo-aff-stat__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--rosmo-aff-text);
    line-height: 1.2;
}

.rosmo-aff-stat--primary {
    background: var(--rosmo-aff-gradient);
    color: #fff;
    border-color: transparent;
}

.rosmo-aff-stat--primary .rosmo-aff-stat__label,
.rosmo-aff-stat--primary .rosmo-aff-stat__value {
    color: #fff;
}

.rosmo-aff-stat--primary .rosmo-aff-stat__icon {
    background: rgba(255,255,255,0.2);
}

.rosmo-aff-stat--primary .rosmo-aff-stat__icon svg {
    color: #fff;
}

.rosmo-aff-stat--success {
    background: linear-gradient(135deg, #e8f7ee 0%, #d8f0e0 100%);
    border-color: #b8e0c4;
}

.rosmo-aff-stat--success .rosmo-aff-stat__icon {
    background: #fff;
}

.rosmo-aff-stat--warning {
    background: var(--rosmo-aff-gradient-warm);
    border-color: #f0d590;
}

/* Section card */
.rosmo-aff-section {
    background: var(--rosmo-aff-bg-card);
    border: 1px solid var(--rosmo-aff-border);
    border-radius: var(--rosmo-aff-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--rosmo-aff-shadow-sm);
}

.rosmo-aff-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rosmo-aff-border);
}

.rosmo-aff-section__icon {
    width: 44px;
    height: 44px;
    background: var(--rosmo-aff-gradient-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rosmo-aff-primary);
    flex-shrink: 0;
}

.rosmo-aff-section__icon svg {
    width: 22px;
    height: 22px;
}

.rosmo-aff-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rosmo-aff-text);
}

.rosmo-aff-section__subtitle {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--rosmo-aff-text-light);
}

/* Link box */
.rosmo-aff-link-box {
    background: var(--rosmo-aff-gradient-soft);
    border: 1.5px dashed var(--rosmo-aff-primary-light);
    border-radius: var(--rosmo-aff-radius-sm);
    padding: 18px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.rosmo-aff-link-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    color: var(--rosmo-aff-text);
    font-weight: 500;
}

.rosmo-aff-link-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
}

.rosmo-aff-link-box button {
    background: var(--rosmo-aff-gradient);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--rosmo-aff-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.rosmo-aff-link-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 95, 168, 0.3);
}

.rosmo-aff-link-box button.copied {
    background: var(--rosmo-aff-success);
}

.rosmo-aff-hint {
    font-size: 13px;
    color: var(--rosmo-aff-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.rosmo-aff-hint::before {
    content: "💡";
    font-size: 13px;
}

/* Payout form */
.rosmo-aff-payout {
    background: linear-gradient(135deg, #fff8e7 0%, #fff0d4 100%);
    border: 1.5px solid #f0d590;
    border-radius: var(--rosmo-aff-radius);
    padding: 28px;
    margin-top: 8px;
}

.rosmo-aff-payout__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #8a6010;
    margin-bottom: 12px;
    font-size: 16px;
}

.rosmo-aff-payout__title svg {
    width: 22px;
    height: 22px;
}

.rosmo-aff-payout__desc {
    margin: 0 0 18px 0;
    font-size: 14px;
    color: #6b7c93;
    line-height: 1.6;
}

/* Table */
.rosmo-aff-table-wrap {
    overflow-x: auto;
    border-radius: var(--rosmo-aff-radius-sm);
    border: 1px solid var(--rosmo-aff-border);
}

.rosmo-aff-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.rosmo-aff-table th,
.rosmo-aff-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--rosmo-aff-border);
}

.rosmo-aff-table th {
    background: #fafbfc;
    font-weight: 700;
    color: var(--rosmo-aff-text);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rosmo-aff-table tbody tr {
    transition: background 0.15s ease;
}

.rosmo-aff-table tbody tr:hover {
    background: var(--rosmo-aff-gradient-soft);
}

.rosmo-aff-table tbody tr:last-child td {
    border-bottom: none;
}

.rosmo-aff-table .amount {
    font-weight: 700;
    color: var(--rosmo-aff-text);
}

/* Status badges */
.rosmo-aff-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.rosmo-aff-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.rosmo-aff-status--pending {
    background: #fff3cd;
    color: #856404;
}

.rosmo-aff-status--approved {
    background: #d4edda;
    color: #155724;
}

.rosmo-aff-status--paid {
    background: #cce5ff;
    color: #004085;
}

.rosmo-aff-status--rejected,
.rosmo-aff-status--cancelled {
    background: #f8d7da;
    color: #721c24;
}

.rosmo-aff-status--requested {
    background: #fff3cd;
    color: #856404;
}

/* Empty state */
.rosmo-aff-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--rosmo-aff-text-light);
}

.rosmo-aff-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--rosmo-aff-gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rosmo-aff-primary-light);
}

.rosmo-aff-empty__icon svg {
    width: 32px;
    height: 32px;
}

.rosmo-aff-empty__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--rosmo-aff-text);
    margin-bottom: 6px;
}

/* Login form */
.rosmo-aff-login-card {
    max-width: 460px;
    margin: 80px auto;
}

.rosmo-aff-login-card .rosmo-aff-card {
    text-align: center;
}

/* Sponsor notice */
.rosmo-aff-sponsor {
    padding: 14px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #e8f7ee 0%, #d8f0e0 100%);
    border: 1px solid #b8e0c4;
    border-radius: var(--rosmo-aff-radius-sm);
    color: #1a6e2b;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.rosmo-aff-sponsor__icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rosmo-aff-sponsor__icon svg {
    width: 18px;
    height: 18px;
    color: var(--rosmo-aff-success);
}

/* Animations */
@keyframes rosmo-aff-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rosmo-aff-register,
.rosmo-aff-login,
.rosmo-aff-dashboard {
    animation: rosmo-aff-fade-in 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .rosmo-aff-page {
        margin: 24px auto;
    }
    .rosmo-aff-hero,
    .rosmo-aff-dashboard-header {
        padding: 36px 24px;
    }
    .rosmo-aff-hero h1,
    .rosmo-aff-dashboard-header h1 {
        font-size: 26px;
    }
    .rosmo-aff-card,
    .rosmo-aff-section {
        padding: 24px 20px;
    }
    .rosmo-aff-form .rosmo-aff-row--inline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .rosmo-aff-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .rosmo-aff-stat {
        padding: 18px 14px;
    }
    .rosmo-aff-stat__value {
        font-size: 20px;
    }
    .rosmo-aff-link-box {
        flex-direction: column;
        align-items: stretch;
    }
    .rosmo-aff-link-box button {
        width: 100%;
    }
    .rosmo-aff-table th,
    .rosmo-aff-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .rosmo-aff-stats {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   SPLIT LAYOUT (rejestracja) - 2 kolumny desktop, 1 mobile
   ========================================================================== */
.rosmo-aff-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 8px;
    grid-template-areas: "form info";
    flex-wrap: nowrap;
}

.rosmo-aff-split__form {
    grid-area: form;
}

.rosmo-aff-split__info {
    grid-area: info;
}

.rosmo-aff-split__form {
    min-width: 0;
}

.rosmo-aff-split__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

/* Card header in form (left column) */
.rosmo-aff-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rosmo-aff-border);
}

.rosmo-aff-card__header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--rosmo-aff-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(31, 95, 168, 0.25);
}

.rosmo-aff-card__header-icon svg {
    width: 22px;
    height: 22px;
}

.rosmo-aff-card__title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--rosmo-aff-text) !important;
    text-shadow: none !important;
}

.rosmo-aff-card__subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--rosmo-aff-text-light);
}

/* Info card (right column) */
.rosmo-aff-info-card {
    background: var(--rosmo-aff-bg-card);
    border: 1px solid var(--rosmo-aff-border);
    border-radius: var(--rosmo-aff-radius-sm);
    padding: 14px 14px;
    box-shadow: var(--rosmo-aff-shadow-sm);
}

.rosmo-aff-info-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rosmo-aff-info-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--rosmo-aff-gradient-soft);
    color: var(--rosmo-aff-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rosmo-aff-info-card__icon svg {
    width: 16px;
    height: 16px;
}

.rosmo-aff-info-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--rosmo-aff-text) !important;
    text-shadow: none !important;
}

/* Info list - korzyści */
.rosmo-aff-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rosmo-aff-info-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rosmo-aff-info-list__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rosmo-aff-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rosmo-aff-info-list__icon svg {
    width: 9px;
    height: 9px;
    stroke-width: 3;
}

.rosmo-aff-info-list__content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rosmo-aff-info-list__content strong {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--rosmo-aff-text);
    white-space: nowrap;
}

.rosmo-aff-info-list__content strong::after {
    content: " — ";
    color: var(--rosmo-aff-text-light);
    font-weight: 400;
}

.rosmo-aff-info-list__content p {
    display: inline;
    margin: 0;
    font-size: 11px;
    color: var(--rosmo-aff-text-light);
    line-height: 1.35;
}

/* Login card (right column bottom) */
.rosmo-aff-info-card--login {
    text-align: center;
    background: var(--rosmo-aff-gradient-soft);
    border-color: rgba(31, 95, 168, 0.15);
    padding: 14px 16px !important;
}

.rosmo-aff-info-card--login p {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: var(--rosmo-aff-text);
    font-weight: 600;
}

.rosmo-aff-info-card--login small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--rosmo-aff-text-light);
}

.rosmo-aff-info-card--login .rosmo-aff-btn--outline {
    margin-top: 4px;
}

/* Outline button variant */
.rosmo-aff-btn--outline {
    background: transparent !important;
    color: var(--rosmo-aff-primary) !important;
    border: 2px solid var(--rosmo-aff-primary) !important;
    box-shadow: none !important;
}

.rosmo-aff-btn--outline:hover {
    background: var(--rosmo-aff-primary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Responsive: tablet */
@media (max-width: 980px) {
    .rosmo-aff-split {
        grid-template-columns: 1fr;
        grid-template-areas: "form" "info";
        gap: 24px;
    }

    .rosmo-aff-split__info {
        position: static;
    }
}

/* Responsive: mobile */
@media (max-width: 700px) {
    .rosmo-aff-hero {
        padding: 32px 22px 28px;
    }

    .rosmo-aff-hero__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }

    .rosmo-aff-hero__icon svg {
        width: 32px;
        height: 32px;
    }

    .rosmo-aff-hero h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .rosmo-aff-hero p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .rosmo-aff-info-card {
        padding: 20px 18px;
    }

    .rosmo-aff-card__header {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .rosmo-aff-card__header-icon {
        width: 40px;
        height: 40px;
    }

    .rosmo-aff-card__header-icon svg {
        width: 18px;
        height: 18px;
    }

    .rosmo-aff-card__title {
        font-size: 15px;
    }
}

/* ==========================================================================
   FORCE WIDE 7/8 - overrides Rosmosis .ros-page__inner narrow 920px
   ========================================================================== */
.ros-page__inner:has(.rosmo-aff-page),
.rosmo-aff-page {
    max-width: 87.5vw !important;
    width: 100% !important;
}

.ros-page:has(.rosmo-aff-page) {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Wymuszenie że form i banner zajmują pełną szerokość sekcji */
.rosmo-aff-page,
.rosmo-aff-split {
    width: 100%;
}

/* Gdy :has() nie zadziała - fallback przez > selektor */
.ros-page__inner > *:has(.rosmo-aff-page),
section.ros-page > .ros-page__inner:has(.rosmo-aff-page) {
    max-width: 100% !important;
}


/* ============================================================== */
/* HERO FULLWIDTH ABOVE SPLIT + FORM SPACING - 2026-07-01 17:14  */
/* ============================================================== */

/* Hero: fullwidth banner z wiekszymi fontami (bo przeniesiony nad formularz) */
.ros-page .rosmo-aff-hero,
.rosmo-aff-hero {
    background: var(--rosmo-aff-gradient);
    color: #ffffff;
    padding: 28px 40px !important;
    border-radius: 14px !important;
    margin: 0 0 24px 0 !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--rosmo-aff-shadow-lg);
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
}

.rosmo-aff-hero__icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.rosmo-aff-hero__icon svg {
    width: 28px !important;
    height: 28px !important;
}

.rosmo-aff-hero__text {
    max-width: 720px !important;
}

.ros-page .rosmo-aff-hero h1,
.rosmo-aff-hero h1 {
    margin: 0 0 8px 0 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.ros-page .rosmo-aff-hero p,
.rosmo-aff-hero p {
    margin: 0 auto !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 640px !important;
}

/* Hero desktop: ikona obok tekstu (side-by-side) */
@media (min-width: 768px) {
    .rosmo-aff-hero {
        flex-direction: row !important;
        text-align: left !important;
        padding: 24px 32px !important;
        gap: 20px !important;
    }
    .rosmo-aff-hero__text {
        flex: 1 !important;
    }
}

/* ============================================================== */
/* FORMULARZ - WIEKSZY GAP WEWNETRZNY (antyzlewanie)            */
/* ============================================================== */

.ros-page .rosmo-aff-card,
.rosmo-aff-card {
    padding: 36px 40px !important;
}

.rosmo-aff-form {
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

.rosmo-aff-form .rosmo-aff-row {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

.rosmo-aff-form .rosmo-aff-row--inline {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
    margin-bottom: 0 !important;
}

.rosmo-aff-form .rosmo-aff-row > div,
.rosmo-aff-form .rosmo-aff-row--inline > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.rosmo-aff-form label {
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.rosmo-aff-form input[type="text"],
.rosmo-aff-form input[type="email"],
.rosmo-aff-form input[type="tel"],
.rosmo-aff-form input[type="password"],
.rosmo-aff-form input[type="number"],
.rosmo-aff-form select,
.rosmo-aff-form textarea {
    width: 100% !important;
    padding: 14px 16px !important;
}

.rosmo-aff-form .rosmo-aff-checkbox {
    margin-top: 8px !important;
}

.rosmo-aff-form button[type="submit"] {
    margin-top: 12px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
}

/* Formularz mobile: 1 kolumna */
@media (max-width: 640px) {
    .rosmo-aff-form .rosmo-aff-row--inline {
        grid-template-columns: 1fr !important;
    }
    .ros-page .rosmo-aff-card,
    .rosmo-aff-card {
        padding: 24px 20px !important;
    }
    .rosmo-aff-hero {
        padding: 24px 20px !important;
    }
    .rosmo-aff-hero h1 {
        font-size: 22px !important;
    }
}
