/* Firebase Authentication Styles */

/* Policy Notice */
.policy-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
    color: #1565c0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-notice i {
    color: #2196f3;
    font-size: 16px;
}

.policy-notice strong {
    color: #0d47a1;
}

/* Verification Note */
.verification-note {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verification-note i {
    color: #ff9800;
    font-size: 14px;
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.input-group input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group button {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-group button:hover {
    background: #0056b3;
}

.input-group button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Search Results */
.search-results {
    margin-top: 20px;
}

.results-header h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-result:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.player-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.player-role {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.player-matches {
    color: #28a745;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Player Profile Overlay */
.player-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-profile-overlay.show {
    opacity: 1;
}

.player-profile-container {
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.player-profile-overlay.show .player-profile-container {
    transform: scale(1);
}

.player-profile-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-header-info h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-mobile {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.close-profile-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.player-profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.section-content {
    margin-top: 15px;
}

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tournament-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tournament-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.tournament-year {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tournament-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

.tournament-status.ongoing {
    background: #28a745;
    color: white;
}

.tournament-status.completed {
    background: #6c757d;
    color: white;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.match-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.match-header {
    margin-bottom: 15px;
}

.match-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.tournament-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.match-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-scores {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.team-name {
    font-weight: 600;
    color: #333;
}

.score {
    font-weight: 600;
    color: #007bff;
}

.match-result {
    font-weight: 600;
    color: #28a745;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
}

/* Videos Section */
.videos-stats {
    margin-bottom: 20px;
}

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

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.video-thumbnail i {
    font-size: 48px;
    opacity: 0.8;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
}

.video-description {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.video-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.runs {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.match {
    color: #666;
    font-weight: 500;
}

.videos-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

/* Video Player Modal */
.video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.video-player-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
}

.video-player-header {
    background: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-player-header h3 {
    margin: 0;
    font-size: 18px;
}

.video-player-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.video-player-body {
    padding: 0;
}

.video-player-body video {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-spinner i {
    font-size: 24px;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-profile-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .tournaments-grid,
    .matches-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .player-profile-header {
        padding: 15px;
    }
    
    .player-header-info h1 {
        font-size: 20px;
    }
    
    .video-player-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal.show {
    opacity: 1;
}

.login-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.login-modal.show .login-modal-content {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.login-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.login-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.login-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.login-modal-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.login-modal-body {
    padding: 2rem;
    text-align: center;
}

.login-description {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Google Sign In Button */
.google-signin-btn {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.google-signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.google-signin-btn:hover::before {
    left: 100%;
}

.google-signin-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-2px);
}

.google-signin-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Loading State */
.login-loading {
    width: 100%;
    padding: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Profile Image Styles */
.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User Menu */
.user-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    min-width: 250px;
    z-index: 1000;
    overflow: hidden;
    animation: menuSlideIn 0.2s ease-out;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-menu-content {
    padding: 0;
}

.user-info {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: #6b7280;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    height: 1px;
    background: #e5e7eb;
}

.user-menu-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-item:hover {
    background: #f3f4f6;
}

.user-menu-item i {
    width: 16px;
    color: #6b7280;
}

/* Auth Messages */
.auth-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-message.show {
    transform: translateX(0);
}

.auth-message-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: welcomePulse 0.6s ease-out;
}

@keyframes welcomePulse {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.auth-message-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.auth-message-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

.security-badge i {
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .login-modal-header {
        padding: 1.5rem;
    }
    
    .login-modal-title {
        font-size: 1.5rem;
    }
    
    .login-modal-body {
        padding: 1.5rem;
    }
    
    .user-menu {
        min-width: 200px;
        right: 10px !important;
    }
    
    .auth-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-modal-content {
        background: #1f2937;
        color: white;
    }
    
    .login-description {
        color: #9ca3af;
    }
    
    .google-signin-btn {
        background: #374151;
        border-color: #4b5563;
        color: white;
    }
    
    .google-signin-btn:hover {
        border-color: #4285f4;
        background: #4b5563;
    }
    
    .user-menu {
        background: #1f2937;
        border-color: #374151;
    }
    
    .user-info {
        background: #374151;
    }
    
    .user-name {
        color: white;
    }
    
    .user-email {
        color: #9ca3af;
    }
    
    .user-menu-item {
        color: #e5e7eb;
    }
    
    .user-menu-item:hover {
        background: #374151;
    }
    
    .user-menu-divider {
        background: #4b5563;
    }
    
    .security-badge {
        background: #374151;
        color: #9ca3af;
    }
}

/* Mobile OTP Verification Styles */
.mobile-otp-modal {
    max-width: 450px !important;
    width: 90% !important;
}

.mobile-otp-modal .login-modal-body {
    padding: 2rem;
}

/* Fix white text issue in all inputs within mobile OTP modal */
.mobile-otp-modal input,
.mobile-otp-modal select {
    color: #1f2937 !important;
    background: white !important;
}

.mobile-otp-modal input::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

.otp-step {
    display: none;
    text-align: center;
}

.otp-step.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.step-header h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-header p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Phone Input Styles */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* reCAPTCHA Container */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#recaptcha-container > div {
    margin: 0 auto;
}



/* Verified Phone Status */
.verified-phone {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    cursor: default !important;
}

.verified-phone:hover {
    background: #f0fdf4 !important;
    transform: none !important;
}

.verified-icon {
    color: #10b981;
    font-size: 1.1rem;
}

.verified-info {
    flex: 1;
    text-align: left;
}

.verified-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.1rem;
}

.verified-number {
    font-size: 0.8rem;
    color: #047857;
    opacity: 0.8;
}

.verified-badge {
    color: #10b981;
    font-size: 1rem;
}

.change-number-btn {
    color: #6b7280 !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
}

.change-number-btn:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.country-code {
    flex-shrink: 0;
}

.country-select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1f2937 !important; /* Fix white text issue */
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1f2937 !important; /* Fix white text issue */
    transition: all 0.3s ease;
}

.phone-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-input::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

/* OTP Input Styles */
.otp-input-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.otp-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1f2937 !important; /* Fix white text issue */
    transition: all 0.3s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
}

.otp-digit:not(:placeholder-shown) {
    border-color: #10b981;
    background: #f0fdf4;
}

/* OTP Button Styles */
.otp-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.otp-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.otp-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.otp-btn.primary.ready {
    background: linear-gradient(135deg, #10b981, #059669);
}

.otp-btn.primary.ready:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.otp-btn.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.otp-btn.secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* OTP Actions */
.otp-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #3b82f6;
}

/* Success Step Styles */
.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: successPulse 0.6s ease-out;
}

.success-content h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    color: #64748b;
    margin-bottom: 2rem;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
    .mobile-otp-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .otp-input-container {
        gap: 0.5rem;
    }
    
    .otp-digit {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        color: #1f2937 !important; /* Ensure text is visible on mobile */
    }
    
    .phone-input-container {
        flex-direction: column;
    }
    
    .otp-actions {
        gap: 0.75rem;
    }
    
    .otp-btn {
        width: 100%;
        padding: 0.875rem;
    }
    
    .verified-phone {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .verified-text {
        font-size: 0.85rem;
    }
    
    .verified-number {
        font-size: 0.75rem;
    }
    
    .mobile-otp-modal .login-modal-body {
        padding: 1.5rem;
    }
    
    .phone-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
        color: #1f2937 !important;
    }
    
    .country-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        color: #1f2937 !important;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .step-header p {
        font-size: 0.9rem;
    }
}