:root {
    --bg-start: #007bff;
    --bg-end: #764ba2;
    --primary: #04396D;
    --primary-strong: #08294d;
    --accent: #f97316;
    --accent-hover: #fb923c;
    --accent-soft: #fff7ed;
    --text: #0f172a;
    --muted: #6b7280;
    --card: rgba(255,255,255,0.94);
    --card-strong: #ffffff;
    --line: #dbeafe;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #0f2f57 0%, #5d4aa8 100%);
}

a {
    color: #2563eb;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 44px;
}

.top-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    margin-bottom: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-link img {
    width: 130px;
    max-width: 100%;
    display: block;
}

.login-link,
.back-link {
    color: #fff;
    width: fit-content;
    
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.login-link:hover,
.back-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.22);
}

.content-card {
    background: var(--card-strong);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 28px;
    overflow: hidden;
}

.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #fff7ed 100%);
    border: 1px solid #e0ecff;
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 26px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.hero-grid-full {
    display: grid;
    grid-template-columns: 1fr;
       align-items: stretch;
}

.hero-image-centered {
    display: block;
    width: 60%;
    margin: 0 auto;
}
.hero-image-centered2 {
    display: block;
    width: 70%;
    margin: 0 auto;
    border-radius: 30px;
}

.hero-grid-full a .hero-image-centered {
    display: block;
}

@media (max-width: 768px) {
    .hero-image-centered
   
    {
        width: 100%;
    }
}
@media (max-width: 768px) {
    
    .hero-image-centered2
    {
        border-radius: 18px;
        width: 100%;
        
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(4,57,109,0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1,
.intro-card h1 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.06;
    font-weight: 800;
}

.hero p,
.intro-card p {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.hero-side {
    display: grid;
    gap: 16px;
}

.info-card,
.intro-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}

.intro-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #fff7ed 100%);
    border: 1px solid #e0ecff;
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.info-card h2,
.section-title,
.feature-card h3,
.schedule-card h3,
.pricing-card h3,
.steps-card h3,
.form-title,
.login-title {
    margin: 0 0 12px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.info-card p,
.feature-card p,
.schedule-card p,
.pricing-card p,
.steps-card p,
.pricing-card li,
.steps-card li,
.schedule-item,
.schedule-subitem {
    color: #334155;
    line-height: 1.7;
    font-size: 0.98rem;
}

.feature-grid,
.info-grid,
.pricing-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.feature-card,
.schedule-card,
.pricing-card,
.steps-card,
.form-card,
.login-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.form-card,
.login-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card.full,
.schedule-card.full,
.pricing-card.full,
.steps-card.full {
    grid-column: 1 / -1;
}

.section-block {
    margin-top: 18px;
}

.section-head {
    margin: 0 0 16px;
    padding: 0 4px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.5rem, 2vw, 2.15rem);
}

.section-desc,
.form-desc,
.login-desc {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.location-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5eefc;
}

.location-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.schedule-wrap {
    display: grid;
    gap: 16px;
}

.schedule-day {
    background: linear-gradient(135deg, #04396D 0%, #0b5aa3 100%);
    color: white;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 18px 38px rgba(4,57,109,0.22);
}

.schedule-day h4 {
    margin: 0 0 14px;
    font-size: 1.18rem;
    font-weight: 800;
}

.schedule-part {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    color: var(--text);
    border-left: 5px solid #60a5fa;
}

.schedule-part:last-child {
    margin-bottom: 0;
}

.schedule-part.game {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-left-color: var(--accent);
}

.schedule-part h5 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    color: inherit;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: inherit;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.time-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 70px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37,99,235,0.12);
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.92rem;
}

.schedule-part.game .time-pill {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

ul.clean-list,
ol.clean-list {
    margin: 0;
    padding-left: 1.2rem;
}

.pricing-note,
.small-note {
    margin-top: 12px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    color: #1e3a8a;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.cta-btn.primary,
.submit-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(249,115,22,0.28);
}

.cta-btn.secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid #cfe0ff;
    box-shadow: 0 12px 26px rgba(15,23,42,0.08);
}

.cta-btn:hover,
.cta-btn:focus-visible,
.submit-button:hover,
.feature-card:hover,
.schedule-card:hover,
.pricing-card:hover,
.steps-card:hover,
.info-card:hover,
.back-link:hover,
.login-link:hover {
    transform: translateY(-3px);
}

.footer-note {
    margin-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.84);
    font-size: 0.92rem;
}

.hero-logo {
    display: block;
    margin-top: 18px;
    max-width: 300px;
    width: 100%;
    height: auto;
}

.login-layout,
.forgot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 24px;
    align-items: stretch;
}

.intro-points {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.intro-point {
    background: rgba(255,255,255,0.82);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 12px 24px rgba(15,23,42,0.06);
}

.intro-point strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
}

.success-message,
.error-message {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.success-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-input-wrap {
    position: relative;
}

.form-input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 2px solid #dbeafe;
    border-radius: 16px;
    font-size: 16px;
    background: #fff;
    font-family: inherit;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input.password-input {
    padding-right: 58px;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .2s ease;
}

.toggle-password:hover {
    transform: translateY(-50%) scale(1.04);
    background: #dbeafe;
}

.button-container {
    margin-top: 20px;
}

.submit-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.helper-links {
    margin-top: 18px;
    text-align: center;
}

.helper-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.helper-links a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .hero-grid,
    .feature-grid,
    .info-grid,
    .pricing-grid,
    .steps-grid,
    .login-layout,
    .forgot-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-shell {
        width: min(100% - 18px, 100%);
        padding: 14px 0 24px;
    }

    .content-card {
        padding: 16px;
        border-radius: 24px;
    }

    .hero,
    .feature-card,
    .schedule-card,
    .pricing-card,
    .steps-card,
    .info-card,
    .intro-card,
    .form-card,
    .login-card {
        padding: 18px;
    }

    .top-card {
        align-items: flex-start;
        padding: 12px 14px;
    }

    .brand-link img {
        width: 108px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-row {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }
    
.back-link,
.login-link {
    display: inline-flex;
    width: fit-content;
    
    text-align: center;
    font-size: 13px;
    padding: 11px 14px;
    align-self: flex-start;
}
}




/* =========================
   INDEX.PHP + TOPBAR
========================= */

.top-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 20;
}

.logo {
    width: 130px;
    max-width: 100%;
    display: block;
}

.white-link {
    color: #fff;
    text-decoration: none;
}

.white-link:hover {
    text-decoration: none;
}

.user-settings {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: transform .2s ease, background-color .2s ease;
}

.settings-icon:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.24);
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    max-height: 70vh;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    z-index: 50;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: #eff6ff;
    color: var(--primary);
}

.welcome-item {
    display: block;
    padding: 10px 12px 12px;
    color: var(--primary);
    font-weight: 800;
    text-align: left;
    line-height: 1.4;
}

.separator {
    height: 1px;
    margin: 8px 4px;
    border-bottom: 1px solid #e5eefc;
}

.dropdown-header {
    color: var(--accent);
    padding: 8px 12px 6px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 44px;
}

.dashboard-card {
    background: var(--card-strong);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 28px;
    overflow: hidden;
}

.dashboard-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #fff7ed 100%);
    border: 1px solid #e0ecff;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 22px;
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
}

.dashboard-hero p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.dashboard-tabs-wrap {
    margin: 0 0 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.dashboard-tabs-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: none;
}

.dashboard-tab-btn {
    min-height: 46px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    padding: 10px 12px;
    background: #d4d4d4;
    color: #111827;
}

.dashboard-tab-btn:hover {
    transform: translateY(-2px);
}

.dashboard-tab-btn.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(249,115,22,0.18);
}

.dashboard-section {
    margin-bottom: 22px;
}

.dashboard-table-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
}

.dashboard-section-title {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.dashboard-empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-muted {
    font-size: 12px;
    color: #64748b;
}

.dashboard-table,
.zarezerwowaneKorty,
#zarezerwowaneKorty {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table th,
.dashboard-table td,
.zarezerwowaneKorty th,
.zarezerwowaneKorty td,
#zarezerwowaneKorty th,
#zarezerwowaneKorty td {
    border: 1px solid #dbe3f0;
    padding: 10px 12px;
    white-space: nowrap;
    text-align: center;
    font-size: 0.84rem;
}

.dashboard-table th,
.zarezerwowaneKorty th,
#zarezerwowaneKorty th {
    background: #edf4ff;
    color: var(--primary);
    font-weight: 800;
}

.dashboard-table tr,
.zarezerwowaneKorty tr,
#zarezerwowaneKorty tr {
    background: #ffffff;
    font-weight: 600;
}

.dashboard-table tr:nth-child(even) td,
.zarezerwowaneKorty tr:nth-child(even) td,
#zarezerwowaneKorty tr:nth-child(even) td {
    background: #fbfdff;
}

.dashboard-subtable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}

.dashboard-subtable td,
.dashboard-subtable th {
    border: 1px solid #d6deeb;
    padding: 6px 8px;
    font-size: 0.82rem;
}

.dashboard-subtable th {
    background: #e5e7eb;
    color: #1f2937;
    font-weight: 800;
}

.dashboard-subtable tr td {
  background-color: #f0f0f0;
}

.dashboard-subtable tr.pending-slot-row td {
  background-color: #b3e5fc !important;
}

.dashboard-subtable tr.normal-slot-row td {
  background-color: #f0f0f0;
}

.dashboard-subtable tr.pending-summary-row td {
  background-color: #b3e5fc !important;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px;
}


.btn-akcja-green,
.dashboard-table button:not(.fb-publish-btn),
#zarezerwowaneKorty button:not(.fb-publish-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(249,115,22,0.18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-akcja-green:hover,
.dashboard-table button:not(.fb-publish-btn):hover,
#zarezerwowaneKorty button:not(.fb-publish-btn):hover {
    transform: translateY(-2px);
}

.fb-publish-btn {
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    background: #1877F2;
    color: #fff;
    font-size: 12px;
}

.tooltip-copy {
    visibility: hidden;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 5px 8px;
    position: absolute;
    top: -34px;
    right: -10px;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.tooltip-copy.show {
    visibility: visible;
    opacity: 1;
}

#notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    max-width: 360px;
    z-index: 9999;
    font-family: 'Inter', Arial, sans-serif;
}

.notice-item {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    background: #fff;
    border-left: 4px solid #999;
    font-size: 14px;
    line-height: 1.35;
}

.notice-item.success { border-color: #16a34a; }
.notice-item.error { border-color: #dc2626; }
.notice-item.info { border-color: #2563eb; }
.notice-item b { display: block; margin-bottom: 4px; }

@media (max-width: 980px) {
    .dashboard-tabs-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .top-bar,
    .dashboard-shell {
        width: min(100% - 18px, 100%);
    }

    .top-bar {
        margin: 14px auto 16px;
        padding: 12px 14px;
    }

    .logo {
        width: 108px;
    }

    .settings-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        width: min(300px, calc(100vw - 24px));
        right: -4px;
    }

    .dashboard-shell {
        margin: 0 auto 24px;
    }

    .dashboard-card {
        padding: 16px;
        border-radius: 24px;
    }

    .dashboard-hero,
    .dashboard-tabs-wrap,
    .dashboard-table-card {
        padding: 16px;
    }

    .dashboard-tabs-form {
        grid-template-columns: 1fr;
    }

    .dashboard-tab-btn {
        width: 100%;
    }

    .dashboard-table,
    .zarezerwowaneKorty,
    #zarezerwowaneKorty {
        min-width: 680px;
    }

    #notice {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }
}

.topbar-public-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: transform .2s ease, background-color .2s ease;
}

.topbar-pill-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.22);
}

@media (max-width: 768px) {
    .topbar-public-links {
        justify-content: flex-end;
        gap: 8px;
    }

    .topbar-pill-link {
        padding: 11px 14px;
        font-size: 13px;
    }
}






/* =========================
   MOBILE CARDS FOR INDEX.PHP
========================= */

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-zajecia-list {
    display: none;
}

.mobile-zajecia-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 14px;
}

.mobile-zajecia-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-zajecia-title {
    margin: 0;
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
}

.mobile-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.mobile-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5eefc;
}

.mobile-meta-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 800;
}

.mobile-meta-value {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-user-slots {
    margin-top: 12px;
    background: linear-gradient(135deg, #e8fff0 0%, #f6fff8 100%);
    border: 1px solid #8de0a9;
    border-radius: 18px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(67, 122, 34, 0.06);
}

.mobile-user-slots-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-user-slot-item {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.mobile-user-slot-item:last-child {
    margin-bottom: 0;
}

.mobile-user-slot-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.mobile-user-slot-main {
    color: #14532d;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
}

.mobile-user-slot-sub {
    margin-top: 4px;
    color: #166534;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.mobile-actions form {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    max-width: none;
}

.mobile-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mobile-outline-btn:hover {
    transform: translateY(-2px);
}

.mobile-details-panel {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5eefc;
}

.mobile-details-panel.is-open {
    display: block;
}

.mobile-details-block {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5eefc;
}

.mobile-details-block:last-child {
    margin-bottom: 0;
}

.mobile-details-heading {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.mobile-detail-row {
    padding: 8px 0;
    border-bottom: 1px solid #e5eefc;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mobile-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.mobile-badge.success {
    background: #dcfce7;
    color: #166534;
}

.mobile-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.mobile-badge.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.mobile-rozliczenie-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7cc;
    border: 1px solid #facc15;
    color: #3f3f46;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mobile-empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only,
    .mobile-zajecia-list {
        display: block;
    }

    .dashboard-section-title {
        font-size: 1.05rem;
    }

    .dashboard-table-card {
        padding: 14px;
        overflow: visible;
    }
}





/* =========================
   PROFILE.PHP
========================= */

.profile-page {
    gap: 22px;
}

.profile-hero {
    margin-bottom: 0;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 22px;
}

.profile-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.profile-summary-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-summary-value {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}

.form-status {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-status-error {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

.form-status-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.profile-layout-grid-narrow {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.settings-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.settings-card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.settings-card-title {
    margin: 0;
    color: var(--primary);
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    line-height: 1.2;
    font-weight: 800;
}

.settings-card-text {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.settings-form {
    margin: 0;
    padding: 0;
    max-width: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-form-grid-single {
    grid-template-columns: 1fr;
}

.settings-form .form-group {
    margin-bottom: 0;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 800;
}

.settings-form input,
.settings-form select {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #d6e2f5;
    background: #fff;
    padding: 12px 14px;
    font-size: 0.96rem;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.readonly-value {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 12px 14px;
    font-size: 0.96rem;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    line-height: 1.5;
    word-break: break-word;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.settings-actions-split {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-link-btn {
    text-decoration: none;
}

.settings-side-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5eefc;
}

.info-chip-label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-bottom: 6px;
}

.info-chip-value {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap input {
    padding-right: 52px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .profile-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-card {
        padding: 16px;
        border-radius: 22px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .settings-actions,
    .settings-actions-split {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-actions .submit-button,
    .settings-actions .mobile-outline-btn,
    .settings-actions-split .submit-button,
    .settings-actions-split .mobile-outline-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


.profile-form-section {
    margin-top: 18px;
}

.settings-card-main {
    max-width: 920px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-form-section {
        margin-top: 16px;
    }

    .settings-card-main {
        max-width: none;
    }
}

.submit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 48px;
    padding: 12px 20px;
}



.hero-main-poster {
    margin-bottom: 5px;
}

.cup-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom:15px;
    gap: 16px;
}

.cup-register-btn,
.cup-register-btn:link,
.cup-register-btn:visited {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 16px 30px rgba(249,115,22,0.28);
}

.cup-register-btn:hover,
.cup-register-btn:focus-visible {
    color: #fff;
}

@media (min-width: 769px) {
    .hero-main-poster {
        margin-bottom: 5px;
    }

    .cup-cta-wrap {
        margin-bottom:15px;
        gap: 22px;
    }
}
