.character-offer-container {
    padding: 20px;
    direction: rtl;
    text-align: right;
}

.character-offer-container button,
.offer-modal button {
    font-family: Tahoma, Arial, sans-serif;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3027;
}

.offer-header h2 {
    color: #d4af37;
    font-size: 22px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.balance-info {
    display: flex;
    gap: 25px;
    direction: ltr;
}

.balance-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #3a3027;
}

.balance-item .label {
    color: #9a8b7a;
    font-size: 12px;
    margin-left: 8px;
}

.balance-item .value {
    color: #d4af37;
    font-weight: bold;
    font-size: 14px;
}

.balance-item .value.held {
    color: #e67e22;
}

.balance-item .value.available {
    color: #27ae60;
}

.offer-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 30px;
    background: linear-gradient(to bottom, #3a3027 0%, #2a2319 100%);
    border: 1px solid #4a4037;
    color: #9a8b7a;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.tab-btn:hover {
    background: linear-gradient(to bottom, #4a4037 0%, #3a3027 100%);
    color: #d4af37;
}

.tab-btn.active {
    background: linear-gradient(to bottom, #4a4037 0%, #3a3027 100%);
    color: #d4af37;
    border-bottom-color: transparent;
}

.tab-content {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 0 5px 5px 5px;
    border: 1px solid #3a3027;
}

.tab-content.active {
    display: block;
}

.info-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #d4af37;
}

.info-box strong {
    color: #e6c84a;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.offers-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 8px;
    text-align: right;
    color: #d4af37;
    border-bottom: 2px solid #3a3027;
    font-weight: normal;
    white-space: nowrap;
}

.offers-table th:nth-child(1) { width: 22%; }
.offers-table th:nth-child(2) { width: 12%; }
.offers-table th:nth-child(3) { width: 14%; }
.offers-table th:nth-child(4) { width: 14%; }
.offers-table th:nth-child(5) { width: 10%; }
.offers-table th:nth-child(6) { width: 12%; }
.offers-table th:nth-child(7) { width: 16%; }

.offers-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #2a2319;
    color: #c0b5a0;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offers-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.character-info {
    display: flex;
    flex-direction: column;
}

.character-info .name {
    color: #d4af37;
    font-weight: bold;
}

.character-info .details {
    color: #7a7060;
    font-size: 11px;
    margin-top: 3px;
}

.amount {
    color: #27ae60;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status-badge.pending {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid #e67e22;
}

.status-badge.accepted {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.status-badge.rejected {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.status-badge.expired {
    background: rgba(127, 140, 141, 0.2);
    color: #7f8c8d;
    border: 1px solid #7f8c8d;
}

.status-badge.cancelled {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.status-badge.refunded {
    background: rgb(83 83 83 / 20%);
    color: #7f7f7f;
    border: 1px solid #737373;
}

.actions {
    display: flex;
    gap: 5px;
}

.btn-accept, .btn-reject, .btn-cancel {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-accept {
    background: linear-gradient(to bottom, #27ae60 0%, #1e8449 100%);
    color: #fff;
}

.btn-accept:hover {
    background: linear-gradient(to bottom, #2ecc71 0%, #27ae60 100%);
}

.btn-reject {
    background: linear-gradient(to bottom, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-reject:hover {
    background: linear-gradient(to bottom, #ec7063 0%, #e74c3c 100%);
}

.btn-cancel {
    background: linear-gradient(to bottom, #7f8c8d 0%, #616c6e 100%);
    color: #fff;
}

.btn-cancel:hover {
    background: linear-gradient(to bottom, #95a5a6 0%, #7f8c8d 100%);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #7a7060;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Offer Modal */
.offer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
}

.offer-modal {
    background: linear-gradient(to bottom, #2a2319 0%, #1a1510 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 25px;
    width: 400px;
    max-width: 90%;
    direction: rtl;
    text-align: right;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.offer-modal h3 {
    color: #d4af37;
    margin: 0 0 20px 0;
    font-size: 18px;
    border-bottom: 1px solid #3a3027;
    padding-bottom: 10px;
}

.offer-modal .character-preview {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.offer-modal .character-preview .name {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
}

.offer-modal .character-preview .details {
    color: #9a8b7a;
    font-size: 13px;
    margin-top: 5px;
}

.offer-modal .form-group {
    margin-bottom: 15px;
}

.offer-modal label {
    display: block;
    color: #c0b5a0;
    margin-bottom: 5px;
    font-size: 13px;
}

.offer-modal input[type="number"] {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #4a4037;
    border-radius: 5px;
    color: #d4af37;
    font-size: 16px;
    box-sizing: border-box;
}

.offer-modal input[type="number"]:focus {
    outline: none;
    border-color: #d4af37;
}

.offer-modal .balance-note {
    font-size: 12px;
    color: #7a7060;
    margin-top: 5px;
}

.offer-modal .balance-note span {
    color: #27ae60;
}

.offer-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.offer-modal .btn-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(to bottom, #d4af37 0%, #b8960c 100%);
    border: none;
    border-radius: 5px;
    color: #1a1510;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.offer-modal .btn-submit:hover {
    background: linear-gradient(to bottom, #e6c84a 0%, #d4af37 100%);
}

.offer-modal .btn-close {
    flex: 1;
    padding: 12px;
    background: linear-gradient(to bottom, #4a4037 0%, #3a3027 100%);
    border: 1px solid #5a5047;
    border-radius: 5px;
    color: #c0b5a0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.offer-modal .btn-close:hover {
    background: linear-gradient(to bottom, #5a5047 0%, #4a4037 100%);
}

.offer-modal .error-msg {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 10px;
    display: none;
}

.offer-modal .warning-box {
    background: rgba(230, 126, 34, 0.15);
    border: 1px solid #e67e22;
    border-radius: 5px;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 12px;
    color: #e67e22;
    text-align: right;
    direction: rtl;
}

.offer-modal .warning-box i {
    margin-left: 6px;
}

/* Armory Button Styles */
.armory-offer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #d4af37 0%, #b8960c 100%);
    border: 1px solid #e6c84a;
    border-radius: 5px;
    color: #1a1510;
    font-weight: bold;
    cursor: pointer;
    font-family:tahoma;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 15px;
}

.armory-offer-btn:hover {
    background: linear-gradient(to bottom, #e6c84a 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.armory-offer-btn:disabled {
    background: #4a4037;
    border-color: #5a5047;
    color: #7a7060;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.armory-offer-btn svg {
    width: 16px;
    height: 16px;
}

/* Status Row Colors */
.offer-row.status-pending {
    background: rgba(230, 126, 34, 0.05);
}

.offer-row.status-accepted {
    background: rgba(39, 174, 96, 0.05);
}

.offer-row.status-rejected {
    background: rgba(231, 76, 60, 0.05);
}

.offer-row.status-expired,
.offer-row.status-cancelled {
    opacity: 0.6;
}

.offer-row.status-refunded {
    background: rgb(40 29 20);
    opacity: 0.7;
}

/* Countdown Styles */
.countdown {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #e67e22;
    font-weight: bold;
    direction: ltr;
    display: inline-block;
}

.countdown.urgent {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

.countdown.expired-text {
    color: #7f8c8d;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.expiry-cell {
    white-space: nowrap;
    text-align: center;
}

/* Success Animation */
.offer-row.success-fade {
    background: rgba(39, 174, 96, 0.1) !important;
    transition: all 0.4s ease;
}

.offer-row.success-fade td {
    border-color: #27ae60 !important;
}

.success-check {
    color: #27ae60;
    font-size: 18px;
    font-weight: bold;
}

.processing-text {
    color: #e67e22;
    font-size: 12px;
}

/* SMS Checkbox Styles */
.sms-option {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid #27ae60;
    border-radius: 5px;
}

.sms-checkbox-label {
    display: block;
    cursor: pointer;
    color: #c8c8c8;
    font-size: 13px;
    margin: 0;
    line-height: 24px;
}

.sms-checkbox-label input[type="checkbox"] {
    display: none;
}

.sms-checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #4a4037;
    border-radius: 4px;
    background: #1a1612;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    margin-left: 10px;
}

.sms-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #27ae60;
    border-color: #27ae60;
}

.sms-checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.sms-checkbox-label:hover .checkmark {
    border-color: #27ae60;
}

.sms-cost {
    color: #e67e22;
    font-size: 12px;
    margin-right: auto;
}

/* OTP Modal */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 10000;
}

.otp-modal {
    background: linear-gradient(to bottom, #2a2319 0%, #1a1510 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 25px;
    width: 350px;
    max-width: 90%;
    direction: rtl;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.otp-modal h3 {
    color: #d4af37;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.otp-subtitle {
    color: #c0b5a0;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.otp-input-container {
    margin: 20px 0;
}

#otp-code {
    width: 180px;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #4a4037;
    border-radius: 8px;
    color: #d4af37;
    font-family: 'Consolas', 'Monaco', monospace;
}

#otp-code:focus {
    outline: none;
    border-color: #d4af37;
}

#otp-code::placeholder {
    letter-spacing: normal;
    font-size: 14px;
    color: #7a7060;
}

.otp-timer {
    color: #9a8b7a;
    font-size: 13px;
    margin: 15px 0;
}

#otp-countdown {
    color: #e67e22;
    font-weight: bold;
    font-family: 'Consolas', 'Monaco', monospace;
}

.otp-modal .error-msg {
    color: #e74c3c;
    font-size: 12px;
    margin: 10px 0;
    display: none;
}

.otp-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.otp-modal .btn-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(to bottom, #27ae60 0%, #1e8449 100%);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: Tahoma, Arial, sans-serif;
}

.otp-modal .btn-submit:hover {
    background: linear-gradient(to bottom, #2ecc71 0%, #27ae60 100%);
}

.otp-modal .btn-submit:disabled {
    background: #4a4037;
    cursor: not-allowed;
}

.otp-modal .btn-close {
    flex: 1;
    padding: 12px;
    background: linear-gradient(to bottom, #4a4037 0%, #3a3027 100%);
    border: 1px solid #5a5047;
    border-radius: 5px;
    color: #c0b5a0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: Tahoma, Arial, sans-serif;
}

.otp-modal .btn-close:hover {
    background: linear-gradient(to bottom, #5a5047 0%, #4a4037 100%);
}
