.chrome-browser-shell {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90vw;
    height: 80vh;
    background: rgba(30, 60, 114, 0.95);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.chrome-browser-shell.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    display: flex;
}

.chrome-browser-shell.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 100001;
}

body.shell-fullscreen .topbar,
body.shell-fullscreen .taskbar {
    display: none !important;
}

.chrome-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 42px;
    background: rgba(20, 40, 80, 0.8);
    user-select: none;
    padding-top: 4px;
}

.chrome-tabs {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 8px;
    gap: 4px;
}

.chrome-tab {
    display: flex;
    align-items: center;
    background: rgba(15, 30, 60, 0.6);
    padding: 8px 16px;
    height: 34px;
    border-radius: 8px 8px 0 0;
    position: relative;
    cursor: default;
    min-width: 120px;
    max-width: 200px;
    gap: 8px;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.chrome-tab.active {
    background: rgba(30, 60, 114, 0.95);
    opacity: 1;
    z-index: 2;
}

.chrome-tab:hover:not(.active) {
    background: rgba(40, 70, 130, 0.8);
    opacity: 0.95;
}

.chrome-tab::before,
.chrome-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 8px;
}

.chrome-tab::before {
    left: -8px;
    border-bottom-right-radius: 8px;
    box-shadow: 4px 0 0 0 rgba(30, 60, 114, 0.95);
}

.chrome-tab::after {
    right: -8px;
    border-bottom-left-radius: 8px;
    box-shadow: -4px 0 0 0 rgba(30, 60, 114, 0.95);
}

.chrome-tab-icon {
    width: 16px;
    height: 16px;
}

.chrome-tab-title {
    flex: 1;
    font-size: 12px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chrome-tab-close {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chrome-tab-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chrome-new-tab {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chrome-new-tab:hover {
    background: rgba(255, 255, 255, 0.4);
}

.chrome-window-controls {
    display: flex;
    height: 100%;
}

.chrome-win-btn {
    width: 46px;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chrome-win-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chrome-win-btn.close:hover {
    background: #e81123;
    color: white;
}

.chrome-toolbar {
    display: flex;
    align-items: center;
    height: 44px;
    background: rgba(30, 60, 114, 0.95);
    padding: 0 8px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chrome-nav-buttons {
    display: flex;
    gap: 4px;
}

.chrome-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chrome-nav-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.chrome-omnibox {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(20, 40, 80, 0.8);
    height: 32px;
    border-radius: 20px;
    padding: 0 12px;
    gap: 8px;
    box-shadow: inset 0 0 0 1px transparent;
}

.chrome-omnibox:focus-within {
    box-shadow: inset 0 0 0 2px #4285f4;
}

.chrome-security-icon {
    font-size: 14px;
}

.chrome-url-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: white;
}

.chrome-content {
    flex: 1;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.chrome-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    display: none;
}

.chrome-iframe.active {
    display: block;
}

.chrome-tab.loading .chrome-tab-icon {
    display: none;
}

.chrome-tab-loading-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: chrome-tab-spin 0.8s linear infinite;
    margin-right: 8px;
    flex-shrink: 0;
}

.chrome-tab.loading .chrome-tab-loading-spinner {
    display: block;
}

@keyframes chrome-tab-spin {
    to {
        transform: rotate(360deg);
    }
}

body.useawp .chrome-browser-shell,
body.useawp .chrome-tab {
    background: rgb(25, 40, 32);
}

body.useawp .chrome-titlebar {
    background: rgb(15, 25, 18);
}

body.useawp .chrome-tab::before {
    box-shadow: 4px 0 0 0 rgb(25, 40, 32);
}

body.useawp .chrome-tab::after {
    box-shadow: -4px 0 0 0 rgb(25, 40, 32);
}

body.useawp .chrome-toolbar {
    background: rgb(25, 40, 32);
    border-bottom: 1px solid rgb(70, 120, 85);
}

body.useawp .chrome-tab-title,
body.useawp .chrome-win-btn,
body.useawp .chrome-nav-btn {
    color: rgb(225, 240, 230);
}

body.useawp .chrome-tab-close,
body.useawp .chrome-new-tab {
    color: rgb(130, 170, 140);
}

body.useawp .chrome-omnibox {
    background: rgb(35, 60, 45);
    border: 1px solid rgb(70, 120, 85);
}

body.useawp .chrome-url-input {
    color: rgb(225, 240, 230);
}

body.cherryblossom .chrome-browser-shell,
body.cherryblossom .chrome-tab {
    background: rgba(145, 82, 111, 1);
}

body.cherryblossom .chrome-titlebar {
    background: rgba(70, 30, 50, 0.95);
}

body.cherryblossom .chrome-tab::before {
    box-shadow: 4px 0 0 0 rgba(145, 82, 111, 1);
}

body.cherryblossom .chrome-tab::after {
    box-shadow: -4px 0 0 0 rgba(145, 82, 111, 1);
}

body.cherryblossom .chrome-toolbar {
    background: rgba(145, 82, 111, 1);
    border-bottom: 1px solid rgba(255, 182, 193, 0.4);
}

body.cherryblossom .chrome-tab-title,
body.cherryblossom .chrome-win-btn,
body.cherryblossom .chrome-nav-btn {
    color: rgb(255, 255, 255);
}

body.cherryblossom .chrome-tab-close,
body.cherryblossom .chrome-new-tab {
    color: rgba(255, 255, 255, 0.7);
}

body.cherryblossom .chrome-omnibox {
    background: rgba(55, 20, 38, 0.8);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

body.cherryblossom .chrome-url-input {
    color: white;
}

body.kittycat .chrome-browser-shell,
body.kittycat .chrome-tab {
    background: rgba(126, 73, 56, 0.9);
}

body.kittycat .chrome-titlebar {
    background: rgba(3, 3, 4, 0.95);
}

body.kittycat .chrome-tab::before {
    box-shadow: 4px 0 0 0 rgba(126, 73, 56, 0.9);
}

body.kittycat .chrome-tab::after {
    box-shadow: -4px 0 0 0 rgba(126, 73, 56, 0.9);
}

body.kittycat .chrome-toolbar {
    background: rgba(126, 73, 56, 0.9);
    border-bottom: 1px solid rgba(233, 186, 183, 0.3);
}

body.kittycat .chrome-tab-title,
body.kittycat .chrome-win-btn,
body.kittycat .chrome-nav-btn {
    color: #FFF;
}

body.kittycat .chrome-tab-close,
body.kittycat .chrome-new-tab {
    color: rgba(233, 186, 183, 0.8);
}

body.kittycat .chrome-omnibox {
    background: rgba(3, 3, 4, 0.7);
    border: 1px solid rgba(233, 186, 183, 0.3);
}

body.kittycat .chrome-url-input {
    color: #FFF;
}

.simple-browser-shell {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: none;
}

.browser-active .simple-browser-shell {
    display: block !important;
}

.browser-active .topbar,
.browser-active .taskbar,
.browser-active .content {
    display: none !important;
}

.simple-chrome-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.chrome-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    display: block;
}

.simple-bottom-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 60px;
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100000;
}

body .simple-bottom-bar {
    background: rgba(30, 60, 114, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
body .simple-browser-omnibox {
    background: rgb(30, 30, 40);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.cherryblossom .simple-bottom-bar {
    background: rgba(139, 69, 101, 0.75);
    border: 1px solid rgba(255, 182, 193, 0.8);
}
body.cherryblossom .simple-browser-omnibox {
    background: rgb(80, 35, 55);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

body.useawp .simple-bottom-bar {
    background: rgba(25, 40, 32, 0.85);
    border: 1px solid rgb(70, 120, 85);
}
body.useawp .simple-browser-omnibox {
    background: rgb(35, 60, 45);
    border: 1px solid rgb(70, 120, 85);
}

body.kittycat .simple-bottom-bar {
    background: rgba(126, 73, 56, 0.85);
    border: 1px solid rgba(233, 186, 183, 0.5);
}
body.kittycat .simple-browser-omnibox {
    background: rgba(3, 3, 4, 0.8);
    border: 1px solid rgba(233, 186, 183, 0.4);
}

.simple-browser-icon {
    width: 36px;
    height: 36px;
    margin-right: 16px;
    border-radius: 4px;
    object-fit: contain;
}

.simple-browser-omnibox {
    display: flex;
    align-items: center;
    flex: 1;
    height: 38px;
    border-radius: 19px;
    padding: 0 16px;
    margin-right: 16px;
}

.simple-url-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.simple-url-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.kittycat .simple-url-input::placeholder {
    color: rgba(233, 186, 183, 0.6);
}

body.useawp .simple-url-input::placeholder {
    color: rgba(130, 170, 140, 0.6);
}

body.cherryblossom .simple-url-input::placeholder {
    color: rgba(255, 182, 193, 0.6);
}

.simple-nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.simple-nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.simple-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
