/* ========================================
   Steller - User Pages Styles
   Deposit, Withdraw, Verification, Livechat
   ======================================== */

/* Sections */
.deposit-section,
.withdraw-section,
.livechat-section,
.verification-section {
    margin-bottom: 2rem;
}

.deposit-section h2,
.withdraw-section h2,
.livechat-section h2,
.verification-section h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.deposit-section h2 i,
.withdraw-section h2 i,
.livechat-section h2 i,
.verification-section h2 i {
    color: var(--primary);
}

/* Verification Container */
.verification-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.verification-info {
    margin-bottom: 2rem;
}

/* Info Cards */
.info-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.info-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.info-card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

.text-muted {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.alert p {
    margin: 0.25rem 0 0 0;
    line-height: 1.6;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-success i {
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-danger i {
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-warning i {
    color: var(--warning);
}

/* Method Cards */
.method-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    text-align: left;
}

.method-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.method-card.crypto-card {
    padding: 1.5rem;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.method-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crypto-icon {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.method-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.method-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.method-note {
    font-size: 0.85rem !important;
    color: var(--gray-500) !important;
    margin-top: 0.5rem !important;
}

/* Payment Address */
.payment-address {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    position: relative;
    margin: 0;
    line-height: 1.6;
}

.payment-address strong {
    color: var(--primary);
}

.address-code {
    display: block;
    margin-top: 0.5rem;
    color: var(--white);
}

.btn-copy {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease);
    font-size: 0.8rem;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    transition: all var(--duration-fast) var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: var(--white);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-group small {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.form-help {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
}

/* Document List */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.doc-list li {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.doc-list i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* File Upload */
.file-upload {
    position: relative;
    margin-bottom: 1rem;
}

.file-upload-label {
    border: 2px dashed var(--gray-300);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
}

.file-upload-label p {
    margin: 0;
    color: var(--gray-700);
    font-weight: 500;
}

.file-info {
    font-size: 0.85rem !important;
    color: var(--gray-500) !important;
    font-weight: normal !important;
}

.file-input {
    display: none;
}

.file-name {
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.current-file {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-top: 1rem;
}

.current-file p {
    margin: 0 0 0.5rem 0;
    color: var(--gray-700);
    font-weight: 600;
}

.file-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--duration-fast) var(--ease);
}

.file-link:hover {
    color: var(--primary-dark);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.verification-form {
    background: var(--white);
    padding: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    flex: 0 0 auto;
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.3rem;
}

.modal-header p {
    margin: 0.5rem 0 0 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Chat Styles */
.livechat-container {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.chat-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header h2 i {
    color: var(--primary);
}

.chat-status {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.support {
    justify-content: flex-start;
}

.chat-message.system {
    justify-content: center;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.chat-message.user .message-avatar {
    background: var(--primary);
    color: var(--white);
}

.chat-message.support .message-avatar {
    background: var(--gray-300);
    color: var(--gray-700);
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-message.user .message-content {
    align-items: flex-end;
}

.chat-message.support .message-content {
    align-items: flex-start;
}

.message-content p {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-break: break-word;
    line-height: 1.5;
}

.chat-message.user .message-content p {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 12px 12px 0 12px;
}

.chat-message.support .message-content p {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: 12px 12px 12px 0;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0.25rem 1rem;
}

.chat-message.user .message-time {
    text-align: right;
    color: var(--gray-600);
}

.message-seen {
    font-size: 0.75rem;
    color: var(--primary);
    margin-left: 0.5rem;
}

.chat-attachment {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease);
}

.chat-attachment:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.attachment-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.chat-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#messageInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    max-height: 100px;
    transition: all var(--duration-fast) var(--ease);
}

#messageInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-loading {
    position: relative;
}

.btn-spinner {
    display: none;
}

.btn-loading[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsiveness */
@media (max-width: 992px) {
    .deposit-methods,
    .crypto-methods,
    .bank-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .doc-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-width: 500px;
    }

    .livechat-container {
        height: 400px;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-form {
        flex-direction: column;
    }

    .chat-form .btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .method-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .verification-container,
    .info-card {
        padding: 1rem;
    }

    .method-card {
        padding: 1rem;
    }

    .modal-content {
        width: 95%;
        max-width: 100%;
    }

    .livechat-container {
        height: 350px;
    }

    .chat-messages {
        padding: 1rem;
    }

    .message-content {
        max-width: 90%;
    }

    .message-content p {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    #messageInput {
        font-size: 16px;
    }

    .chat-form {
        gap: 0.5rem;
    }

    .form-row {
        gap: 1rem;
    }

    .alert {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Deposit/Withdraw Methods Grid */
.deposit-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.crypto-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.bank-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.deposit-methods h3,
.withdraw-section h3,
.crypto-methods h3 {
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: var(--gray-900);
    font-weight: 600;
    margin: 1rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deposit-methods h3 i,
.crypto-methods h3 i {
    color: var(--primary);
}

/* Withdrawal Info */
.withdrawal-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.withdrawal-info .info-card {
    display: flex;
    flex-direction: column;
}

.withdrawal-info .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Responsive for crypto methods */
@media (max-width: 992px) {
    .crypto-methods {
        grid-template-columns: 1fr;
    }
}
