/* Premium Tabs Grid Layout */
.premium-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px;
    margin: 20px 25px 30px;
    border: 1px solid #cbd5e1;
}

.p-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 5px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-tab.active {
    background: #ffffff;
    color: #70c631;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tab-icon {
    position: relative;
    color: #cbd5e1;
    transition: 0.3s;
}

.p-tab.active .tab-icon {
    color: #70c631;
    transform: scale(1.1);
}

.premium-crown {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 10px;
}

/* Premium Range Card */
.range-card-premium {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.range-card-premium:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.range-card-premium:hover {
    box-shadow: none;
}

.range-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.range-id {
    font-weight: 700;
    color: #334155;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-range-p {
    background: #fff;
    border: 1px solid #fee2e2;
    color: #ef4444;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-remove-range-p:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* Range Input Group Styling */
.range-inputs-group {
    display: flex;
    gap: 12px;
}

.input-with-label {
    flex: 1;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.input-with-label:focus-within {
    border-color: #70c631;
    box-shadow: none !important;
}

.side-label {
    flex: 0 0 92px;
    width: 92px;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
    padding: 0 8px;
    margin: 0;
    line-height: 1;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: none;
    box-sizing: border-box;
}

.range-num-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0 6px;
    margin: 0;
    line-height: 1;
    height: 100%;
    font-weight: 600;
    color: #334155;
    outline: none;
    background: transparent;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.spin-controls {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    color: #94a3b8;
    cursor: pointer;
}

.spin-up:hover,
.spin-down:hover {
    color: #70c631;
}

/* Premium Checkbox */
.premium-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    user-select: none;
}

.premium-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    overflow: hidden;
    z-index: 1;
    transition: all 0.2s ease;
}

.premium-checkbox .checkmark::before {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #70c631 !important;
    transition: all 0.25s ease;
    z-index: -1;
}

.premium-checkbox:hover input~.checkmark {
    border-color: #70c631;
}

.premium-checkbox input:checked~.checkmark {
    border-color: #70c631;
}

.premium-checkbox input:checked~.checkmark::before {
    bottom: 0;
    background-color: #70c631 !important;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.premium-checkbox input:checked~.checkmark:after {
    display: block;
}

.premium-checkbox .checkmark:after {
    left: 50%;
    top: 46%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Premium Add Range Button */
.btn-add-range-premium {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid #82d446;
    border-radius: 6px;
    color: #70c631;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-add-range-premium:hover {
    background: #70c631;
    color: white;
    box-shadow: 0 10px 25px rgba(112, 198, 49, 0.2);
    transform: translateY(-2px);
}