/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --dark-blue: #1E40AF;
    --light-blue: #60A5FA;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    flex-shrink: 0;
    min-width: 200px;
    overflow: hidden;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.logo-image {
    height: 140px !important;
    width: auto !important;
    max-width: 700px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 20px;
    }
}

.nav-auth {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-auth-mobile {
    display: none;
}

.auth-link {
    padding: 10px 24px;
    background: var(--primary-blue);
    color: #FFFFFF !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    background: var(--dark-blue);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
    z-index: 999999;
}

.user-avatar-nav {
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar-nav:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

/* Link owijający avatar użytkownika – bez podkreślenia */
.user-avatar-link {
    display: inline-block;
    text-decoration: none;
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999999 !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.user-profile-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}


.dropdown-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--bg-light);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    color: var(--primary-blue);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger animation to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
    overflow: hidden;
    position: relative;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: #000;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.85);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-black {
    display: block;
    color: var(--text-dark);
}

.title-blue {
    display: block;
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* Hero Visuals */
.hero-visuals {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    z-index: 2;
    margin-left: 188px; /* ~5cm przesunięcie w prawo */
}

.phone-frame {
    width: 320px;
    height: 650px;
    background: #1F2937;
    border-radius: 45px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #F8FAFC; /* Jasne tło zamiast białego */
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #F8FAFC; /* Zmienione z czarnego na jasne tło */
    display: block;
}

.phone-screen img.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zmienione z cover na contain - pokaże cały obrazek */
    object-position: center;
    border-radius: 35px;
    display: block;
    background: #F8FAFC; /* Jasne tło dla obrazka */
}

.phone-screen video.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 35px;
}

.app-interface {
    text-align: center;
    padding: 20px;
}

.app-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 22px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.icon-books {
    font-size: 48px;
}

.icon-books::before {
    content: 'PM';
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.app-tagline {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.login-form {
    margin-top: 40px;
}

.input-field {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.lock-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-gray);
    border-radius: 4px;
    position: relative;
}

.lock-icon::before {
    content: '';
    width: 8px;
    height: 6px;
    border: 2px solid var(--text-gray);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: -6px;
    left: 2px;
}

.input-field input {
    border: none;
    background: none;
    flex: 1;
    font-size: 14px;
    outline: none;
}

.login-button {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.signup-link {
    font-size: 11px;
    color: var(--text-gray);
}

.signup-link span {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Stats Card */
.stats-card {
    position: absolute;
    bottom: 100px;
    left: -50px;
    background: var(--white);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.countdown-card {
    background: var(--white);
    padding: 30px 35px;
    min-width: 320px;
}

.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.countdown-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.countdown-separator {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin: 0 5px;
    align-self: flex-start;
    margin-top: -8px;
}

.countdown-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

.countdown-text strong {
    font-weight: 700;
    font-size: 15px;
}

.stats-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.stats-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Floating Card */
.floating-card {
    position: absolute;
    top: 80px;
    right: -80px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 200px;
    z-index: 1;
    animation: float 3s ease-in-out infinite 1s;
}

.floating-card h4 {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* About Us Section */
.about-us {
    padding: 120px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-us .about-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
    animation: slideInFromLeft 0.8s ease-out;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Regulamin / Polityka – zapobieganie overflow na mobile */
.legal-table-wrapper {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.about-us h1, .about-us h2, .about-us p {
    max-width: 100%;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.about-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.about-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.about-description strong {
    color: var(--text-dark);
    font-weight: 700;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.about-feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.about-feature-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
    transform: rotate(0deg) translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: flyInFromRight 0.8s ease-out 0.2s forwards;
}

@keyframes flyInFromRight {
    from {
        opacity: 0;
        transform: rotate(0deg) translateX(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) translateX(0) scale(1);
    }
}

@keyframes flyInFromRightMobile {
    from {
        opacity: 0;
        transform: rotate(0deg) translateX(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) translateX(0) scale(1);
    }
}

.about-card:hover {
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.about-card-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.about-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    color: var(--white);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.about-stat {
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #FFFFFF !important;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF !important;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
}

/* Subject Sections - Hero Design */
.subjects-hero {
    padding: 80px 0 60px;
    background: var(--white);
    text-align: center;
}

.subjects-intro {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
}

.subject-hero-section {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
}

.subject-hero-container {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 600px;
    position: relative;
}

.subject-hero-reverse .subject-hero-container {
    direction: rtl;
}

.subject-hero-reverse .subject-hero-container > * {
    direction: ltr;
}

.subject-hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
}

.subject-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1 !important;
    transition: opacity 0.6s ease-in-out;
    background-color: #000;
    display: block !important;
    visibility: visible !important;
    z-index: 0;
}

.subject-hero-video:not(.is-fading-out) {
    opacity: 1 !important;
}

.subject-video-polish {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.subject-hero-video.is-fading-out {
    opacity: 0;
}

.subject-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.subject-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.subject-hero-reverse .subject-hero-content {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
}

.subject-hero-text {
    width: 100%;
}

.subject-hero-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.2;
}

.subject-hero-motivation {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-style: italic;
}

.subject-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.feature-badge {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-badge:nth-child(1) { animation-delay: 0.1s; }
.feature-badge:nth-child(2) { animation-delay: 0.2s; }
.feature-badge:nth-child(3) { animation-delay: 0.3s; }
.feature-badge:nth-child(4) { animation-delay: 0.4s; }
.feature-badge:nth-child(5) { animation-delay: 0.5s; }
.feature-badge:nth-child(6) { animation-delay: 0.6s; }
.feature-badge:nth-child(7) { animation-delay: 0.7s; }

.feature-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for Subject Hero */
@media (max-width: 1200px) {
    .subject-hero-container {
        grid-template-columns: 1fr;
    }
    
    .subject-hero-media {
        min-height: 400px;
    }
    
    .subject-hero-content {
        padding: 60px 40px;
    }
    
    .subject-hero-reverse .subject-hero-container {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .subjects-hero {
        padding: 60px 0 40px;
    }
    
    .subject-hero-section {
        min-height: auto;
    }
    
    .subject-hero-container {
        min-height: auto;
    }
    
    .subject-hero-media {
        min-height: 300px;
    }
    
    .subject-hero-content {
        padding: 40px 25px;
    }
    
    .subject-hero-text h2 {
        font-size: 32px;
    }
    
    .subject-hero-motivation {
        font-size: 16px;
    }
    
    .feature-badge {
        font-size: 14px;
        padding: 10px 20px;
    }
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.text-blue {
    color: var(--primary-blue);
}

.features-intro {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 50px;
}

.features-intro strong {
    color: var(--text-dark);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
}

.feature-icon.book-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' /%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253' /%3E%3C/svg%3E");
}

.feature-icon.check-icon::before {
    content: '✓';
    font-size: 36px;
    font-weight: bold;
}

.feature-icon.chart-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z' /%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z' /%3E%3C/svg%3E");
}

.feature-icon.target-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 4px solid var(--white);
    border-radius: 50%;
    position: relative;
}

.feature-icon.target-icon::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-icon.document-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z' /%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z' /%3E%3C/svg%3E");
}

.feature-icon.user-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z' /%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z' /%3E%3C/svg%3E");
}

.feature-icon.time-icon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E");
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button-white {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Payment Section */
.payment-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 60px;
}

.payment-header h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.payment-header p {
    font-size: 20px;
    color: var(--text-gray);
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.plan-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-badge.popular {
    background: var(--primary-blue);
    color: var(--white);
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.plan-tagline {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-blue);
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
}

.period {
    font-size: 16px;
    color: var(--text-gray);
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.plan-features li:last-child {
    border-bottom: none;
}

.check {
    color: #10B981;
    font-size: 20px;
    font-weight: bold;
}

.plan-features .no {
    color: var(--text-gray);
    font-size: 18px;
    font-weight: bold;
}

.plan-features li.plan-subsection {
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom-color: rgba(59, 130, 246, 0.2);
    padding-top: 14px;
}

.plan-features li.plan-subsection:first-child {
    padding-top: 0;
}

.plan-button {
    width: 100%;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.plan-button.premium {
    background: var(--primary-blue);
    color: var(--white);
}

.plan-button.premium:hover {
    background: var(--dark-blue);
}

/* Payment Form */
.payment-form-container {
    max-width: 600px;
    margin: 60px auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
}

.checkout-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.checkout-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    border: 2px solid #BFDBFE;
}

.order-summary-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.selected-plan-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.plan-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.plan-details {
    flex: 1;
}

.plan-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.plan-details p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.plan-price-display {
    text-align: right;
    flex-shrink: 0;
}

.price-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.price-currency {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

.selected-plan {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
    width: 100%;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232563eb' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 20px 0;
}

.payment-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    color: var(--text-gray);
}

.terms-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Payment Summary */
.payment-summary {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.summary-row.total {
    border-top: 2px solid #CBD5E1;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-blue);
}

/* Payment Total */
.payment-total {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.total-row.grand-total {
    border-top: 2px solid #E2E8F0;
    margin-top: 12px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.submit-payment-button {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-icon {
    font-size: 20px;
}

.submit-payment-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.back-button {
    width: 100%;
    background: transparent;
    color: var(--text-gray);
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.back-button:hover {
    color: var(--primary-blue);
}

.payment-security-note {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: #F0FDF4;
    border-radius: 12px;
    border: 1px solid #BBF7D0;
}

.payment-security-note p {
    margin: 0;
    font-size: 14px;
    color: #15803D;
    font-weight: 600;
}

/* Trust Section */
.trust-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
}

.trust-section p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 16px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    padding: 12px 24px;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10B981;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 30px;
}

.success-checkmark {
    font-size: 56px;
    font-weight: 900;
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.modal-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-content .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.modal-content .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-content .form-group input[disabled] {
    background: #F8FAFC;
    color: #94A3B8;
    cursor: not-allowed;
}

.modal-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .footer-content {
        column-gap: 80px;
    }
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: #94A3B8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

/* Baner Autopay w stopce – idealnie pod stopką, bez niebieskiego nad i pod */
.footer-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    transform: none;
    filter: none;
}
.footer-banner .img-fluid {
    display: block;
    width: 100%;
    min-height: 51px;
    height: auto;
    object-fit: cover;
    object-position: center;
    vertical-align: bottom;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
    color: #94A3B8;
}

/* Baner płatności w stopce – 768x90, bez upscalingu i rozmycia */
.pay-badges {
    max-width: 768px;
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid #334155;
    /* izolacja od transform/filter rodziców (zapobiega rozmyciu) */
    transform: none;
    filter: none;
    backdrop-filter: none;
    will-change: auto;
}
.pay-badges img {
    display: block;
    max-width: 100%;
    height: auto;
}
/* Baner w treści (np. regulamin) – obok zapisu o metodach płatności */
.pay-badges-inline {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* W ekranie płatności tylko logo Autopay (500.svg) */
.autopay-logo-payment {
    display: block;
    text-align: center;
    margin-top: 20px;
}
.autopay-logo-payment img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ===================================
   ADMIN PANEL STYLES
   =================================== */

/* Admin Login Screen */
/* Admin Login - Raw 404 Screen */
.admin-login-screen-invisible {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.admin-login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.admin-login-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-login-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.admin-login-header p {
    color: var(--text-gray);
    font-size: 16px;
}

.admin-login-form .form-group {
    margin-bottom: 24px;
}

.admin-login-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.admin-login-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

/* Admin Dashboard */
.admin-dashboard {
    min-height: 100vh;
    background: #F8FAFC;
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.admin-logo p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.admin-logout-btn {
    background: #EF4444;
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Nawigacja panelu admina (sticky) */
.admin-panel-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px;
    background: #1E293B;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-panel-nav a {
    color: #E2E8F0;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.admin-panel-nav a:hover {
    background: #334155;
    color: #fff;
}
.admin-panel-nav a.active {
    background: #2563EB;
    color: #fff;
}

/* Jedna sekcja = jedna strona (bez przewijania) */
.admin-page {
    display: none;
}
.admin-page.active {
    display: block;
}

/* Sekcja Analiza – nagłówek z przyciskiem zwijania */
.section-header-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.admin-section-toggle {
    padding: 10px 20px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.admin-section-toggle:hover {
    background: #1D4ED8;
}
.admin-charts-wrapper {
    overflow: hidden;
}
.admin-charts-wrapper[hidden] {
    display: none;
}

.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Page Title */
.page-title-section {
    margin-bottom: 32px;
}

.page-title-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-title-section p {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #60A5FA);
}

.stat-users::before {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.stat-subscriptions::before {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.stat-revenue::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.stat-monthly::before {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.stat-duration::before {
    background: linear-gradient(90deg, #EC4899, #F472B6);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 40px;
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.stat-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
}

.stat-subtitle {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
    line-height: 1.4;
}

/* Charts Section */
.charts-section {
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 32px;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 16px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Charts Grid */
.admin-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-chart-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-chart-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.chart-header {
    margin-bottom: 28px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 12px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

.admin-chart-card-full {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-chart-card-full:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Problem Reports Section */
.problem-reports-section {
    margin-bottom: 40px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.status-reviewed {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-badge.status-resolved {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.status-dismissed {
    background: #F3F4F6;
    color: #374151;
}

/* Problem Type Badge */
.problem-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #E0E7FF;
    color: #3730A3;
}

/* Report Row */
.report-row {
    transition: background-color 0.2s ease;
}

.report-row:hover {
    background-color: #F8FAFC;
}

/* Report Actions Buttons */
.btn-view-report {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-report:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

/* Report Details Modal */
.report-info-section {
    margin-bottom: 30px;
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.report-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-info-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-info-item span {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.report-info-item-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.report-info-item-full label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-comment {
    padding: 16px;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.report-metadata {
    padding: 16px;
    background: #1E293B;
    color: #E2E8F0;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

/* Report Actions Section */
.report-actions-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #E2E8F0;
}

.report-actions-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.report-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-status {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-status.btn-reviewed {
    background: #DBEAFE;
    color: #1E40AF;
}

.btn-status.btn-reviewed:hover {
    background: #BFDBFE;
}

.btn-status.btn-resolved {
    background: #D1FAE5;
    color: #065F46;
}

.btn-status.btn-resolved:hover {
    background: #A7F3D0;
}

.btn-status.btn-dismissed {
    background: #F3F4F6;
    color: #374151;
}

.btn-status.btn-dismissed:hover {
    background: #E5E7EB;
}

.btn-status.btn-pending {
    background: #FEF3C7;
    color: #92400E;
}

.btn-status.btn-pending:hover {
    background: #FDE68A;
}

/* Filter Date Input */
.filter-date {
    padding: 10px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-date:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #E2E8F0;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Stat Cards Colors for Reports */
.stat-pending {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.stat-reviewed {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.stat-resolved {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.stat-dismissed {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

/* Users Section */
.users-section {
    margin-bottom: 40px;
}

/* Table Card */
.admin-table-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.table-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.table-count {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.search-input {
    padding: 10px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232563eb' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #F8FAFC;
}

.admin-table th {
    text-align: left;
    padding: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid #E2E8F0;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
    color: var(--text-gray);
}

.admin-table th:nth-last-child(2),
.admin-table td:nth-last-child(2) {
    text-align: center;
}

.admin-table th:last-child,
.admin-table td:last-child {
    text-align: center;
}

.admin-table td code {
    background: #F1F5F9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #64748B;
    font-family: 'Courier New', monospace;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #F8FAFC;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loading-row {
    text-align: center;
    padding: 40px !important;
    color: var(--text-gray);
}

.plan-badge-table {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-basic {
    background: #DBEAFE;
    color: #1E40AF;
}

.plan-premium {
    background: #FEF3C7;
    color: #92400E;
}

.plan-ultimate {
    background: #FCE7F3;
    color: #831843;
}

.plan-free {
    background: #E5E7EB;
    color: #374151;
}

.status-active {
    color: #10B981;
    font-weight: 600;
}

.status-inactive {
    color: #EF4444;
    font-weight: 600;
}

.duration-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #F0F9FF;
    color: #0369A1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Header Tablet */
    .logo-image {
        height: 100px !important;
        max-width: 500px !important;
    }
    
    .navbar {
        max-height: 85px;
    }
    
    .nav-container {
        height: 85px;
        padding: 0 10px;
    }
    
    /* Ensure mobile auth is hidden on tablet */
    .nav-auth-mobile {
        display: none !important;
    }
    
    /* Ensure desktop auth is visible on tablet */
    .nav-auth {
        display: flex !important;
    }
    
    /* Show menu toggle on tablet (but menu still visible) */
    .menu-toggle {
        display: none !important;
    }
    
    /* Hero Tablet */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }

    .hero-visuals {
        height: auto;
        min-height: 500px;
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .phone-mockup {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0; /* Reset przesunięcia na tabletach */
    }
    
    .phone-frame {
        width: 280px;
        height: 570px;
    }

    .stats-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 30px auto;
        width: auto;
        max-width: 350px;
    }

    .floating-card {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 20px auto;
        max-width: calc(100% - 60px);
        animation: none;
    }

    .hero-overlay {
        background: rgba(248, 250, 252, 0.90);
    }
}

@media (max-width: 768px) {
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: flex !important;
        order: 3;
        margin-left: auto;
    }
    
    /* Mobile menu - hidden by default */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 20px 0 30px 0;
        gap: 0;
        z-index: 1000;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile menu - visible when active */
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile menu overlay - using pseudo-element on body */
    body.menu-open {
        overflow: hidden; /* Prevent body scroll when menu is open */
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
        pointer-events: auto;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        list-style: none;
    }
    
    .nav-menu li a {
        display: block;
        padding: 18px 20px;
        font-size: 18px;
        font-weight: 600;
        color: var(--text-dark);
        text-decoration: none;
        width: 100%;
        transition: all 0.2s ease;
        border-bottom: 1px solid #F1F5F9;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: var(--bg-light);
        color: var(--primary-blue);
    }
    
    .nav-auth-mobile {
        display: block !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid var(--bg-light);
        width: 100%;
    }
    
    .auth-link-mobile {
        display: inline-block;
        padding: 14px 32px;
        background: var(--primary-blue);
        color: #FFFFFF !important;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        margin-top: 10px;
        min-height: 48px; /* Touch target size */
        line-height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-link-mobile:hover {
        background: var(--dark-blue);
        color: #FFFFFF !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
    
    .logout-link-mobile {
        color: #EF4444 !important;
        font-weight: 600;
        padding: 14px 32px !important;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .logout-link-mobile:hover {
        color: #DC2626 !important;
        background: #FEF2F2;
    }
    
    /* Hide desktop nav-auth on mobile */
    .nav-auth {
        display: none !important;
    }
    
    /* Header Mobile Adjustments */
    .navbar {
        max-height: 75px;
        position: sticky;
        top: 0;
        z-index: 999;
    }
    
    .nav-container {
        height: 75px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        min-width: auto;
        max-width: 150px;
        flex: 0 0 auto;
        order: 1;
    }
    
    .logo-image {
        height: 60px !important;
        max-width: 200px !important;
    }
    
    /* Ensure nav-menu is hidden on mobile by default */
    .nav-menu:not(.active) {
        left: -100%;
    }
    
    /* Hero Mobile Layout */
    .hero {
        padding: 30px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visuals {
        order: 2;
        height: auto;
        min-height: 450px;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        position: relative;
    }
    
    .phone-mockup {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
        margin-left: 0; /* Reset przesunięcia na mobile */
    }
    
    .phone-frame {
        width: 260px;
        height: 540px;
    }
    
    .phone-screen .phone-screenshot {
        object-fit: cover; /* Zmienione z contain na cover dla lepszego wyświetlania na mobile */
    }

    .hero-title {
        font-size: 38px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    /* Stats Card Mobile - Countdown */
    .stats-card {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 20px auto;
        width: calc(100% - 40px);
        max-width: 320px;
        padding: 20px 18px;
        animation: none;
    }
    
    .countdown-card {
        min-width: auto;
        width: 100%;
        padding: 18px 15px;
    }
    
    .countdown-display {
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .countdown-value {
        font-size: 32px;
        min-width: 50px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    .countdown-separator {
        font-size: 28px;
        margin: 0 3px;
    }
    
    .countdown-text {
        font-size: 13px;
    }
    
    /* Floating Card Mobile */
    .floating-card {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 15px auto;
        max-width: calc(100% - 40px);
        padding: 15px 18px;
        animation: none;
    }
    
    .floating-card h4 {
        font-size: 13px;
        text-align: center;
    }

    .payment-header h1 {
        font-size: 36px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .payment-form-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 40px 30px;
        margin: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-text {
        padding-right: 0;
    }

    .about-title {
        font-size: 36px;
    }

    .about-card {
        transform: rotate(0deg);
        animation: flyInFromRightMobile 0.8s ease-out 0.2s both;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
    /* Ensure all buttons have proper touch targets */
    button,
    .cta-button,
    .plan-button,
    .auth-link,
    .auth-link-mobile,
    .submit-payment-button,
    .modal-button {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 24px;
    }
    
    /* Improve text readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Better spacing for mobile */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Ensure navbar is always visible */
    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
    }
    /* Header Mobile */
    .navbar {
        padding: 5px 0;
        max-height: 70px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 70px;
    }
    
    .logo {
        min-width: auto;
        max-width: 120px;
    }
    
    .logo-image {
        height: 60px !important;
        max-width: 300px !important;
    }
    
    .nav-auth {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
        min-height: 48px; /* Touch target size */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Visuals Mobile */
    .hero-visuals {
        order: 2;
        height: auto;
        min-height: 400px;
        margin-top: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .phone-mockup {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        margin-left: 0; /* Reset przesunięcia na małych ekranach */
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
        transform: scale(0.9);
    }
    
    .phone-screen video.phone-screenshot,
    .phone-screen img.phone-screenshot {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Zmienione z cover na contain - pokaże cały obrazek */
        background-color: #F8FAFC; /* Jasne tło */
    }
    
    /* Stats Card Mobile - Countdown */
    .stats-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 20px auto;
        width: calc(100% - 40px);
        max-width: 320px;
        padding: 20px;
    }
    
    .countdown-card {
        min-width: auto;
        width: 100%;
        padding: 20px 15px;
    }
    
    .countdown-display {
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .countdown-value {
        font-size: 32px;
        min-width: 50px;
    }
    
    .countdown-label {
        font-size: 10px;
        margin-top: 3px;
    }
    
    .countdown-separator {
        font-size: 28px;
        margin: 0 3px;
    }
    
    .countdown-text {
        font-size: 13px;
    }
    
    .countdown-text strong {
        font-size: 14px;
    }
    
    /* Floating Card Mobile */
    .floating-card {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 15px auto;
        max-width: calc(100% - 40px);
        padding: 15px 20px;
        animation: none;
    }
    
    .floating-card h4 {
        font-size: 13px;
        text-align: center;
    }

    .about-title {
        font-size: 28px;
    }

    .about-description {
        font-size: 15px;
    }

    /* Subject Sections Mobile */
    .subject-section {
        padding: 60px 0;
    }

    .subject-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .subject-header {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .subject-motivation {
        font-size: 16px;
    }

    .subject-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subject-feature-item {
        padding: 18px 20px;
    }

    .subject-feature-item span:last-child {
        font-size: 15px;
    }

.about-us {
    padding: 60px 0;
}

    .section-title {
        font-size: 32px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .hero-overlay {
        background: rgba(248, 250, 252, 0.92);
    }

    .hero-video {
        object-position: center;
    }
}

/* ===== LOGIN & AUTHENTICATION STYLES ===== */

.login-section {
    min-height: calc(100vh - 80px);
    padding: 60px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
}

.login-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.login-card {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.login-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.login-header p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 30px;
}

.auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    padding: 6px;
    border-radius: 12px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 28px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.auth-form .form-group.checkbox-group label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
}

.auth-form .form-group.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    padding: 0;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748B;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.auth-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Google OAuth Button */
.auth-button-google {
    width: 100%;
    background: white;
    color: #1E293B;
    border: 2px solid #E2E8F0;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.auth-button-google:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-button-google:active {
    transform: translateY(0);
}

/* OAuth Divider */
.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #94A3B8;
    font-size: 14px;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

.oauth-divider span {
    padding: 0 16px;
    background: white;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.social-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #E2E8F0;
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
}

.social-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-gray);
    font-size: 14px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid #E2E8F0;
    background: var(--white);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-btn::before {
    content: 'G';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: var(--white);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
}

.facebook-btn::before {
    content: 'f';
    width: 24px;
    height: 24px;
    background: #1877F2;
    color: var(--white);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-style: italic;
    margin-right: 10px;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-gray);
    font-size: 14px;
}

.switch-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.switch-link:hover {
    text-decoration: underline;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon.grad-icon::before {
    content: '';
    width: 48px;
    height: 48px;
    background: var(--white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath d='M12 14l9-5-9-5-9 5 9 5z' /%3E%3Cpath d='M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222' /%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath d='M12 14l9-5-9-5-9 5 9 5z' /%3E%3Cpath d='M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222' /%3E%3C/svg%3E");
}

.info-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

.info-features {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.info-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
}

.info-feature:last-child {
    border-bottom: none;
}

.check-mark {
    width: 28px;
    height: 28px;
    background: #10B981;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 18px;
}

/* ===== DASHBOARD STYLES ===== */


.dashboard-section {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.welcome-text h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.welcome-text p {
    color: var(--text-gray);
    font-size: 18px;
}

.user-avatar-large {
    text-align: center;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.edit-profile-btn {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    color: var(--primary-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.book-stat::before {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid var(--white);
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.stat-icon.check-stat::before {
    content: '✓';
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
}

.stat-icon.target-stat::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--white);
    border-radius: 50%;
    position: relative;
}

.stat-icon.target-stat::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stat-icon.fire-stat::before {
    content: '';
    width: 20px;
    height: 28px;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    clip-path: polygon(50% 0%, 100% 40%, 80% 60%, 100% 100%, 0% 100%, 20% 60%, 0% 40%);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card-large {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--bg-light);
}

.card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-content {
    padding: 30px;
}

.subscription-info {
    text-align: center;
}

.plan-badge-dashboard {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    color: var(--text-dark);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-badge-dashboard.active {
    background: var(--primary-blue);
    color: var(--white);
}

.plan-status {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.subscription-details {
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-dark);
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #E2E8F0;
}

.upgrade-btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 24px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-gray);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.action-btn:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.action-icon.action-book::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--white);
    border-right: none;
    border-radius: 3px 0 0 3px;
}

.action-icon.action-edit::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--white);
    transform: rotate(-45deg);
    position: absolute;
}

.action-icon.action-edit::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 3px solid var(--white);
    border-right: 3px solid var(--white);
    transform: rotate(-45deg);
    position: absolute;
    top: 8px;
    right: 12px;
}

.action-icon.action-chart::before {
    content: '';
    width: 24px;
    height: 24px;
    background: 
        linear-gradient(var(--white) 0 0) 2px 14px/4px 10px,
        linear-gradient(var(--white) 0 0) 10px 10px/4px 14px,
        linear-gradient(var(--white) 0 0) 18px 6px/4px 18px;
    background-repeat: no-repeat;
}

.action-icon.action-card::before {
    content: '';
    width: 28px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 4px;
    position: relative;
}

.action-icon.action-card::after {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--white);
    position: absolute;
    top: 18px;
    left: 9px;
}

.action-text {
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-label {
    color: var(--text-gray);
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.status-badge {
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

/* Modal Button Styles */
.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-button-cancel {
    flex: 1;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    color: var(--text-dark);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button-cancel:hover {
    background: #E2E8F0;
}

/* Responsive - Login & Dashboard */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-info {
        order: -1;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .welcome-text h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 0;
        margin: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .login-card {
        padding: 30px 20px;
    }

    .payment-form-card {
        padding: 30px 20px;
    }

    .checkout-header h2 {
        font-size: 28px;
    }

    .selected-plan-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .plan-price-display {
        text-align: center;
    }

    .order-summary {
        padding: 20px;
    }

    .checkbox-group {
        align-items: flex-start;
    }

    .checkbox-group label {
        font-size: 13px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid-simple {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    /* Admin Panel Responsive */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-charts-grid {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-title {
        width: 100%;
    }

    .table-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }

    .admin-login-card {
        padding: 30px 20px;
    }

    .admin-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }

    .admin-content {
        padding: 30px 20px;
    }

    .page-title-section h2,
    .section-header h2 {
        font-size: 24px;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-icon {
        font-size: 36px;
    }

    .stat-content h3 {
        font-size: 24px;
    }
}

/* ===== USER MANAGEMENT MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #E5E7EB;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #F3F4F6;
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.user-info-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.user-info-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.user-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info-item label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
}

.user-info-item span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.subscription-form-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #E5E7EB;
}

.btn-primary,
.btn-danger,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    flex: 1;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-danger {
    background: #EF4444;
    color: var(--white);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

.btn-manage {
    padding: 6px 14px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-manage:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .modal-container {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ===== CONTACT PAGE STYLES ===== */

.contact-section {
    min-height: calc(100vh - 80px);
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
    display: block !important;
    visibility: visible !important;
}

/* Thank You Page Styles */
.thank-you-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.thank-you-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.thank-you-card {
    background: var(--white);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.success-icon-large {
    margin-bottom: 30px;
}

.success-checkmark-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 20px;
    line-height: 1.2;
}

.thank-you-message {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 40px;
    line-height: 1.4;
}

.thank-you-info {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #BFDBFE;
}

.thank-you-info p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 15px;
}

.thank-you-info p:last-child {
    margin-bottom: 0;
}

.thank-you-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.thank-you-actions .cta-button {
    min-width: 250px;
}

.back-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .thank-you-section {
        padding: 40px 20px;
    }
    
    .thank-you-card {
        padding: 40px 30px;
    }
    
    .thank-you-title {
        font-size: 32px;
    }
    
    .thank-you-message {
        font-size: 20px;
    }
    
    .success-checkmark-large {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-form-card,
.contact-info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-card {
    display: flex;
    flex-direction: column;
}

.contact-form-card h2,
.contact-info-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94A3B8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary-blue);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-submit-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 55px;
}

.contact-info-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 55px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3E8FF 100%);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-icon-blue {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 16px;
    color: var(--white);
}

.contact-icon-blue svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.contact-info-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-info-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 4px 0;
}

.success-message {
    margin-top: 20px;
}

/* Contact Page Mobile */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-header h1 {
        font-size: 36px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 30px 25px;
    }
    
    .contact-info-card {
        order: -1;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-header h1 {
        font-size: 32px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 25px 20px;
    }
    
    .contact-info-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Loading Spinner for Contact Form */
.contact-form .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact-form .error-message {
    background: #FEF2F2;
    border: 2px solid #EF4444;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* Ensure contact section is visible */
.contact-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-container {
    display: block !important;
    visibility: visible !important;
}

.contact-content {
    display: grid !important;
    visibility: visible !important;
}

.contact-form-card,
.contact-info-card {
    display: block !important;
    visibility: visible !important;
}

/* ============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================ */

/* Cookie Banner */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 10000;
    display: none;
    border-top: 1px solid #E2E8F0;
}

#cookieBanner[aria-hidden="false"] {
    display: block;
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cookie-banner-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-banner-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.cookie-btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #E2E8F0;
}

.cookie-btn-secondary:hover {
    background: #F8FAFC;
    border-color: var(--text-gray);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cookie-btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Cookie Preferences Modal */
#cookiePreferencesModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    backdrop-filter: blur(4px);
}

#cookiePreferencesModal[aria-hidden="false"] {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cookie-modal-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #F8FAFC;
    color: var(--text-dark);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-modal-description a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-category {
    padding: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--light-blue);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.cookie-category-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-blue);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--primary-blue);
}

.cookie-modal-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-btn-cancel {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid #E2E8F0;
}

.cookie-btn-cancel:hover {
    background: #F8FAFC;
    border-color: var(--text-gray);
    color: var(--text-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
