/**
 * SpainProTrials Core Plugin Styles
 * Version: 0.2.2 - Added Admin Bar Hiding for Players/Clubs
 * Matching main page design style
 */

/* ============================================
   Hide WordPress Admin Bar for Players/Clubs
   ============================================ */

/* Hide WordPress admin bar completely for players and clubs */
body.spt-player-logged-in #wpadminbar,
body.spt-club-logged-in #wpadminbar,
#wpadminbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
}

/* Adjust body padding when admin bar is hidden */
body.spt-player-logged-in.admin-bar,
body.spt-club-logged-in.admin-bar,
body.admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================
   Base Styles - Matching Main Theme
   ============================================ */

:root {
    --spt-red-primary: #DC143C;
    --spt-red-dark: #B71C1C;
    --spt-red-light: #FF1744;
    --spt-yellow-primary: #FFD700;
    --spt-yellow-dark: #FFC107;
    --spt-blue-primary: #0066CC;
    --spt-blue-dark: #004499;
    --spt-white: #FFFFFF;
    --spt-dark: #1a1a2e;
    --spt-gray-light: #f5f5f5;
    --spt-gray: #666;
}

.spt-dashboard,
.spt-register-form {
    max-width: 95% !important;
    /* Почти на всю страницу */
    width: 95% !important;
    margin: 20px auto 40px auto !important;
    padding: 30px 40px 50px 40px !important;
    /* Увеличены отступы для более современного вида */
    padding-top: 30px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    min-height: calc(100vh - 200px);
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-radius: 30px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(220, 20, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(0, 102, 204, 0.15) 50%, rgba(255, 215, 0, 0.15) 100%) 1;
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы для современного вида */
.spt-dashboard::before,
.spt-register-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--spt-red-primary) 0%, var(--spt-blue-primary) 50%, var(--spt-yellow-primary) 100%);
    z-index: 1;
}

.spt-dashboard::after,
.spt-register-form::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* КРИТИЧЕСКИ ВАЖНО: Заголовки должны быть по центру с синим градиентом, выше и крупнее */
.spt-dashboard h2,
.spt-register-form h2,
.spt-register-form>h2,
.spt-dashboard>h2,
.spt-register-form h2:first-child,
.spt-dashboard h2:first-child,
div.spt-register-form h2,
div.spt-dashboard h2,
.spt-player-register h2,
.spt-club-register h2,
.spt-register-form.spt-player-register h2,
.spt-register-form.spt-club-register h2 {
    color: var(--spt-dark) !important;
    font-size: 56px !important;
    /* Увеличено с 48px */
    font-weight: 900 !important;
    margin: 20px auto 40px auto !important;
    /* Уменьшен верхний отступ */
    margin-top: 20px !important;
    /* Поднят выше */
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    background: linear-gradient(135deg, #0066CC 0%, #3388FF 30%, #DC143C 60%, #FFD700 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -1px !important;
    position: relative !important;
    padding-bottom: 20px !important;
    padding-top: 0 !important;
    /* Убрали верхний padding */
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    float: none !important;
    clear: both !important;
    text-indent: 0 !important;
    text-align-last: center !important;
}

/* Дополнительное правило для контейнера заголовка - центрирование */
.spt-register-form,
.spt-dashboard,
/* Google OAuth Button */
.spt-google-auth-section {
    margin-bottom: 30px;
    text-align: center;
}

.spt-google-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
}

.spt-google-auth-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
    text-decoration: none;
    color: #3c4043;
}

.spt-google-auth-btn svg {
    flex-shrink: 0;
}

.spt-auth-divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.spt-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #dadce0;
    z-index: 1;
}

.spt-auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    z-index: 2;
}

.spt-player-register,
.spt-club-register,
div.spt-register-form,
div.spt-dashboard {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.spt-register-form h2,
.spt-dashboard h2,
.spt-player-register h2,
.spt-club-register h2,
div.spt-register-form h2,
div.spt-dashboard h2 {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    align-self: center !important;
    justify-self: center !important;
}

/* Еще более агрессивное правило для всех возможных вариантов */
* .spt-register-form h2,
* .spt-dashboard h2,
.spt-register-form * h2,
.spt-dashboard * h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.spt-dashboard h2::after,
.spt-register-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 150px;
    height: 4px;
    background: linear-gradient(135deg, #0066CC 0%, #3388FF 30%, #DC143C 60%, #FFD700 100%) !important;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.4);
}

/* Многоязычность для заголовков форм */
.spt-dashboard h2 .lang-content,
.spt-register-form h2 .lang-content {
    display: none !important;
}

.spt-dashboard h2 .lang-content.active,
.spt-register-form h2 .lang-content.active {
    display: inline !important;
}

/* Hide duplicate titles on registration pages */
.spt-register-form h3 {
    display: none !important;
}

/* Hide WordPress page title (entry-title/entry-header) when plugin form is present */
.page-article:has(.spt-register-form) .entry-title,
.page-article:has(.spt-register-form) .entry-header,
article.page:has(.spt-register-form) .entry-title,
article.page:has(.spt-register-form) .entry-header,
.page-container:has(.spt-register-form) .entry-title,
.page-container:has(.spt-register-form) .entry-header,
.page-article:has(.spt-dashboard) .entry-title,
.page-article:has(.spt-dashboard) .entry-header,
article.page:has(.spt-dashboard) .entry-title,
article.page:has(.spt-dashboard) .entry-header {
    display: none !important;
}

/* Ensure plugin's own h2 title is visible - красиво и по центру */
.spt-register-form h2,
.spt-dashboard h2 {
    display: block !important;
    visibility: visible !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.spt-dashboard h3 {
    color: var(--spt-dark);
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   Profile Status - Modern Card Design
   ============================================ */

.spt-profile-status {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(220, 20, 60, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.spt-profile-status p {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--spt-dark);
}

.spt-plan-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.spt-plan-badge.spt-free {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    color: #fff;
}

.spt-plan-badge.spt-pro {
    background: linear-gradient(135deg, var(--spt-red-primary) 0%, var(--spt-yellow-primary) 100%);
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(220, 20, 60, 0.5);
    }
}

/* ============================================
   Forms - Modern Design Matching Main Page
   ============================================ */

.spt-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 251, 252, 0.99) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    padding: 60px 70px !important;
    /* Еще больше увеличены отступы */
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 35px !important;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(220, 20, 60, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 0 rgba(220, 20, 60, 0.08);
    border: 3px solid;
    border-image: linear-gradient(135deg, rgba(220, 20, 60, 0.25) 0%, rgba(0, 102, 204, 0.25) 50%, rgba(255, 215, 0, 0.25) 100%) 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-sizing: border-box !important;
    z-index: 2;
}

.spt-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--spt-red-primary) 0%, var(--spt-blue-primary) 50%, var(--spt-yellow-primary) 100%);
    z-index: 1;
}

.spt-form::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.spt-form:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(220, 20, 60, 0.15),
        0 0 0 1px rgba(220, 20, 60, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 0 rgba(220, 20, 60, 0.1);
}

.spt-form-group {
    margin-bottom: 30px !important;
    /* Увеличен отступ */
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 2;
}

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

.spt-form-group input[type="text"],
.spt-form-group input[type="email"],
.spt-form-group input[type="password"],
.spt-form-group input[type="number"],
.spt-form-group input[type="file"],
.spt-form-group select,
.spt-form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 18px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.spt-form-group input[type="text"]:focus,
.spt-form-group input[type="email"]:focus,
.spt-form-group input[type="password"]:focus,
.spt-form-group input[type="number"]:focus,
.spt-form-group select:focus,
.spt-form-group textarea:focus {
    outline: none;
    border-color: var(--spt-red-primary);
    box-shadow:
        0 8px 25px rgba(220, 20, 60, 0.25),
        0 0 0 3px rgba(220, 20, 60, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: #fff;
    transform: translateY(-3px) scale(1.01);
}

.spt-form-group input[type="file"] {
    padding: 10px;
    background: rgba(220, 20, 60, 0.05);
    cursor: pointer;
}

.spt-form-group input[type="file"]:hover {
    background: rgba(220, 20, 60, 0.1);
}

.spt-form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.spt-form-group small {
    display: block;
    margin-top: 8px;
    color: var(--spt-gray);
    font-size: 13px;
    font-style: italic;
}

.spt-required {
    color: var(--spt-red-primary);
    font-weight: 700;
}

.spt-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ============================================
   Buttons - Matching Main Page Style
   ============================================ */

.spt-button {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spt-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.spt-button:hover::before {
    width: 300px;
    height: 300px;
}

.spt-button-primary {
    background: linear-gradient(135deg, var(--spt-red-primary) 0%, var(--spt-blue-primary) 50%, var(--spt-yellow-primary) 100%);
    color: #fff;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.spt-button-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.spt-button-secondary {
    background: linear-gradient(135deg, var(--spt-gray) 0%, var(--spt-gray-light) 100%);
    color: #fff;
}

.spt-button-secondary:hover {
    background: linear-gradient(135deg, var(--spt-dark) 0%, var(--spt-gray) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Current Profile Display - Modern Card
   ============================================ */

.spt-current-profile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(220, 20, 60, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.spt-current-profile h3 {
    margin-bottom: 20px;
    color: var(--spt-dark);
    font-size: 24px;
}

.spt-current-profile p {
    margin: 12px 0;
    line-height: 1.8;
    font-size: 16px;
    color: var(--spt-dark);
}

.spt-current-profile strong {
    color: var(--spt-red-primary);
    font-weight: 700;
}

.spt-photo-preview {
    margin-bottom: 25px;
    text-align: center;
}

.spt-photo-preview img {
    max-width: 250px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(220, 20, 60, 0.2);
    transition: all 0.3s ease;
}

.spt-photo-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.3);
    border-color: var(--spt-red-primary);
}

/* ============================================
   Player Cards - Modern Grid Design
   ============================================ */

.spt-player-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(220, 20, 60, 0.15);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.spt-player-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.2);
    border-color: var(--spt-red-primary);
}

.spt-player-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid rgba(220, 20, 60, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.spt-player-card h4 {
    margin: 0 0 8px 0;
    color: var(--spt-dark);
    font-size: 20px;
    font-weight: 700;
}

.spt-player-card p {
    margin: 0;
    color: var(--spt-gray);
    font-size: 15px;
    line-height: 1.6;
}

.spt-remove-interest {
    margin-left: auto;
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   Search Results - Grid Layout
   ============================================ */

.spt-search-results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.spt-search-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(220, 20, 60, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.spt-search-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

/* ============================================
   Interested Players Section
   ============================================ */

.spt-interested-players {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 3px solid rgba(220, 20, 60, 0.2);
}

.spt-interested-players h3 {
    margin-top: 0;
}

/* ============================================
   PRO Features Notice
   ============================================ */

.spt-pro-feature {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: var(--spt-dark);
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.spt-pro-feature p {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

/* ============================================
   Notices and Messages
   ============================================ */

.spt-notice {
    padding: 18px 25px;
    margin: 20px 0;
    border-radius: 15px;
    border-left: 5px solid;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.spt-notice-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-color: #28a745;
    color: #155724;
}

.spt-notice-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: #dc3545;
    color: #721c24;
}

.spt-notice-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border-color: #17a2b8;
    color: #0c5460;
}

/* ============================================
   Registration Form Specific Styles
   ============================================ */

.spt-register-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 20px;
}

.spt-register-form h2 {
    margin-bottom: 40px;
}

/* ============================================
   Dashboard Specific Styles
   ============================================ */

.spt-dashboard {
    padding: 50px 20px;
}

.spt-edit-profile {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    margin-top: 30px;
    border: 2px solid rgba(220, 20, 60, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.spt-edit-profile h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {

    .spt-dashboard,
    .spt-register-form {
        padding: 30px 15px;
    }

    .spt-dashboard h2,
    .spt-register-form h2 {
        font-size: 32px;
    }

    .spt-form {
        padding: 30px 20px;
    }

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

    .spt-search-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .spt-dashboard,
    .spt-register-form {
        padding: 25px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix title: larger font for mobile - HIGH SPECIFICITY to override main 56px */
    .spt-dashboard h2,
    .spt-register-form h2,
    .spt-register-form>h2,
    .spt-dashboard>h2,
    .spt-register-form h2:first-child,
    .spt-dashboard h2:first-child,
    div.spt-register-form h2,
    div.spt-dashboard h2,
    .spt-player-register h2,
    .spt-club-register h2,
    .spt-register-form.spt-player-register h2,
    .spt-register-form.spt-club-register h2 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
        margin-top: 10px !important;
    }

    .spt-dashboard h3,
    .spt-register-form h3 {
        font-size: 18px !important;
    }

    .spt-form {
        padding: 20px 10px !important;
        border-radius: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix form inputs: full width on mobile */
    .spt-form-group {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .spt-form-group input[type="text"],
    .spt-form-group input[type="email"],
    .spt-form-group input[type="password"],
    .spt-form-group input[type="number"],
    .spt-form-group input[type="file"],
    .spt-form-group select,
    .spt-form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 16px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    .spt-button,
    .spt-btn,
    .spt-btn-primary {
        padding: 14px 28px !important;
        font-size: 16px !important;
        width: 100% !important;
    }

    .spt-player-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .spt-player-photo {
        width: 120px;
        height: 120px;
    }

    .spt-remove-interest {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .spt-photo-preview img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {

    /* Even smaller for tiny screens - HIGH SPECIFICITY */
    .spt-dashboard h2,
    .spt-register-form h2,
    .spt-register-form>h2,
    .spt-dashboard>h2,
    div.spt-register-form h2,
    div.spt-dashboard h2,
    .spt-player-register h2,
    .spt-club-register h2,
    .spt-register-form.spt-player-register h2,
    .spt-register-form.spt-club-register h2 {
        font-size: 20px !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
        margin-top: 8px !important;
    }

    .spt-form {
        padding: 15px 8px !important;
    }

    .spt-form-group input,
    .spt-form-group select,
    .spt-form-group textarea {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
}

/* ============================================
   Player Search & Results
   ============================================ */

.spt-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.spt-player-card-search {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(220, 20, 60, 0.15);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spt-player-card-search:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.2);
    border-color: var(--spt-red-primary);
}

.spt-player-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(220, 20, 60, 0.3);
}

.spt-player-info h4 {
    margin: 0 0 10px 0;
    color: var(--spt-dark);
    font-size: 20px;
    font-weight: 700;
}

.spt-player-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
    color: var(--spt-gray);
    font-size: 14px;
}

.spt-player-meta .spt-separator {
    color: rgba(220, 20, 60, 0.4);
}

.spt-player-description {
    color: var(--spt-dark);
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
    opacity: 0.8;
}

.spt-player-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.spt-player-actions .spt-button {
    flex: 1;
    min-width: 120px;
}

.spt-player-actions .spt-button.spt-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    cursor: default;
}

/* ============================================
   Loading & No Results
   ============================================ */

.spt-loading {
    text-align: center;
    padding: 60px 20px;
}

.spt-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(220, 20, 60, 0.2);
    border-top-color: var(--spt-red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.spt-loading p {
    color: var(--spt-gray);
    font-size: 16px;
}

.spt-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--spt-gray);
    font-size: 16px;
}

/* ============================================
   Form Validation Styles
   ============================================ */

.spt-field-error {
    border-color: var(--spt-red-primary) !important;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1) !important;
}

.spt-field-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.spt-field-error-message {
    color: var(--spt-red-primary);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
}

/* ============================================
   Responsive: Player Search
   ============================================ */

@media (max-width: 968px) {
    .spt-players-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .spt-players-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .spt-player-actions {
        flex-direction: column;
    }

    .spt-player-actions .spt-button {
        width: 100%;
    }
}

/* ============================================
   Login Form Styles
   ============================================ */

.spt-login-form-container {
    max-width: 500px;
    margin: 5px auto;
    /* Reduced even more */
    padding: 20px;
}

.spt-login-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(220, 20, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(0, 102, 204, 0.15) 50%, rgba(255, 215, 0, 0.15) 100%) 1;
    position: relative;
    overflow: hidden;
}

.spt-login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC143C 0%, #0066CC 50%, #FFD700 100%);
    z-index: 1;
}

.spt-login-form h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
}

.spt-login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.spt-login-form .spt-form-group {
    margin-bottom: 20px;
    width: 100%;
}

.spt-login-form .spt-form-group:last-of-type {
    margin-bottom: 25px;
}

/* Ensure all input fields in login form have the same width */
.spt-login-form .spt-form-group input[type="text"],
.spt-login-form .spt-form-group input[type="email"],
.spt-login-form .spt-form-group input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure login button has the same width as input fields */
.spt-login-form .spt-btn,
.spt-login-form .spt-btn-primary,
.spt-login-form button[type="submit"],
.spt-login-form .spt-button,
.spt-login-form .spt-button-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: block !important;
}

.spt-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.spt-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Button styles for login form */
.spt-btn,
.spt-btn-primary {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.spt-btn-primary {
    background: linear-gradient(135deg, var(--spt-red-primary) 0%, var(--spt-blue-primary) 50%, var(--spt-yellow-primary) 100%);
    color: #fff;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.spt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Upgrade Plan Section - Compact version at bottom */
.spt-upgrade-section-compact {
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    display: flex !important;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.spt-upgrade-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    justify-content: space-between;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.spt-upgrade-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.spt-upgrade-text {
    flex: 1;
    text-align: left;
}

.spt-upgrade-price {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    white-space: nowrap;
}

.spt-upgrade-btn-pro {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    color: #fff;
}

.spt-upgrade-btn-pro:hover {
    background: linear-gradient(135deg, #004499 0%, #0066CC 100%);
    color: #fff;
}

.spt-upgrade-btn-elite {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
}

.spt-upgrade-btn-elite:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: #1a1a1a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .spt-upgrade-section-compact {
        flex-direction: column;
        gap: 12px;
    }

    .spt-upgrade-btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
    }

    .spt-upgrade-text {
        font-size: 14px;
    }

    .spt-upgrade-price {
        font-size: 12px;
    }
}

.spt-btn-block {
    width: 100%;
    display: block;
}

.spt-login-links {
    text-align: center;
    margin: 20px 0;
}

.spt-login-links a {
    color: #DC143C;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.spt-login-links a:hover {
    color: #B71C1C;
    text-decoration: underline;
}

.spt-login-divider {
    text-align: center;
    margin: 30px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

.spt-login-register-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spt-btn-outline {
    background: transparent;
    border: 2px solid #DC143C;
    color: #DC143C;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.spt-btn-outline:hover {
    background: #DC143C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.login-page .site-main {
    padding-top: 15px;
    /* Reduced even more */
}

@media (max-width: 768px) {
    .spt-login-form-container {
        padding: 10px;
        margin: 20px auto;
    }

    .spt-login-form {
        padding: 30px 20px;
    }

    .spt-login-form h2 {
        font-size: 24px;
    }
}
