.container {
    max-width: 1184px;

}

/* HEADER SECTION */
#content { text-align: center; margin-bottom: 30px; }
#head { text-align: center;
    margin-bottom: 40px;
    padding: 40px 1px;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    border-radius: 12px;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1) !important; }


h1 { font-size: 45px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; 
}




.sub-title { font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto; }

/* CALCULATOR BOX */
.input-section {
        background: #fafafa !important;
    padding: 25px;
    border-radius: 15px;
       border: 2px solid #ffe0e9 !important;
}

.section-label { margin-bottom: 20px; font-size: 20px; color: #fb0e76!important; text-align:center; }

/* INPUT GROUPS */
.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group { flex: 1;
	display: flex;
	flex-direction:
		column; gap: 8px;
}
.input-group label { font-size: 14px; 
	font-weight: 600; 
	color: #fb0e76;

}

.flex-input { display: flex; gap: 0; }

input, select {
   
    border: 2px solid #ffe0e9 !important;
    color: black;
    padding: 12px;
    font-size: 16px;
    outline: none;
	border-radius: 6px !important;

	background: #e1cfcf !important;
}

input { width: 100%; border-radius: 6px 0 0 6px; }
select { border-radius: 0 6px 6px 0; border-left: none; cursor: pointer; }

/* OPTIONS ROW */
.options-row { display: flex; gap: 15px; margin-bottom: 25px; }
.input-group.mini { flex: 0 1 120px; }
.input-group.mini select { border-radius: 6px; border-left: 1px solid #333; }

/* RESULTS GRID */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
label {
    color: #fb0e76 !important;
    display: inline-block !important;
    line-height: 1;
    vertical-align: middle !important;
}

.match-card {
        background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffe0e9;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-icon {
    cursor: pointer;
    color: #fb0e76;
    font-size: 16px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.copy-icon:hover {
    background: #ffe0e9;
    color: #910694;
    transform: scale(1.1);
}

.result-display {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
    color: #fb0e76;
	  word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}
#binRes {
    letter-spacing: 1px;
}

/* BUTTONS */
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; }

button {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-primary { background: #00d1b2; color: #000;     border-radius: 10px !important;}
.btn-primary:hover { background: #00bfa5; }
.btn-secondary { background: #222; color: #fff; border: 1px solid #333;     border-radius: 10px !important;}
.btn-secondary:hover { background: #333; }
.btn-danger { background: #ff3860; color: #fff;     border-radius: 10px !important;}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    .input-row { flex-direction: column; }
    .matches-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .matches-grid { grid-template-columns: 1fr; }
    .action-bar button { width: 100%; justify-content: center; }
}