@media(max-width:900px){

    .auth-page{

        grid-template-columns:1fr;

    }

    .auth-left{

        padding:40px;

        text-align:center;

    }

}

@media(max-width:900px){

    .chat-sidebar{

        display:none;

    }

}

/*==================================================
    BUBBLES
==================================================*/
@media (max-width:768px){
.bubble{

    max-width:100%;

    padding:10px 15px;

    border-radius:18px;

    line-height:1.7;

    word-break:break-word;

    box-shadow:0 3px 12px rgba(0,0,0,.05);

}


}

/*==================================================
    HOME PAGE RESPONSIVE
==================================================*/

@media (max-width:768px){

.hero{

    min-height:auto;

    padding:70px 20px;

}

.hero h1{

    font-size:38px;

}

.hero-text{

    font-size:17px;

}

.hero-buttons{

    flex-direction:column;

    align-items:center;

}

.hero-buttons a{

    width:100%;

    max-width:320px;

}


.chat-page{
    height:100vh;
    overflow:hidden;
}

.chat-header{

    position:sticky;

    top:0;

    z-index:1000;

    flex-shrink:0;

    background:linear-gradient(135deg,#000000,#d81b60);

}


.chat-header-left h2{

    font-size:12px;

}

.chat-header-left p{

    display:none;

}

.chat-main{

    display:flex;

    flex-direction:column;

    height:100vh;

    overflow:hidden;

}

.chat-messages{

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    min-height:0;

}

/* Chat message font size */
.chat-messages .bubble{
    font-size:14px;
    line-height:1.6;
}

/* Paragraphs inside AI responses */
.chat-messages .bubble p{
    font-size:14px;
    line-height:1.6;
    margin-bottom:10px;
}

/* Lists */
.chat-messages .bubble li{
    font-size:14px;
    line-height:1.6;
}

/* Headings inside AI response */
.chat-messages .bubble h1,
.chat-messages .bubble h2,
.chat-messages .bubble h3{
    font-size:16px;
}

.chat-input{

    position:sticky;

    bottom:0;

    z-index:1000;

    background:#f0e4e4;

    border-top:1px solid var(--border);

    flex-shrink:0;

}


.header-icon{

    width:38px;
    height:38px;

}

.header-icon svg{

    width:12px;
    height:12px;

}

}


@media (max-width:768px){

    .admin-page{
        display:flex;
        flex-direction:column;
        width:100%;
        min-height:100vh;
        overflow-x:hidden;
    }

    .admin-main{
        width:100%;
        padding:15px;
        overflow-x:hidden;
    }

}

@media (max-width:768px){

.admin-sidebar{
    width:100%;
    height:auto;
    padding:15px;
    border-right:none;
    border-bottom:1px solid #ddd;
}

.admin-menu{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.admin-menu a{
    flex:1 1 calc(50% - 8px);
    justify-content:center;
    text-align:center;
}

.table-responsive{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

table{
    min-width:700px;
}

}


@media (max-width:768px){

.stats-grid{
    grid-template-columns:1fr;
}

}

@media (max-width:768px){

.admin-header{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

}

/*=========================================
    PENDING ACTIVATION MOBILE
=========================================*/

@media (max-width:768px){

.pending-page{
    padding:20px 15px;
    min-height:100vh;
    align-items:flex-start;
}

.pending-card{
    width:100%;
    max-width:100%;
    padding:25px 20px;
    border-radius:18px;
}

.pending-icon{
    width:80px;
    height:80px;
    font-size:40px;
    margin-bottom:20px;
}

.pending-card h1{
    font-size:26px;
    line-height:1.3;
    margin-bottom:15px;
}

.pending-card p{
    font-size:15px;
    line-height:1.7;
}

.settings-card{
    padding:18px;
    margin-top:20px;
}

.settings-card h3{
    font-size:18px;
    margin-bottom:15px;
    text-align:center;
}

.detail-row{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:12px 0;
}

.detail-row strong{
    font-size:14px;
}

.detail-row span{
    font-size:15px;
    color:#555;
    word-break:break-word;
}

.alert{
    font-size:14px;
    line-height:1.7;
    padding:16px;
}

.btn-primary{
    width:100%;
    justify-content:center;
    padding:16px;
    font-size:16px;
    margin-top:20px;
}

}

/*=========================================
    PENDING ACTIVATION - MOBILE
=========================================*/
@media (max-width:768px){
.pending-page{
    min-height:auto;
    padding:20px;
    display:block;
}

.pending-card{
    width:100%;
    max-width:100%;
    padding:25px 18px;
    border-radius:18px;
    margin:20px auto;
    box-sizing:border-box;
}

.pending-icon{
    width:80px;
    height:80px;
    font-size:42px;
    margin-bottom:18px;
}

.pending-card h1{
    font-size:24px;
    line-height:1.3;
    margin-bottom:15px;
}

.pending-card p{
    font-size:15px;
    line-height:1.7;
    margin-bottom:15px;
}

.pending-card .btn{
    width:100%;
    display:block;
    padding:14px;
    font-size:16px;
}
}

/*=========================================
    SETTINGS - MOBILE
=========================================*/
@media (max-width:768px){
.settings-card{
    padding:20px;
    border-radius:16px;
    margin-bottom:20px;
}

.settings-card h2,
.settings-card h3{
    font-size:20px;
    margin-bottom:18px;
}

.settings-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
}

.settings-card textarea{
    min-height:160px;
}

.save-settings{
    width:100%;
}

}
/*=========================================
    USER PROFILE - MOBILE
=========================================*/
@media (max-width:768px){
.user-profile{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.profile-summary{
    width:100%;
    padding:22px;
    border-radius:16px;
}

.profile-summary .avatar{
    width:80px;
    height:80px;
    margin:0 auto 15px;
}

.profile-summary h2{
    font-size:22px;
}

.profile-details{
    width:100%;
    padding:20px;
    border-radius:16px;
}

.detail-row{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:14px 0;
}

.detail-row strong{
    font-size:14px;
}

.detail-row span{
    font-size:15px;
    word-break:break-word;
}
}

/*=========================================
    ADMIN USERS MOBILE
=========================================*/

@media (max-width:768px){

.admin-main{
    padding:15px;
}

.admin-header{
    display:block;
    margin-bottom:20px;
}

.admin-header h1{
    font-size:24px;
}

.admin-subtitle{
    font-size:14px;
}

@media (max-width:768px){

.table-responsive{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
}

.admin-table{
    min-width:900px;
    border-collapse:collapse;
}

.admin-table th,
.admin-table td{
    white-space:nowrap;
}

}


