/* Profile Pages Styles for BTC-Lottery.io */


/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: #718096;
}

/* Profile Container */
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Profile Sidebar */
.profile-sidebar {
    position: sticky;
    top: 6rem;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.avatar-upload-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.profile-info h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-info p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.member-since {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.member-since i {
    color: #667eea;
}

/* Profile Navigation */
.profile-nav {
    background: var(--background-color-new);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
/*    color: #4a5568;*/
    text-decoration: none;
    transition: all 0.3s ease;
/*    border-bottom: 1px solid #e2e8f0;*/
}

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

/*.nav-item:hover {
    background: #f7fafc;
    color: #667eea;
}*/

.nav-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
    border-left: 4px solid #667eea;
}
.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
    border-left: 4px solid #667eea;
}
.nav-item i {
    width: 20px;
    font-size: 1.1rem;
}

/* Profile Content */
.profile-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h4 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stat-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Info Sections */
.info-section {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header p {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.edit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item span {
    color: #2d3748;
    font-weight: 600;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Security Items */
.security-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.security-info h4 {
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.security-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.security-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.security-status.verified {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.security-status.warning {
    background: #fffaf0;
    color: #d69e2e;
    border: 1px solid #fbd38d;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.activity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.activity-info p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #a0aec0;
    font-size: 0.8rem;
}

.activity-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e53e3e;
}

.activity-amount.positive {
    color: #38a169;
}

/* Form Styles */
.form-section {
    padding: 2rem;
}

.profile-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
/*    color: #2d3748;*/
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
   
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-help {
    font-size: 0.8rem;
    color: #718096;
}

/* Input Wrapper for Password Fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    z-index: 2;
    padding: 0.25rem;
}

.validation-icon {
    position: absolute;
    right: 1rem;
    color: #48bb78;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper input:valid + .validation-icon {
    opacity: 1;
}

/* Profile Picture Section */
.profile-picture-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.picture-upload-area {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.current-picture img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.upload-controls {
    flex: 1;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-btn:hover {
    background: #5a67d8;
}

.upload-info {
    color: #718096;
    font-size: 0.8rem;
    margin: 0;
}

/* Verification Status */
.verification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.verification-status.verified {
    color: #38a169;
}

.verification-status.pending {
    color: #d69e2e;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #718096;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bars .bar {
    width: 25px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-bars .bar.active {
    background: #48bb78;
}

.strength-bars .bar.medium {
    background: #ed8936;
}

.strength-bars .bar.weak {
    background: #f56565;
}

.strength-text {
    font-size: 0.8rem;
    color: #718096;
}

/* Password Match Indicator */
.password-match-indicator {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.password-match-indicator.match {
    color: #38a169;
}

.password-match-indicator.no-match {
    color: #e53e3e;
}

/* Security Notice */
.security-notice {
    display: flex;
    gap: 1rem;
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-icon {
    color: #38b2ac;
    font-size: 1.5rem;
}

.notice-content h4 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.notice-content ul {
    color: #4a5568;
    padding-left: 1rem;
    margin: 0;
}

.notice-content li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Security Options */
.security-options {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.security-options-grid {
    display: grid;
    gap: 1.5rem;
}

.security-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.option-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .balance-display {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0;
    }

    .nav-item {
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .nav-item span {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .info-section {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .picture-upload-area {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .profile-avatar img {
        width: 100px;
        height: 100px;
    }

    .avatar-upload-btn {
        width: 35px;
        height: 35px;
    }

    .stats-grid {
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-info h4 {
        font-size: 1.5rem;
    }

    .info-section {
        padding: 1.25rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .activity-item {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .activity-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .form-section {
        padding: 1.25rem;
    }

    .security-notice {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .security-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.75rem;
    }

    .balance-display {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }

    .user-menu-btn span {
        display: none;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .profile-card {
        padding: 1.25rem;
    }

    .profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .nav-item {
        padding: 0.875rem;
    }

    .stats-grid {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .info-section {
        padding: 1rem;
    }

    .activity-item {
        padding: 1rem;
    }

    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .security-notice {
        padding: 1rem;
    }

    .checkbox-group {
        gap: 0.75rem;
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .profile-card,
    .info-section,
    .form-section {
        padding: 0.875rem;
    }

    .stats-grid {
        padding: 0.875rem;
    }

    .stat-card {
        padding: 0.875rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading and Animation States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #f56565;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #48bb78;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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