body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gradient-border {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 2px;
    border-radius: 12px;
}

.gradient-border>div {
    background: #0f172a;
    border-radius: 10px;
    padding: 24px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.phone-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: inline-block;
    min-width: 200px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.phone-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.sms-content {
    background: rgba(99, 102, 241, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.text-muted {
    --bs-text-opacity: 1;
    color: rgb(255 255 255 / 75%) !important;
}

.activation-id {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-card {
    transition: all 0.3s ease;
    border-left: 4px solid #6366f1;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.status-card.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #ffffff;
}

.status-card.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ffffff;
}

.status-card.waiting {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #ffffff;
}

.btn-modern {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

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

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

.btn-modern:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Modern copy button styling */
.copy-btn-modern {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-width: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
    min-width: 70px;
}

.copy-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-btn-modern:active {
    transform: translateY(0);
}

.copy-btn-modern.copied {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    animation: copySuccess 0.6s ease;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Ensure copied state overrides all other states */
.copy-btn-modern.copied:hover {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: scale(1.05);
}

.copy-btn-modern.copied:active {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: scale(1.02);
}

/* International copy button specific styling */
.copy-btn-modern.btn-outline-success:hover {
    border-color: #10b981;
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Local copy button specific styling */
.copy-btn-modern.btn-outline-primary:hover {
    border-color: #6366f1;
    background-color: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Button group spacing */
.d-flex.gap-2 .copy-btn-modern {
    margin-right: 0;
}

.d-flex.gap-2 .copy-btn-modern:last-child {
    margin-right: 0;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Fix input field colors */
.form-control,
.form-select {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #888 !important;
}

.form-control:focus,
.form-select:focus {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
    outline: none;
}

/* Button states and interactions */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Order history styling */
.order-history-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-history-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* SMS history styling */
#smsHistoryList .d-flex {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#smsHistoryList .d-flex:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background-color: rgba(99, 102, 241, 0.1) !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .glass-card {
        margin: 10px;
        padding: 20px;
    }
    
    .phone-number {
        font-size: 14px;
        min-width: 100px;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Loading state improvements */
.loading {
    animation: spin 1s linear infinite;
}

/* Error state styling */
.text-danger {
    color: #ef4444 !important;
}

.text-success {
    color: #10b981 !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-warning {
    color: #f59e0b !important;
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

/* Input group improvements */
.input-group .btn {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}