* { margin: 0; padding: 0; box-sizing: border-box; }
        
        html, body {
            height: 100%;
        }
        
        body { 
            background:
                radial-gradient(circle at top left, rgba(74,111,165,0.12), transparent 28%),
                linear-gradient(180deg, #f4f7fb 0%, #eaf1f8 100%);
            color: #1f2f44; 
            font-family: 'Segoe UI', system-ui, sans-serif; 
            font-size: 14px;
            display: flex;
            flex-direction: column;
        }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 15px; }
        
        main {
            flex: 1;
        }
        
        header {
            background: linear-gradient(135deg, #142b52, #315a92 58%, #4f78ad);
            color: white;
            padding: 15px 0;
            margin-bottom: 20px;
            border-radius: 0 0 18px 18px;
            box-shadow: 0 12px 32px rgba(30, 60, 114, 0.14);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .logo { font-size: 1.8rem; font-weight: 700; }
        .logo span { color: #ffd166; }

        .admin-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.35);
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            background: rgba(255,255,255,0.1);
            transition: all 0.2s ease;
        }

        .admin-link:hover {
            background: rgba(255,255,255,0.18);
            transform: translateY(-1px);
        }
        
        .card {
            background: #fff;
            border-radius: 22px;
            padding: 22px;
            border: 1px solid #e3ebf3;
            box-shadow: 0 10px 28px rgba(17, 34, 68, 0.06);
            margin-bottom: 20px;
        }
        
        h1 { color: #1e3c72; margin-bottom: 15px; font-size: 1.4rem; border-bottom: 2px solid #f0f5ff; padding-bottom: 10px; }
        h2 { color: #1e3c72; margin-bottom: 15px; font-size: 1.2rem; }
        h3 { color: #3a5a8a; margin-bottom: 10px; }
        
        .event-card {
            background:
                radial-gradient(circle at top right, rgba(42, 157, 143, 0.12), transparent 32%),
                linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            border: 1px solid #e5edf7;
            border-radius: 22px;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
            box-shadow: 0 8px 22px rgba(17, 34, 68, 0.05);
        }
        
        .event-icon { font-size: 3rem; color: #2a9d8f; margin-bottom: 10px; }

        .banner-hero {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 12px;
        }

        .banner-hero img {
            display: block;
            max-width: 100%;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 6;
            border-radius: 14px;
            box-shadow: 0 10px 24px rgba(30, 60, 114, 0.12);
            object-fit: cover;
        }

        .workflow-panel {
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            border: 1px solid #e5edf7;
            border-radius: 18px;
            padding: 18px 18px 16px;
            margin-top: 16px;
            box-shadow: 0 6px 18px rgba(30, 60, 114, 0.05);
        }

        .workflow-title {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1e3c72;
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .workflow-list {
            list-style: none;
            display: grid;
            gap: 10px;
        }

        .workflow-item {
            display: block;
            padding: 10px 12px;
            border-radius: 14px;
            background: #ffffff;
            border: 1px solid #edf2f7;
            cursor: pointer;
            box-shadow: 0 6px 14px rgba(17, 34, 68, 0.03);
        }

        .workflow-item summary {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            list-style: none;
        }

        .workflow-item summary::-webkit-details-marker {
            display: none;
        }

        .workflow-step {
            flex: 0 0 auto;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #1e3c72;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            margin-top: 1px;
        }

        .workflow-summary {
            flex: 1;
            color: #1a2c3e;
            font-weight: 700;
            line-height: 1.4;
        }

        .workflow-copy {
            color: #4a5b6e;
            line-height: 1.45;
            font-size: 0.92rem;
            margin-top: 10px;
            padding-left: 40px;
        }

        .workflow-copy strong {
            color: #1a2c3e;
        }

        .workflow-item .workflow-chevron {
            margin-left: auto;
            color: #7c8b9c;
            transition: transform 0.2s ease;
            padding-top: 2px;
        }

        .workflow-item[open] .workflow-chevron {
            transform: rotate(180deg);
        }

        @media (min-width: 900px) {
            .workflow-list {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 12px;
                position: relative;
                padding-top: 18px;
            }

            .workflow-list::before {
                content: '';
                position: absolute;
                top: 31px;
                left: 6%;
                right: 6%;
                height: 2px;
                background: linear-gradient(90deg, rgba(30,60,114,0.18), rgba(42,157,143,0.35), rgba(30,60,114,0.18));
            }

            .workflow-item {
                position: relative;
                min-height: 132px;
                padding: 14px 14px 12px;
            }

            .workflow-item summary {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .workflow-step {
                position: relative;
                z-index: 1;
                width: 34px;
                height: 34px;
                margin-top: 0;
            }

            .workflow-summary {
                padding-right: 24px;
            }

            .workflow-chevron {
                position: absolute;
                top: 14px;
                right: 14px;
                margin-left: 0;
            }

            .workflow-copy {
                padding-left: 0;
                margin-top: 12px;
            }
        }
        
        .form-group { margin-bottom: 15px; }
        label { display: block; margin-bottom: 5px; font-weight: 600; color: #444; }
        .required { color: #e63946; }
        
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: border 0.3s;
        }
        
        input:focus, select:focus { border-color: #4a6fa5; outline: none; box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.15); }
        
        .row { display: flex; gap: 15px; flex-wrap: wrap; }
        .col { flex: 1; min-width: 200px; }
        
        .btn {
            padding: 10px 18px;
            background: #1e3c72;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .btn:hover { background: #16315e; transform: translateY(-1px); }
        .btn-success { background: #2a9d8f; }
        .btn-success:hover { background: #21867a; }
        .btn-outline { background: transparent; border: 1.5px solid #c8d5e3; color: #1e3c72; }
        .btn-outline:hover { background: #1e3c72; color: white; }
        .btn:disabled { opacity: 0.6; cursor: not-allowed; }
        
        .squad-player {
            background: #f8fbff;
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 14px;
            border: 1px solid #e5edf7;
            border-left: 4px solid #4a6fa5;
        }

        .squad-player--coach {
            background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
            border-left-color: #2a9d8f;
            box-shadow: 0 8px 20px rgba(30, 60, 114, 0.08);
            position: relative;
        }

        .squad-player--coach::before {
            content: 'Coach / Manager';
            position: absolute;
            top: 14px;
            right: 14px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(42, 157, 143, 0.12);
            color: #1f766b;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .squad-player--coach .player-number {
            background: #2a9d8f;
        }

        .squad-player--coach .player-header {
            padding-right: 120px;
        }

        .squad-player--coach .player-header-text span:first-child {
            color: #1f766b;
        }

        .player-header {
            font-weight: bold;
            color: #1e3c72;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .player-header-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .player-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            background: #4a6fa5;
            color: white;
            border-radius: 50%;
            font-weight: bold;
        }
        
        .player-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
        @media (max-width: 968px) { .player-fields { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 768px) { .player-fields { grid-template-columns: 1fr; } }

        .player-identity {
            margin-bottom: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            background: #f8fbff;
            border: 1px solid #e4edf7;
            color: #1a2c3e;
            font-size: 0.88rem;
            line-height: 1.45;
        }

        .player-identity strong {
            color: #1e3c72;
        }

        .player-identity span {
            display: block;
            color: #5a6b7c;
            font-size: 0.82rem;
            margin-top: 3px;
        }
        
        .file-input-wrapper {
            position: relative;
            overflow: hidden;
        }
        
        .file-input-wrapper input[type="file"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .file-btn {
            display: block;
            width: 100%;
            padding: 10px 12px;
            background: #f0f5ff;
            border: 2px dashed #4a6fa5;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            color: #4a6fa5;
            font-weight: 600;
        }
        
        .file-btn:hover:not(:disabled) { background: #e7f3ff; border-color: #3a5a8a; }
        .file-btn.uploading { background: #fff3cd; border-color: #ffc107; color: #856404; }
        .file-btn.success { background: #d4edda; border-color: #2a9d8f; color: #155724; }
        .file-btn.error { background: #f8d7da; border-color: #dc3545; color: #721c24; }
        .file-btn:disabled { background: #f0f0f0; border-color: #ccc; color: #999; cursor: not-allowed; }
        
        .upload-status {
            font-size: 0.8rem;
            margin-top: 5px;
            min-height: 20px;
        }
        
        .status-uploading { color: #ff6b6b; }
        .status-success { color: #2a9d8f; }
        .status-error { color: #dc3545; }
        .status-disabled { color: #999; }
        
        .action-buttons { display: flex; gap: 15px; margin-top: 20px; justify-content: space-between; flex-wrap: wrap; }
        
        .hidden { display: none !important; }
        
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        
        .modal-overlay.active { display: flex; }
        
        .modal {
            background: white;
            padding: 30px;
            border-radius: 18px;
            text-align: center;
            max-width: 400px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #4a6fa5;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .info-box {
            background: #e7f3ff;
            border-left: 4px solid #4a6fa5;
            padding: 12px 15px;
            border-radius: 6px;
            margin-bottom: 15px;
            color: #0c5460;
            font-size: 0.9rem;
        }
        
        .alert {
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        
        .alert-success {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }
        
        .alert-error {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
        }

        .input-error {
            border-color: #dc3545 !important;
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12) !important;
        }

        .field-error {
            display: block;
            margin-top: 6px;
            color: #dc3545;
            font-size: 0.8rem;
            min-height: 1em;
        }
