/* Create Config Page Styles - Dark Theme */
.create-config-page {
    background: linear-gradient(135deg, #0a0a14 0%, #0d1117 50%, #050810 100%);
    min-height: calc(100vh - 60px);
    color: #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.page-subtitle {
    color: #adb5bd;
    font-size: 1.1rem;
}

/* Protocol Selector */
.protocol-selector-card {
    background: rgba(15, 15, 25, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.protocol-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.protocol-tab {
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
    position: relative;
    overflow: hidden;
    color: #e9ecef;
}

.protocol-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.protocol-tab:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    background: rgba(25, 25, 35, 0.9);
}

.protocol-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6), 0 0 20px rgba(102, 126, 234, 0.3);
}

.protocol-tab.active::before {
    transform: scaleX(1);
}

.protocol-tab.active .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.protocol-tab.active .tab-title,
.protocol-tab.active .tab-subtitle {
    color: #fff;
}

.tab-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e9ecef;
    display: block;
    margin-bottom: 0.25rem;
}

.tab-subtitle {
    font-size: 0.85rem;
    color: #adb5bd;
    display: block;
}

/* Config Form Card */
.config-form-card {
    background: rgba(15, 15, 25, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.tab-pane-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Plan Cards */
.plan-card {
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(20, 20, 30, 0.8);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    border-color: #667eea;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
    background: rgba(25, 25, 35, 0.9);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-radio input[type="radio"] {
    display: none;
}

.plan-radio input[type="radio"]:checked~.plan-label .plan-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5), 0 0 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.plan-radio input[type="radio"]:checked~.plan-label .plan-card::before {
    transform: scaleX(1);
}

.plan-radio input[type="radio"]:checked~.plan-label .plan-card .plan-name {
    color: #667eea;
}

.plan-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.plan-name {
    font-size: 1.1rem;
    color: #e9ecef;
    font-weight: 600;
    transition: color 0.3s ease;
}

.plan-name i {
    color: #667eea;
    margin-left: 0.5rem;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
}

.original-price-container {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-unit {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Controls */
.form-control {
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(20, 20, 30, 0.8);
    color: #e9ecef;
}

.form-control::placeholder {
    color: #6c757d;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25), 0 0 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    background: rgba(25, 25, 35, 0.9);
    color: #fff;
}

.form-label {
    font-weight: 600;
    color: #e9ecef;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #667eea;
}

.text-muted {
    color: #adb5bd !important;
}

/* Switch */
.form-check-input {
    background-color: rgba(20, 20, 30, 0.8);
    border-color: rgba(102, 126, 234, 0.15);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
    color: #e9ecef;
}

/* Buttons */
.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-success:hover::before {
    width: 300px;
    height: 300px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.5);
}

.btn-success:active {
    transform: translateY(-1px);
}

/* Settings Card */
.settings-card {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.settings-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.settings-header h6 {
    margin: 0;
    font-weight: 600;
    color: #e9ecef;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plans-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.plans-header h6 {
    margin: 0;
    font-weight: 600;
    color: #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plans-header i {
    color: #667eea;
    font-size: 1.25rem;
}

/* Alert */
.alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    color: #e9ecef;
    backdrop-filter: blur(10px);
}

.alert-info i {
    color: #667eea;
}

/* Empty State */
.empty-plans {
    text-align: center;
    padding: 3rem;
    color: #adb5bd;
}

.empty-plans i {
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 1rem;
}

.empty-plans h5 {
    color: #e9ecef;
}

.empty-plans p {
    color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .protocol-tabs {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .config-form-card {
        padding: 1.5rem;
    }
}

/* Tablet and smaller desktop */
@media (min-width: 769px) and (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading Spinner */
#spinner_create {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
    border-color: #667eea;
    border-right-color: transparent;
}

/* Additional dark theme adjustments */
.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.small {
    color: #adb5bd;
}

/* Breadcrumb dark theme */
.breadcrumb {
    background: rgba(15, 15, 25, 0.95) !important;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.breadcrumb-item a {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #adb5bd;
}

/* Discount Code Card */
.discount-code-card .card {
    background: rgba(15, 15, 25, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount-code-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

.discount-code-card .card-body {
    background: rgba(20, 20, 30, 0.8);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
}

.discount-info .alert {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}