/* ==========================
   SUBSCRIPTION PAGE
   ========================== */

.plan-container{

    max-width:1400px;

    margin:40px auto;

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

    padding:20px;

}

/* ==========================
   PLAN CARDS
   ========================== */

.plan-card{

    background:#1f1f1f;

    border:1px solid #2d2d2d;

    border-radius:16px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    transition:.25s;

    box-shadow:
        0 10px 25px rgba(0,0,0,.25);

}

.plan-card:hover{

    transform:translateY(-8px);

    border-color:#008cff;

}

/* ==========================
   CARD HEADER
   ========================== */

.plan-header{

    padding:30px;

    text-align:center;

    border-bottom:1px solid #2d2d2d;

}

.plan-title{

    font-size:30px;

    margin-bottom:15px;

}

.plan-price{

    font-size:52px;

    font-weight:bold;

    color:#008cff;

}

.plan-price span{

    font-size:16px;

    color:#999;

}

/* ==========================
   PLAN SECTIONS
   ========================== */

.plan-section{

    padding:20px 30px;

    border-bottom:1px solid #2d2d2d;

}

.plan-section h3{

    font-size:14px;

    text-transform:uppercase;

    letter-spacing:1px;

    color:#008cff;

    margin-bottom:12px;

}

.plan-section ul{

    list-style:none;

    margin:0;

    padding:0;

}

.plan-section li{

    padding:8px 0;

    color:#ddd;

}

/* ==========================
   BUTTON AREA
   ========================== */

.plan-button{

    margin:25px;

    padding:15px;

    border:none;

    border-radius:10px;

    background:#008cff;

    color:white;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    transition:.2s;

}

.plan-button:hover{

    background:#006fd1;

}

/* ==========================
   FEATURED DM PLAN
   ========================== */

.dm-plan{

    border:2px solid #d4af37;

    position:relative;

}

.plan-summary {
    margin: 0 0 14px;
    color: #b7bfd4;
    font-size: 14px;
    min-height: 38px;
    text-align: center;
}

.comparison-wrap {
    max-width: 1400px;
    margin: 10px auto 30px;
    padding: 0 20px;
}

.comparison-wrap h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #d9e8ff;
    text-align: center;
}

.comparison-grid {
    border: 1px solid #2e3950;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-head,
.comparison-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(120px, 1fr));
    align-items: center;
}

.comparison-head {
    background: #1e2c45;
    color: #e8f2ff;
    font-weight: 700;
}

.comparison-head > div,
.comparison-row > div {
    padding: 10px 12px;
    border-right: 1px solid #2f3a51;
}

.comparison-head > div:last-child,
.comparison-row > div:last-child {
    border-right: none;
}

.comparison-row {
    background: #161d2a;
    border-top: 1px solid #283247;
    color: #d6deef;
    font-size: 14px;
}

.comparison-row:nth-child(even) {
    background: #131927;
}

.comparison-row > div:not(:first-child) {
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.comparison-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    accent-color: #18c964;
}

@media (max-width: 980px) {
    .comparison-grid {
        overflow-x: auto;
    }

    .comparison-head,
    .comparison-row {
        min-width: 980px;
    }
}

.dm-badge{

    position:absolute;

    top:15px;

    right:15px;

    background:#d4af37;

    color:black;

    padding:6px 12px;

    border-radius:20px;

    font-size:11px;

    font-weight:bold;

}
.plan-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    padding:40px;
}

.plan-card{
    width:350px;
    background:#222;
    border:1px solid #444;
    border-radius:12px;
    padding:25px;
    box-shadow:0 0 15px rgba(0,0,0,.3);
}

.plan-title{
    font-size:28px;
    text-align:center;
    margin-bottom:10px;
}

.plan-price{
    text-align:center;
    font-size:42px;
    color:#008cff;
    margin-bottom:20px;
}

.plan-features ul{
    list-style:none;
    padding:0;
}

.plan-features li{
    padding:10px 0;
    border-bottom:1px solid #333;
}

.plan-button{
    width:100%;
    padding:15px;
    background:#008cff;
    border:none;
    border-radius:8px;
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.plan-button:hover{
    background:#006fd1;
}

.dm-plan{
    border:2px solid gold;
}

/* ==========================
   SUBSCRIPTION HEADER
   ========================== */

.header{

    text-align:center;

    padding:60px 20px;

    margin-bottom:40px;

}

.header h1{

    font-size:48px;

    margin-bottom:15px;

}

.header p{

    font-size:18px;

    color:#aaaaaa;

}

/* ==========================
   PLANS CONTAINER
   ========================== */

.plan-container{

    max-width:1400px;

    margin:auto;

    padding:20px;

    display:flex;

    justify-content:center;

    gap:30px;

    flex-wrap:wrap;

}

/* ==========================
   PLAN CARDS
   ========================== */

.plan-card{

    width:350px;

    background:#202020;

    border:1px solid #333333;

    border-radius:16px;

    padding:30px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.35);

    transition:.25s;

}

.plan-card:hover{

    transform:translateY(-8px);

    border-color:#008cff;

}

/* ==========================
   DM PLAN
   ========================== */

.dm-plan{

    border:2px solid #d4af37;

    position:relative;

}

.dm-badge{

    position:absolute;

    top:12px;

    right:12px;

    background:#d4af37;

    color:black;

    padding:6px 12px;

    border-radius:20px;

    font-size:11px;

    font-weight:bold;

}

/* ==========================
   PLAN TITLE
   ========================== */

.plan-title{

    text-align:center;

    font-size:30px;

    font-weight:bold;

    margin-bottom:15px;

}

/* ==========================
   PRICE
   ========================== */

.plan-price{

    text-align:center;

    font-size:48px;

    font-weight:bold;

    color:#008cff;

    margin-bottom:25px;

}

.plan-price span{

    font-size:16px;

    color:#999999;

}

/* ==========================
   FEATURES
   ========================== */

.plan-features ul{

    list-style:none;

    margin:0;

    padding:0;

}

.plan-features li{

    padding:12px;

    margin-bottom:8px;

    background:#2a2a2a;

    border-radius:8px;

    color:#dddddd;

}

/* ==========================
   BUTTONS
   ========================== */

.plan-button{

    width:100%;

    margin-top:25px;

    padding:16px;

    border:none;

    border-radius:10px;

    background:#008cff;

    color:white;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    transition:.2s;

}

.plan-button:hover{

    background:#006fd1;

}

/* ==========================
   FOOTER
   ========================== */

.footer{

    text-align:center;

    padding:40px;

    color:#888888;

}

/* ==========================
   MOBILE
   ========================== */

@media(max-width:1200px){

    .plan-container{

        flex-direction:column;

        align-items:center;

    }

    .plan-card{

        width:90%;

        max-width:500px;

    }

}

/* ==========================
   FINAL LAYOUT OVERRIDES
   ========================== */

.plan-container {
    max-width: 1700px;
    margin: 24px auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.plan-card {
    width: auto;
    min-width: 0;
    height: 100%;
}

.plan-button {
    width: auto;
    min-width: 220px;
    align-self: center;
    margin: auto auto 0;
    text-align: center;
}

.comparison-row > div:not(:first-child) {
    text-align: center;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.comparison-grid input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #6b7488;
    background: #4a5366;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 0;
    opacity: 1;
}

.comparison-grid input[type="checkbox"]:checked {
    background: #1fb15b;
    border-color: #1fb15b;
    box-shadow: 0 0 0 1px rgba(31, 177, 91, 0.3);
}

.comparison-grid input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.comparison-grid input[type="checkbox"]:disabled {
    cursor: default;
}

@media (max-width: 1500px) {
    .plan-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .plan-container {
        grid-template-columns: 1fr;
    }

    .plan-button {
        min-width: 180px;
    }
}

.header {
    padding: 22px 16px;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 34px;
    margin-bottom: 6px;
}

.header p {
    font-size: 15px;
}

.comparison-row-actions {
    background: #101827;
    border-top: 1px solid #33415c;
}

.comparison-plan-button {
    width: auto;
    min-width: 110px;
    padding: 7px 10px;
    border: 1px solid #3a4b68;
    border-radius: 8px;
    background: #1f2f49;
    color: #d9e8ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.comparison-plan-button:hover {
    background: #294066;
    border-color: #4d6da0;
}